Hi All,
I am monitoring a custom application with Linux HA.
The monitoring is done and if the application fails then heartbeat fails
IP over.
The monitoring is a PHP script and is respawn in ha.cf
respawn hacluster /usr/local/ha/lib/heartbeat/ipfail
respawn hacluster /usr/local/ha/lib/heartbeat/monitor
The failover code is
if($status == 0)
{
echo "Service failed - Failover initiated";
exec(" /usr/local/ha/lib/heartbeat/hb_standby local ");
exit(100);
}
When I run the code outside ha.cf ie.
#respawn hacluster /usr/local/ha/lib/heartbeat/monitor -- the line
commented..
The script works well and failover occurs
But when respawn.. it does not work..
In the logs i can see
Aug 6 12:22:27 db1 heartbeat: [6099]: info: Starting
"/usr/local/ha/lib/heartbeat/monitor" as uid 1001 gid 103 (pid 6099)
Aug 6 12:22:28 db1 hb_standby[6118]: Going standby [local].
But it does not work... is there any thing i am missing.. please help.
Thanks
Prashant
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems