Hello,

I arrive to do Mon working with freeradius.monitor but I have a
problem with the "alert" line.
I use a bash script which stop heartbeat to switch to the second
computer but it  doesn't do anything !

my mon.cf :
watch radius
         service radiusd
         interval 30s
                    monitor freeradius.monitor -S file -f file -hosts localhost
                    period wd {Sun-Sat}
                    alert test.alert
                    alert heartbeat_stop.alert
                    upalert heartbeat_start.alert


the test.alert works fine but not my heartbeat scripts which are simply :

#!/bin/bash
/etc/init.d/heartbeat stop
-----------------------------------------
#!/bin/bash
/etc/init.d/heartbeat start

As my scripts would normally start or stop heartbeat, I don't
understand why it doesn't work. Moreover, my scripts have the same
permissions than test.alert.

Thank you,
Sylvain Clerc.

_______________________________________________
mon mailing list
mon@linux.kernel.org
http://linux.kernel.org/mailman/listinfo/mon

Reply via email to