Check geom - NRPE gmirror and friends check: Difference between revisions
From TykWiki
Jump to navigationJump to search
No edit summary |
No edit summary |
||
Line 7: | Line 7: | ||
sudo fetch -o /usr/local/libexec/nagios/check_gmirror http://www.klintrup.dk/soren/gmirror/check_gmirror.sh | sudo fetch -o /usr/local/libexec/nagios/check_gmirror http://www.klintrup.dk/soren/gmirror/check_gmirror.sh | ||
sudo chmod +x /usr/local/libexec/nagios/check_gmirror | sudo chmod +x /usr/local/libexec/nagios/check_gmirror | ||
sudo | sudo ee /usr/local/etc/nrpe.cfg | ||
...and add "command[check_gmirror]=/usr/local/libexec/nagios/check_gmirror" in the command section near the bottom... | |||
sudo /usr/local/etc/rc.d/nrpe2 restart | sudo /usr/local/etc/rc.d/nrpe2 restart | ||
</pre> | </pre> | ||
I then add the host to the group gmirror-servers on the nagios server, which just tells it to run the check check_nrpe2!check_gmirror on all members of the group. | I then add the host to the group gmirror-servers on the nagios server, which just tells it to run the check check_nrpe2!check_gmirror on all members of the group. |
Revision as of 16:03, 10 January 2010
I found a simple script to monitor the status of gmirror on a server in nagios. I found it on this page, the usual thanks to Søren Klintrup for making it available to the public. I do the following to make it work on an existing NRPE installation:
sudo fetch -o /usr/local/libexec/nagios/check_gmirror http://www.klintrup.dk/soren/gmirror/check_gmirror.sh sudo chmod +x /usr/local/libexec/nagios/check_gmirror sudo ee /usr/local/etc/nrpe.cfg ...and add "command[check_gmirror]=/usr/local/libexec/nagios/check_gmirror" in the command section near the bottom... sudo /usr/local/etc/rc.d/nrpe2 restart
I then add the host to the group gmirror-servers on the nagios server, which just tells it to run the check check_nrpe2!check_gmirror on all members of the group.