Page 3 of 5

Re: Unable to use SNMP to monitor Wifi points

Posted: Wed Oct 14, 2015 2:01 pm
by rhassing
Sorry, it should be:

Code: Select all

/usr/local/nagios/libexec/check_snmp -H 192.168.1.245 -C private -o sysUpTime.0 -P 2c -vvv

Re: Unable to use SNMP to monitor Wifi points

Posted: Wed Oct 14, 2015 4:46 pm
by hsmith
@nathanplatt,

Did Rob's suggestion work for you?

Re: Unable to use SNMP to monitor Wifi points

Posted: Thu Oct 15, 2015 12:13 am
by nathanplatt
nagios@nagios:~$ /usr/local/nagios/libexec/check_snmp -H -C private 192.168.1.245 -o sysUpTime.0
External command error: Unknown flag passed to -C: :
nagios@nagios:~$ /usr/local/nagios/libexec/check_snmp -H -C public 192.168.1.245 -o sysUpTime.0
External command error: Unknown flag passed to -C: :
Sorry it keeps erroring

Re: Unable to use SNMP to monitor Wifi points

Posted: Thu Oct 15, 2015 1:26 am
by Box293
You do not have the IP address of the host after the -H argument. It should be:

Code: Select all

/usr/local/nagios/libexec/check_snmp -H 192.168.1.245 -C private -o sysUpTime.0
I was also add the snmp 2c version as well:

Code: Select all

/usr/local/nagios/libexec/check_snmp -H 192.168.1.245 -C private -P 2c -o sysUpTime.0

Re: Unable to use SNMP to monitor Wifi points

Posted: Thu Oct 15, 2015 2:53 am
by nathanplatt
Same issues;

Code: Select all

nagios@nagios:~$ /usr/local/nagios/libexec/check_snmp -H 192.168.1.245 -C public -P 2c -o sysUpTime.o
CRITICAL - Plugin timed out while executing system call
nagios@nagios:~$ /usr/local/nagios/libexec/check_snmp -H 192.168.1.245 -C private -o sysUpTime.0
CRITICAL - Plugin timed out while executing system call
nagios@nagios:~$ /usr/local/nagios/libexec/check_snmp -H 192.168.1.245 -C public -o sysUpTime.0
CRITICAL - Plugin timed out while executing system call
nagios@nagios:~$ /usr/local/nagios/libexec/check_snmp -H 192.168.1.245 -C public -P 2c -o sysUpTime.0
CRITICAL - Plugin timed out while executing system call
nagios@nagios:~$

Re: Unable to use SNMP to monitor Wifi points

Posted: Thu Oct 15, 2015 2:57 am
by rhassing

Code: Select all

/usr/local/nagios/libexec/check_snmp -H 192.168.1.245 -C private -o sysUpTime.0 -P 2c -vvv

Re: Unable to use SNMP to monitor Wifi points

Posted: Thu Oct 15, 2015 3:00 am
by nathanplatt

Code: Select all

nagios@nagios:~$ /usr/local/nagios/libexec/check_snmp -H 192.168.1.245 -C private -o sysUpTime.0 -P 2c -vvv
/usr/bin/snmpget -Le -t 3 -r 5 -m ALL -v 2c [authpriv] 192.168.1.245:161 sysUpTime.0
CRITICAL - Plugin timed out while executing system call
nagios@nagios:~$
This plugin doesn't like me :P

Re: Unable to use SNMP to monitor Wifi points

Posted: Thu Oct 15, 2015 4:37 am
by rhassing
Very strange, and

Code: Select all

/usr/bin/snmpget -Le -t 3 -r 5 -m ALL -v 2c -c private 192.168.1.245:161 sysUpTime.0
does work?

Re: Unable to use SNMP to monitor Wifi points

Posted: Thu Oct 15, 2015 4:50 am
by nathanplatt
You get a lot of these type of errors;

Cannot adopt OID in UCD-SNMP-MIB: versionIdent ::= { version 5 }

Re: Unable to use SNMP to monitor Wifi points

Posted: Thu Oct 15, 2015 5:06 am
by rhassing
You get a lot of these type of errors;

Cannot adopt OID in UCD-SNMP-MIB: versionIdent ::= { version 5 }
Sorry, I don't understand?