Hello, I am trying to run the check_nagios command from one machine to another. (slave to master)
I can run the following from the command prompt on the "slave" machine: Note: the master I am checking is 10.130.4.80 /usr/lib/nagios/plugins/check_by_ssh -H 10.130.4.80 -l smadmin-sec -i home/smadmin-sec/.ssh/id_dsa -C "/usr/lib/nagios/plugins/check_nagios /var/log/nagios/status.log 5 'nagios'" I get the following as a response: Nagios ok: located 1 process, status log updated 3 seconds ago My question is, can I use the "response" to determine whether the master is up and if not I want the slave to take over? I thought this might be a simple and easy way to set up failover???? Thanks. ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ 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