switch host definition: no IP
John P. Rouillard
rouilj at cs.umb.edu
Fri Mar 17 00:42:13 CET 2006
In message <37ED92F9890FAF4BB947613C66FF8B1A08BB2D34 at dw-mail.dataway.com>,
Tedman Eng writes:
>You can approach monitoring an IP-less unmanaged switch a few ways:
> but my switches do not have an IP associated with them, being
> setup thusly:
>> From: dick
>>
>> (firewall)---(switch1)----(mailserver)
>> 10.9.0.1 | 10.9.0.3
>> |
>> (wifi AP)
>> 10.9.0.2
>>
>> in this case, would i want to make a host named switch1 and
>> have it be the
>> parent of the mailserver and wifi AP machines, or should i
>[...]
>3) Create a cluster object (ie. check_cluster) that's tied to numerous hosts
>behind the switch. If all those hosts are out at the same time, then your
>cluster object would signal a problem, most likely the switch, but it could
>be your whole computer room went down too.
Another hack on the cluster object is to use the check_host mode of
check_icmp. Create a link to check_icmp called check_host. Use the
command:
check_host 10.9.0.2 10.9.0.3
as the check_host command for switch1 (and possibly a check_ping
service command for switch1). As long as one of the IP addresses to
check_host responds, it will returns an ok state. So the switch will
be found down only if both the 0.2 and 0.3 hosts are down. Needless to
say this works best is 0.2 and 0.3 are on separate power systems/UPS
legs so that a power failure doesn't make it look like the switch went
down. However if you plug all three devices into the same power plug
then it works right.
Dick, does switch1 have a serial console that is network accessible
(via a terminal server for example) that you could use to probe the
switch? Using an expect script to drive an interaction with the switch
can also be used as a "ping" operation.
-- rouilj
John Rouillard
===========================================================================
My employers don't acknowledge my existence much less my opinions.
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list