Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
check_puppet_log
Meet The New Nagios Core Services Platform
Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.
Monitoring Made Magically Better
- Nagios Core on Overdrive
- Powerful Monitoring Dashboards
- Time-Saving Configuration Wizards
- Open Source Powered Monitoring On Steroids
- And So Much More!
This plugin checks /var/log/messages for various errors output by the puppet agent. Sometimes this plugin will not show that an error has cleared until the puppet agent has run twice.
Don't use this plugin if your /var/log/messages file is huge - it basically just grep's it.
Only two options, '-h' - help and '-s' - use sudo.
Ensure that:
* Nagios can actually read /var/log/messages.
* Puppet sends its logs to /var/log/messages.
Internal support for sudo means that only 'cat' needs to be allowed in sudoers for nagios. Use the -s option:
check_puppet_log.sh -s
and allow nagios to use cat only as root, maybe:
%nagios ALL=NOPASSWD: /bin/cat /var/log/messages
Tested with various puppet agents from 0.25 to 2.6.16 on Centos 5.x
Not tested with the -s option - write a comment if sudo option works for you, thanks!
Don't use this plugin if your /var/log/messages file is huge - it basically just grep's it.
Only two options, '-h' - help and '-s' - use sudo.
Ensure that:
* Nagios can actually read /var/log/messages.
* Puppet sends its logs to /var/log/messages.
Internal support for sudo means that only 'cat' needs to be allowed in sudoers for nagios. Use the -s option:
check_puppet_log.sh -s
and allow nagios to use cat only as root, maybe:
%nagios ALL=NOPASSWD: /bin/cat /var/log/messages
Tested with various puppet agents from 0.25 to 2.6.16 on Centos 5.x
Not tested with the -s option - write a comment if sudo option works for you, thanks!
Reviews (0)
Be the first to review this listing!