help on check_snmp
Re: help on check_snmp
hi @scottwilkerson
finally i found the relation in the mib structure by asking to the vendor.
Now there's another problem
pi@rpi4b:/usr/local/nagios/libexec $ ./check_snmp -H xxx.xxx.xxx.xxx -P 2c -C myPrivate -o apInfo -v
/usr/bin/snmpget -Le -t 3 -r 5 -m ALL -v 2c [context] [authpriv] xxx.xxx.xxx.xxx:161 apInfo
CRITICAL - Plugin timed out while executing system call
also adding parameter with highest timeout (for example -t 200) the result is always the same
finally i found the relation in the mib structure by asking to the vendor.
Now there's another problem
pi@rpi4b:/usr/local/nagios/libexec $ ./check_snmp -H xxx.xxx.xxx.xxx -P 2c -C myPrivate -o apInfo -v
/usr/bin/snmpget -Le -t 3 -r 5 -m ALL -v 2c [context] [authpriv] xxx.xxx.xxx.xxx:161 apInfo
CRITICAL - Plugin timed out while executing system call
also adding parameter with highest timeout (for example -t 200) the result is always the same
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: help on check_snmp
Are you sure apInfo is an OID ? or is it a MIB you are trying to use as a base for the check?
Can you run the following and get results?
Can you run the following and get results?
Code: Select all
snmpwalk -v 2c -c 'myPrivate' xxx.xxx.xxx.xxx apInfo
Re: help on check_snmp
hi @scottwilkerson, thanks for your kind and quick reply
you're right, snmpwalk to apInfo seems to be a wrong OID
apInfo: Unknown Object Identifier (Sub-id not found: (top) -> apInfo)
but then I just can't understand how it works, Alcatel says it doesn't provide support for Nagios and to ask you how to use their MIBs
they gave me a MIB but it is strange and not usable
so I tried to snmpwalk without specifying any OID
snmpwalk -v 2c -c CORRADO 192.168.1.101
the result, attached to this message, seems to use standard MIBs (SNMPv2-MIB, IF-MIB, TCP-MIB, etc), could you please help me understand how to get these infos in my Nagios Core?
you're right, snmpwalk to apInfo seems to be a wrong OID
apInfo: Unknown Object Identifier (Sub-id not found: (top) -> apInfo)
but then I just can't understand how it works, Alcatel says it doesn't provide support for Nagios and to ask you how to use their MIBs
they gave me a MIB but it is strange and not usable
so I tried to snmpwalk without specifying any OID
snmpwalk -v 2c -c CORRADO 192.168.1.101
the result, attached to this message, seems to use standard MIBs (SNMPv2-MIB, IF-MIB, TCP-MIB, etc), could you please help me understand how to get these infos in my Nagios Core?
- Attachments
-
- snmpwalk20200305.txt
- snmpwalk -v 2c -c CORRADO 192.168.1.101
- (320 KiB) Downloaded 122 times
Re: help on check_snmp
p.s.: sorry, the message was sent before the end
if i try to run
./check_snmp -H 192.168.1.101 -c CORRADO -o sysUpTimeInstance
i got the same error
CRITICAL - Plugin timed out while executing system call
if i try to run
./check_snmp -H 192.168.1.101 -c CORRADO -o sysUpTimeInstance
i got the same error
CRITICAL - Plugin timed out while executing system call
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: help on check_snmp
the community string for that plugin is a -C not -c
Try
Try
Code: Select all
./check_snmp -H 192.168.1.101 -P 2c -C CORRADO -o sysUpTimeInstance
Re: help on check_snmp
you're right again, but the result is the same, also adding the -t parameter
pi@rpi4b:/usr/local/nagios/libexec $ ./check_snmp -H 192.168.1.101 -P 2c -c CORRADO -o sysUpTimeInstance -t 60
CRITICAL - Plugin timed out while executing system call
pi@rpi4b:/usr/local/nagios/libexec $ ./check_snmp -H 192.168.1.101 -P 2c -c CORRADO -o sysUpTimeInstance -t 60
CRITICAL - Plugin timed out while executing system call
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: help on check_snmp
you still didn't change to a capital C
instead of this
run this
instead of this
Code: Select all
./check_snmp -H 192.168.1.101 -P 2c -c CORRADO -o sysUpTimeInstance -t 60
Code: Select all
./check_snmp -H 192.168.1.101 -P 2c -C CORRADO -o sysUpTimeInstance -t 60
Re: help on check_snmp
'ur right again, sorry
pi@rpi4b:/usr/local/nagios/libexec $ ./check_snmp -H 192.168.1.101 -P 2c -C CORRADO -o sysUpTimeInstance -t 60
SNMP OK - Timeticks: (121088893) 14 days, 0:21:28.93 | DISMAN-EVENT-MIB::sysUpTimeInstance=121088893
Then now the question is, based on snmpwalk20200305.txt previously attached, how do i monitor my APs?
how could i know each device how much consumes?
i see that there are these informations but hope that i do not have to create a single monitor service for each one of these 246 devices
pi@rpi4b:/usr/local/nagios/libexec $ ./check_snmp -H 192.168.1.101 -P 2c -C CORRADO -o sysUpTimeInstance -t 60
SNMP OK - Timeticks: (121088893) 14 days, 0:21:28.93 | DISMAN-EVENT-MIB::sysUpTimeInstance=121088893
Then now the question is, based on snmpwalk20200305.txt previously attached, how do i monitor my APs?
how could i know each device how much consumes?
i see that there are these informations but hope that i do not have to create a single monitor service for each one of these 246 devices
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: help on check_snmp
this is a decision you have to make yourself, you can basically monitor any of the 4838 oids displayed in the snmpwalkattilay2k wrote:Then now the question is, based on snmpwalk20200305.txt previously attached, how do i monitor my APs?
how could i know each device how much consumes?
i see that there are these informations but hope that i do not have to create a single monitor service for each one of these 246 devices
Which of them are important to you is a decision you need to make.