host notification issues
Andrew Cruse
andrew at profitability.net
Wed Jun 7 20:32:23 CEST 2006
mchoekst at mtu.edu wrote:
>> nagios-users-bounces at lists.sourceforge.net wrote:
>>> hey guys-
>>> i have a problem that i wanted to put an entire computer lab (24
>>> PCs) under one host in nagios, and have a ping command for each
>>> machine as a service of the host. i wrote a new ping command that
>>> uses the $SERVICEDESC$ variable, and then i just use the hostname of
>>> the PC for the service description.
>>>
>>> anyway, the issue is that when a notification gets sent out, i get a
>>> notice that the host (lab) is DOWN, as opposed to what i want which
>>> would be it to say '$SERVICEDESC$ is down'
>>> or something of the sort.
>>> should i just disable notifications for the host?
>>>
>>> any suggestions would be helpful. thanks
>>
>> If you're getting a host down notification then whatever you're using
>> for the host's check_command is failing. Try changing that to
>> something that will return ok even if one of the PC's is down. (I
>> would think check_ping on the router or switch that acts as the
>> gateway to the lab might be a good choice in this case.)
>>
> the host doesnt complain unless one of its services (lab pcs) are
> down. it is normally in an OK state if all computers are also up.
That's because Nagios only performs the host check if it receives a
WARNING or CRITICAL on one of the services attached to the host.
Andrew
_______________________________________________
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