Unable to use SNMP to monitor Wifi points

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.
User avatar
rhassing
Posts: 416
Joined: Sat Oct 05, 2013 10:29 pm
Location: Netherlands

Re: Unable to use SNMP to monitor Wifi points

Post 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
Rob Hassing
Image
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Unable to use SNMP to monitor Wifi points

Post by hsmith »

@nathanplatt,

Did Rob's suggestion work for you?
Former Nagios Employee.
me.
nathanplatt
Posts: 267
Joined: Thu May 07, 2015 4:59 am

Re: Unable to use SNMP to monitor Wifi points

Post 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
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Unable to use SNMP to monitor Wifi points

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
nathanplatt
Posts: 267
Joined: Thu May 07, 2015 4:59 am

Re: Unable to use SNMP to monitor Wifi points

Post 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:~$
User avatar
rhassing
Posts: 416
Joined: Sat Oct 05, 2013 10:29 pm
Location: Netherlands

Re: Unable to use SNMP to monitor Wifi points

Post by rhassing »

Code: Select all

/usr/local/nagios/libexec/check_snmp -H 192.168.1.245 -C private -o sysUpTime.0 -P 2c -vvv
Rob Hassing
Image
nathanplatt
Posts: 267
Joined: Thu May 07, 2015 4:59 am

Re: Unable to use SNMP to monitor Wifi points

Post 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
User avatar
rhassing
Posts: 416
Joined: Sat Oct 05, 2013 10:29 pm
Location: Netherlands

Re: Unable to use SNMP to monitor Wifi points

Post 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?
Rob Hassing
Image
nathanplatt
Posts: 267
Joined: Thu May 07, 2015 4:59 am

Re: Unable to use SNMP to monitor Wifi points

Post by nathanplatt »

You get a lot of these type of errors;

Cannot adopt OID in UCD-SNMP-MIB: versionIdent ::= { version 5 }
User avatar
rhassing
Posts: 416
Joined: Sat Oct 05, 2013 10:29 pm
Location: Netherlands

Re: Unable to use SNMP to monitor Wifi points

Post 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?
Rob Hassing
Image
Locked