check_snmp not working in Nagios

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
johnlsc1
Posts: 1
Joined: Fri Jun 07, 2013 2:25 am

check_snmp not working in Nagios

Post 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:
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: check_snmp not working in Nagios

Post by abrist »

Could you post the:
1. Command definition
2. Service check definition.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked