Home Directory Plugins Software check_puppet_log

Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

Directory Tree

check_puppet_log

Rating
0 votes
Favoured:
0
Current Version
0.10
Compatible With
  • Nagios 2.x
  • Nagios 3.x
License
GPL
Hits
68907
Network Monitoring Software - Download Nagios XI
Log Management Software - Nagios Log Server - Download
Netflow Analysis Software - Nagios Network Analyzer - Download
check_puppet_log
Checks /var/log/messages for general puppet-agent problems. The status will not return to 'green' until the problem is fixed.
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!