TOP LEVEL CATEGORIES
EXPLORE
Description:
This is a nagios plug-in to check the output or exit status or an application (designed for /etc/init.d scripts, but could work with any script). If you just call it with a -s /path/script it will run the script with a ‘status’ argument and check the output for the pattern ‘is running’
Current Version
1.0
Last Release Date
2011-06-13
Compatible With
Owner
Chad Columbus
License
GPL
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.
check_exit_status.pl
Actually this is a problem with uploading an ascii file in binary mode. If you simply run a "dos2unix check_exit_status.pl" it will fix this. Generally you should not run production code with -w on.
To run this on a remote host use nrpe and add a line like this to your nrpe.cfg command[check_httpd]=/usr/lib/nagios/plugins/check_exit_status.pl -s /etc/init.d/httpd -r Don't forget to add to sudoers: nrpe ALL=(root) NOPASSWD: /etc/init.d/* status
sudo uses -u root by default. -n means non-interactive.
You must be logged in to submit a review.
Your review has been submitted and is pending approval.
To:
From:
Your recommendation has been sent.