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
69201
Nagios CSP

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!
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!