<div dir="ltr"><div><div><div><br></div>Dear Team,<br><br></div>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".<br>
<br></div>My "clustat" command output as follows:<br><div><br><span style="background-color:rgb(0,0,255)"><span style="background-color:rgb(243,243,243)"><span style="color:rgb(0,0,255)">[root@centos libexec]# clustat <br>
Cluster Status for hacluster @ Tue Jun 11 17:20:13 2013<br>Member Status: Quorate<br> Member Name                             ID   Status<br> ------ ----                                          ----  ------<br> node1.altech.local                          1 Online, Local, rgmanager<span style></span><br>
 node2.altech.local                          2 Online, rgmanager<br><br> Service Name                   Owner (Last)                   State         <br> ------- ----                             ----- ------                           -----         <br>
 service:Apache1                node2.altech.local             started       <br> service:IP                            node1.altech.local             started       <br>[root@centos libexec]# </span></span><br></span><br>
</div><div>Now my check_cluster output as follows:<br><br><span style="color:rgb(0,0,255)">[root@centos libexec]# ./check_cluster -s -d 0,0 -w @1: -c @2:<br>CLUSTER OK: Service cluster: 2 ok, 0 warning, 0 unknown, 0 critical<br>
</span></div><div><span style="color:rgb(0,0,255)"><br>[root@centos libexec]# ./check_cluster -s -d 1,1 -w @1: -c @2:<br>CLUSTER CRITICAL: Service cluster: 0 ok, 2 warning, 0 unknown, 0 critical<br><br>[root@centos libexec]# ./check_cluster -s -d 0,1 -w @1: -c @2:<br>
CLUSTER WARNING: Service cluster: 1 ok, 1 warning, 0 unknown, 0 critical<br><br>[root@centos libexec]# ./check_cluster -s -w @1: -c @2: -d $SERVICESTATEDID:node1.altech.local:IP,$SERVICESTATEDID:node2.altech.local:IP<br>CLUSTER OK: Service cluster: 2 ok, 0 warning, 0 unknown, 0 critica</span>l<br>
<br></div><div></div><div></div><div>How can I find error in cluster?<br><br></div><div>Please help me. I have confuse in this command.<br><br></div><div>Thanks,<br><br></div><div>Best Regards,<br></div><div>Vilas Deshmukh<br>
</div></div>