I'm trying to shutdown heartbeat with mon when I unplug my network card, I'm
using the watch Roberto send me:
*********
hostgroup ethCard SOM_IP_I_KNOW_IS_GOOD
watch ethCard
service ping
interval 1m
monitor fping.monitor
period
alert heartbeat.alert
*********
And I'm using this alert I got from a nice guy:
*********
HEARTBEAT="/etc/rc.d/init.d/heartbeat"
if [ $9 = "-u" ]; then
$HEARTBEAT start
else
$HEARTBEAT stop
fi
*********
I know that heartbeat is placed the correct place, but it newer get stopped,
why not?
I don't get any errors or anything, but it seems that whenever I unplug my
network cable, mon spawns 4 more mon/perl processes.
Any idea what this is?
/S�ren
>From: "TORRESANI, Roberto" <[EMAIL PROTECTED]>
>To: S�ren Neigaard <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]>
>Subject: R: Monitor network interface
>Date: Mon, 8 Apr 2002 12:56:39 +0200
>
>Simply try to ping a host that you know it's reachable under normal
>condition.
>
>eg:
>
>hostgroup ethCard <host_normally_reachable>
>
>watch ethCard
> service ping
> interval 5m
> monitor fping.monitor
> period
> alert mail.alert [EMAIL PROTECTED]
> upalert mail.alert -u [EMAIL PROTECTED]
> alertevery 2h
>
>
>
>The real problem could be:
> how can the mon server alert someone if it has only one card and it is
>disconnected from the network?
> 2 eth card on two different network ;-)
>
>Roberto
>
>
>-----Messaggio originale-----
>Da: S�ren Neigaard [mailto:[EMAIL PROTECTED]]
>Inviato: luned� 8 aprile 2002 8.54
>A: [EMAIL PROTECTED]
>Oggetto: Monitor network interface
>
>
>What should I use to monitor if my network card is working, so I get a
>alarm
>if someone pull the plug or something like that?
>
>/S�ren
>
>_________________________________________________________________
>Chat with friends online, try MSN Messenger: http://messenger.msn.com
>
_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com