Blog posts with tag monitoring

Nagios Plugin - Check IBM RSA2 system health

Nagios plugin that checks the system health of IBM RSA II using SNMP, requires Perl 5.8+, CPAN modules Nagios::Plugin and SNMP. Usage:

check_ibmrsa2_snmp_system_health [options]
--help

for help

-H, --hostaddress=STRING

Target host address (RSA address)

-C, --community=STRING

Community password

We have tried to be as paranoid as possible and designed this specifically to only have Perl based dependencies. However if it does anything unexpected or you have any suggestions for improvements please let us know.

Download from Nagios Exchange

Posted on 18 October 2011 by Phil [Permalink]

Nagios Plugin - Check Relayd

Comprehensive perl relayd checker.

NOTE:- Requires Perl 5.8 or higher

Nagios user will need sudo access - suggest adding line below to sudoers

_nagios ALL=(ALL) NOPASSWD: /usr/sbin/relayctl show summary

This plugin is designed to run on a local host, if Nagios is not local I suggest you run it via NRPE. However if you are running this on a firewall I would recommend not using NRPE and run a local Nagios useing OCSP/OCHP to pass messages back to your main Nagios.

Usage:

Check_relayd checks that all redirect & relays loaded by relayd are active. If a redirect/relay or table are down/empty it will give a CRITICAL message with information regarding what has failed. If host(s) are down in a given redirect/relay then it will give a WARNING unless there are 0 up for that relay/redirect in which case it will give a CRITICAL.

If relayd returns any unexpected output (command failure, system errors) this program will return a CRITICAL.

check_relayd [ARGS]

-h, -?, --help

Print Help Information

-V, --version

Print Version Information

-r, --relay, --redirect

Optional -r argument you can give a list of the expected relays/redirect separated by commas (,). If it does not find the relay/redirect return CRITICAL. If a relay/redirect is found that is not defined return WARNING (unless you also use -n see below).

-n, --nowarn

If -n is used do not warn for unexpected relay/redirect found so that we can test just for a single relay/redirect.

If you need any support or help with this plugin or if you find any cool ways of improving it please let me know. Download from Nagios Exchange

Posted on 14 June 2011 by SysPete [Permalink]

Nagios Plugin - Check CRM

Perl Script that checks the status of a Pacemaker based Cluster using crm_mon.

This Plugin Checks the status of a Pacemaker based cluster using crm_mon. It checks there is quorum, the status of nodes and the status of resources. Sending a Critical if there are any errors. Only runs on local host so I suggest you use NRPE if nagios isn't local.

With the -w option, failed Nodes, stopped Resources detected or Standby Nodes sends Warning instead of Critical (default) as long as there are no other errors and there is Quorum.

With the -s option ignores any Node(s) in Standby, by default sends Critical (unless using -w).

If Pacemaker isn't installed in /usr/sbin the 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/crm_mon -1 -r -f

NOTE:- In sudoers if requiretty is on (off state is default) you will also need to add the line below

Defaults:nagios !requiretty

If you are using SLES 10 you might find that it incorrectly throws a crit, this is because SLES 10 does not give info on quorum you will need to delete that part of the code. Works fine on SLES 11 thanks to Andrew Ferguson for letting me know.

If you get any unusual errors in crm_mon that this doesn't pick up please let us know.

You can download it from Nagios Exchange

Posted on 4 February 2011 by Phil [Permalink]

Nagios Plugin - Check Corosync Rings

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

Defaults:nagios !requiretty 

Download it from Nagios Exchange

Posted on 5 January 2011 by Phil [Permalink]