Nagios Plugin - Check Corosync Rings
Posted on 5 January 2011 by Phil [Permalink]
Created a new Nagios plugin which checks the status of Corosync rings.
Checks the number of Corosync rings running and their status. Only runs on local host so I suggest you use NRPE if nagios isn't local.
With -r option can specify the expected number of rings although this is optional and not required.
If corosync isn't installed in /usr/sbin or sudo in /usr/bin then script will need editing see comments in script.
NOTE:- Requires Perl 5.8 or higher & the Perl Module Nagios::Plugin.
Nagios user will need sudo access - suggest adding line below to sudoers
nagios ALL=(ALL) NOPASSWD: /usr/sbin/corosync-cfgtool -s
In sudoers if requiretty is on (off state is default) you will also need to add the line below
Download it from Nagios Exchange