If you are going to make other network services dependent on ping, one thing to note is that you need to make sure that the interval of the ping service is smaller than the interval of the other network services. In the example below you see that ping is tested every minute and the other services are tested every 5 minutes. If the ping interval was larger than the smtp interval you risk missing alerts or generating false alerts.
Also note that you can use the SELF keyword to denote the hostgroup you're working on, e.g.
watch hostname
service fping
monitor fping.monitor
interval 1m
service smtp
monitor smtp.monitor
interval 5m
depend SELF:fping
Jim must be getting into the egg nog early this Christmas season, since the syntax for 'depend' uses only one colon, not 2 :)
At 07:22 PM 12/16/02 -0800, Jim Trocki wrote:
watch hostname
service fping
monitor fping.monitor
interval 1m
service smtp
monitor smtp.monitor
interval 5m
depend hostname::fping
should be 'depend hostname:fping'
service pop3
monitor pop3.monitor
interval 5m
depend hostname::fping
should be 'depend hostname:fping'andrew
_______________________________________________
mon mailing list
[EMAIL PROTECTED]
http://linux.kernel.org/mailman/listinfo/mon
