Problem with Router status in notification.

Marc Powell marc at ena.com
Tue May 20 16:03:17 CEST 2008


On May 20, 2008, at 2:23 AM, Michael Mukherji wrote:

> Hello list
>
> I am using nagios 3.0.I am having problem in getting notification  
> for any port down in my router.I am using snmp to collect data.
>

> now when the  port goes down , i recieve messege saying SMNP data  
> not recieved from host , problem unknown.but i want that it should  
> give me messege that the port is down.

> is there anything i need to change in the above check_snmp command?

There's no command line option to change this behavior. If you wish to  
exit with a CRITICAL status instead of UNKNOWN you'll need to edit the  
source for check_snmp.c around line 300 and replace --

         if (found == 0)
                 die (STATE_UNKNOWN,
                         _("%s problem - No data received from host 
\nCMD: %s\n"),
                         label,
                         cl_hidden_auth);

with

         if (found == 0)
                 die (STATE_CRITICAL,
                         _("%s problem - No data received from host 
\nCMD: %s\n"),
                         label,
                         cl_hidden_auth);

--
Marc

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
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