Page 1 of 1

check_snmp not working in Nagios

Posted: Fri Jun 07, 2013 2:45 am
by johnlsc1
Hopefully someone can help me...
Having been through the pain barrier of setting up Ubuntu and Nagios and getting it to monitor my servers successfully, I have moved on to monitoring Switches.
I have made sure that everything is configured properly within Nagios and check_snmp is available.

By running the command from CLI:
/usr/lib/nagios/plugins# ./check_snmp -H <IP address> -C Public -o 1.3.6.1.2.1.1.3.0
I get an expected response showing "Timeticks: (xxxxxxxxx) xxx days HH:MM:SS:XX"

But when I put the relevant information into 'switch.cfg' - I get nothing - Status: UNKNOWN. PING works, so at least I know they are alive, but I can't get any useful information.

I have been trawling through the Internet for days trying to find some help, but I have to say that 'help' and 'Nagios' seem to be mutually exclusive - so here I am as a last resort.

Many thanks
John :cry:

Re: check_snmp not working in Nagios

Posted: Fri Jun 07, 2013 9:40 am
by abrist
Could you post the:
1. Command definition
2. Service check definition.