[Linux-HA] Nagios Monitoring

Michael Schwartzkopff misch at multinet.de
Tue Jan 1 13:50:28 MST 2008


Thomas Glanzmann schrieb:
> Hello,
> I would like to monitor my linux-ha installation using nagios and I
> wonder if someone has done work on it. Because I would like to use that.
> However I am also perfectly capable of writing my own module. But before
> I would like to know what I can check and what the best way is to check.
> My ideas are the following:
>
>         - Heartbeat monitoring (I can do that using cl_status)
>
>         - Service Monitoring (crm_mon -1 -r):
>                 - Not running
>                 - Failed Services
>
> Is there something else I could monitor or a tool or command line
> options that monitor better what I would like to monitor?
>
>         Thomas
>   
Hi,

use SNMP! The latest version of the SNMP Subagent gives you access to
the state of all resources.

Read the README in the subagent dir of the sources. Good documentation
there.

for nagios:

define command {

command_name check_snmp_myCluster

command_line $USER1$/check_snmp -H $HOSTADDRESS$ -o
.1.3.6.1.4.1.4682.1.2.0 -w 2: -c 2:

}


or


define command {

command_name check_snmp_resource_IP

command_line $USER1$/check_snmp -H $HOSTADDRESS$ -o
.1.3.6.1.4.1.4682.8.1.7.1 -w 1: -c 1:

}


There are lots of other things you could monitor. Adjust to your needs.


Michael.



More information about the Linux-HA mailing list