I would like to check with my nagios monitoring if every node use current catalog version provided by puppetmaster.
In my situation, there are:
I would like to create nrpe plugin on host1, host2, hostX to:
- Check current catalog version on host
- Check current catalog version prepared for node on puppetmaster
- Warning, if both differs
- To check catalog version on puppetmaster I can run /production/catalog API query, but it is very expensive (cpu) - because catalog need to be compiled every time I ask for it.
- I can't see any options to check current catalog version on node. I tried puppet catalog, but it was not very helpful.
So my question is, how to monitor puppet agents health, and be notified if any host use old puppet catalog? Does it make any sense?