Hi, One way to use check_cluster is : first : define a command like define command { command_name check_cluster_service command_line $USER1$/check_cluster -s -d $ARG1$ -c $ARG2$ }
then define your check define service { ... check_command check_cluster_service!$SERVICESTATEID:node1:ha_service $,$SERVICESTATEID:node2:ha_service$!1 ... } This will get the result of the tests of the "ha_service" on "node1" and "node2" and return a critical state if there is more than 1 check in a non-OK state. But the best way to check a cluster is to check only the system (disk, CPU, ...) on your nodes and check the cluster as if it is a classic server through th VIP. On Wed, 2011-10-12 at 18:34 +0530, Kumar, Ashish wrote: > Hello fellow Nagios users, > > I have configured a couple of hosts in Nagios, since they are the > nodes of a HA cluster the services are running on the active host > only. As obvious Nagios is showing the services down on the passive > host. I tried using check_cluster and check_cluster2 but due to the > lack of information around the web and mailing list archives I > couldn't figure out how it can be configured. > > Would anyone actually using check_cluster like to lend me a hand? :) > > We are using Nagios Core 3.2.0 on Centos. > > Thanks, > Ashish Kumar > > > ------------------------------------------------------------------------------ > All the data continuously generated in your IT infrastructure contains a > definitive record of customers, application performance, security > threats, fraudulent activity and more. Splunk takes this data and makes > sense of it. Business sense. IT sense. Common sense. > http://p.sf.net/sfu/splunk-d2d-oct > _______________________________________________ Nagios-users mailing list > Nagios-users@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 ------------------------------------------------------------------------------ All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity and more. Splunk takes this data and makes sense of it. Business sense. IT sense. Common sense. http://p.sf.net/sfu/splunk-d2d-oct _______________________________________________ Nagios-users mailing list Nagios-users@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