How to use Check_cluster

Vilas Deshmukh vilas at altechtechnologies.com
Tue Jun 11 14:01:57 CEST 2013


Dear Team,

I have searching  about check_cluster command from last couple of days. I
founds lots of sites and information. However, I could not understand how
to use it? because all time its output's depend on my input.  If I gave
input "OK" output is "OK", if I gave input "Critical" output also
"Critical".

My "clustat" command output as follows:

[root at centos libexec]# clustat
Cluster Status for hacluster @ Tue Jun 11 17:20:13 2013
Member Status: Quorate
 Member Name                             ID   Status
 ------ ----                                          ----  ------
 node1.altech.local                          1 Online, Local, rgmanager
 node2.altech.local                          2 Online, rgmanager

 Service Name                   Owner (Last)
State
 ------- ----                             ----- ------
             -----
 service:Apache1                node2.altech.local
started
 service:IP                            node1.altech.local
started
[root at centos libexec]#

Now my check_cluster output as follows:

[root at centos libexec]# ./check_cluster -s -d 0,0 -w @1: -c @2:
CLUSTER OK: Service cluster: 2 ok, 0 warning, 0 unknown, 0 critical

[root at centos libexec]# ./check_cluster -s -d 1,1 -w @1: -c @2:
CLUSTER CRITICAL: Service cluster: 0 ok, 2 warning, 0 unknown, 0 critical

[root at centos libexec]# ./check_cluster -s -d 0,1 -w @1: -c @2:
CLUSTER WARNING: Service cluster: 1 ok, 1 warning, 0 unknown, 0 critical

[root at centos libexec]# ./check_cluster -s -w @1: -c @2: -d
$SERVICESTATEDID:node1.altech.local:IP,$SERVICESTATEDID:node2.altech.local:IP
CLUSTER OK: Service cluster: 2 ok, 0 warning, 0 unknown, 0 critical

How can I find error in cluster?

Please help me. I have confuse in this command.

Thanks,

Best Regards,
Vilas Deshmukh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20130611/b2bffafa/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null


More information about the Users mailing list