Monitor Puppet agent state
https://github.com/aswen/nagios-plugins
This script looks if there is a puppet agent process and then it checks the
last state summary file and checks when puppet agent last run the catalog.
The plugin should be run by NRPE (or similar software) and reports ok. warn or
crit back.
Please note that the user executing this command (normally nagios or icinga)
should either have an entry in /etc/sudoers like the following one:
nagios ALL=NOPASSWD:/usr/bin/puppet,/usr/lib/nagios/plugins/check_puppet_agent,/bin/kill
or the plugin script itself should be run as root (permissions 4755).
Furthermore this plugin checks some fail counters and warn about them if any of
them is greater than 0.
- Sources inherited from project server:monitoring
- Download package
-
Checkout Package
osc -A https://api.opensuse.org checkout home:ioguix:check_pgactivity/monitoring-plugins-puppet_agent && cd $_
- Create Badge
Refresh
Refresh
Source Files
Filename | Size | Changed |
---|---|---|
check_puppet_agent | 0000007390 7.22 KB | |
check_puppet_agent-use_sudo_for_awk.patch | 0000001549 1.51 KB | |
monitoring-plugins-puppet_agent-rpmlintrc | 0000000000 0 Bytes | |
monitoring-plugins-puppet_agent-sudoers | 0000000102 102 Bytes | |
monitoring-plugins-puppet_agent.changes | 0000001549 1.51 KB | |
monitoring-plugins-puppet_agent.spec | 0000002692 2.63 KB |
Latest Revision
Lars Vogdt (lrupp)
committed
(revision 2)
- Renamed package to monitoring-plugins-puppet_agent - update to version 20131209 (using the last log entries inside the file now): + Moved finding lastrunfile to after getopts and made it conditional to param -s + Added option to tell script if puppet agent is started from cron or as a daemon (-d) + Switched to use awk to filter values from lastrunfile and set them as params + Removed bug in search for process (that would previously always find something because grep find it's processline) + "puppet config print lastrunfile" has to be run as root. As normal user it yields ~/.puppet/var/state. + - Puppet --configprint => puppet config print (version 3 has new way of printing config) + Added new pattern to search for process + Added test kill -0 to see if process is still there + updated a test (removed ! from test) + Added sudo to puppet config print pidfile. + Issue warning when last_run_report.yaml contain errors. - added sudoers file in /etc/sudoers.d/ directory - added check_puppet_agent-use_sudo_for_awk.patch as the last run file might be not readable for the normal user - initial version 1
Comments 0