If I understand the original question right, the objective is to see 
whether the local network card has a live connection to the network.

Why the indirect test?  Check the link status of the card itself!

Query the local SNMP agent and check that ifOperStatus = 1.
A sample configuration for this is provided in my snmpvar.monitor.

This mechanism is generic across hosts, switches, routers, firewalls and 
what-have-you.

--Peter


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 03, 2002 7:44 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]; 
Subject: Re: Best way to monitor network card


On Tue, Apr 30, 2002 at 07:30:22AM +0000, SXren Neigaard wrote:
> 
> Oh yes I'm very interested in that script. Sorry for the late answer, 
but I 
> have been on holiday :)
> 
> What does that actually mean, if no IP replies? How does that work - 
do I 
> configure a list of IP's to monitor?
> 

Yes you configure several IPs in your hostlist. Recent versions of
fping.monitor included in mon or my script below have an option
to report failure _only_ when all targets fail.

You append this option to the scripts call in yopur watch definition.

Here is an example:

hostgroup link-provider www.provider.net ns.provider.net 

watch link-provider
    service link
        interval 5m
        monitor icmp.monitor -l
        period SMS: wd {Sun-Sat} hr {7am-10pm}
            alertevery 1h summary
            alertafter 2
            comp_alerts
            alert sms.alert 0123456
            upalert sms.alert 0123456
        period MAIL: wd {Sun-Sat}
            alertevery 1h summary
            alertafter 2
            comp_alerts
            alert mail.alert [EMAIL PROTECTED]
            upalert mail.alert [EMAIL PROTECTED]

-- 
 Alles Gute / best wishes  
     Dietmar Goldbeck                E-Mail: [EMAIL PROTECTED]
Reporter (to Mahatma Gandhi): Mr Gandhi, what do you think of Western
Civilization?  Gandhi: I think it would be a good idea.

Reply via email to