Hello, I need to get snmp info about huawei router (AR158E, AR1220V, AR169F) like cpu, memory, fan, interface status
Someone known about a nagios plugin like check-cisco.pl?
Otherwise someone known about OID for huawei?
thank you
Stefano
huawei router
Re: huawei router
I was able to find two plugins on our Exchange site:
https://exchange.nagios.org/directory/P ... G2/details
https://exchange.nagios.org/directory/P ... 29/details
Have you tried either of those? Otherwise you can do a snmpwalk against the device and see what it returns, then use the OID from that to monitor.
https://exchange.nagios.org/directory/P ... G2/details
https://exchange.nagios.org/directory/P ... 29/details
Have you tried either of those? Otherwise you can do a snmpwalk against the device and see what it returns, then use the OID from that to monitor.
Former Nagios employee
-
stefanotoni
- Posts: 9
- Joined: Tue Oct 27, 2015 6:40 am
Re: huawei router
Jello tmcdonald, you telll me:
"Have you tried either of those? Otherwise you can do a snmpwalk against the device and see what it returns, then use the OID from that to monitor."
Now probably I have a missing piece about snmp oid
Example, relate to the 'Nagios SNMP Huawei 5700-XX switches' plugin I found the OID:
# CPU USAGE - .1.3.6.1.4.1.2011.5.25.31.1.1.1.1.5.67108873
I execute a:
snmpwalk -v 2c -c 'XXXX' 'IP' .1.3.6.1.4.1.2011.5.25.31.1.1.1.1.5.67108873
and I receive:
SNMPv2-SMI::enterprises.2011.5.25.31.1.1.1.1.5.67108873 = INTEGER: 30
Now I execute a snmpwalk without options:
snmpwalk -v 2c -c 'XXXX' 'IP'
and I receive a long list of OID/MIB (dependind if I use the -On option), but I don't found the OID .1.3.6.1.4.1.2011.5.25.31.1.1.1.1.5.67108873!!!
Why?
snmpwalk without the option OID, show OR not show ALL the MIB/OID about a snmp device??
I check also with a cisco router --> same behavior
Thank you
"Have you tried either of those? Otherwise you can do a snmpwalk against the device and see what it returns, then use the OID from that to monitor."
Now probably I have a missing piece about snmp oid
Example, relate to the 'Nagios SNMP Huawei 5700-XX switches' plugin I found the OID:
# CPU USAGE - .1.3.6.1.4.1.2011.5.25.31.1.1.1.1.5.67108873
I execute a:
snmpwalk -v 2c -c 'XXXX' 'IP' .1.3.6.1.4.1.2011.5.25.31.1.1.1.1.5.67108873
and I receive:
SNMPv2-SMI::enterprises.2011.5.25.31.1.1.1.1.5.67108873 = INTEGER: 30
Now I execute a snmpwalk without options:
snmpwalk -v 2c -c 'XXXX' 'IP'
and I receive a long list of OID/MIB (dependind if I use the -On option), but I don't found the OID .1.3.6.1.4.1.2011.5.25.31.1.1.1.1.5.67108873!!!
Why?
snmpwalk without the option OID, show OR not show ALL the MIB/OID about a snmp device??
I check also with a cisco router --> same behavior
Thank you
Re: huawei router
Sometimes snmpwalk will not display everything unless you specify the root of the enterprise OID's. What happens if you probe with this?
It sounds like you should be able to gain the information though.
Code: Select all
snmpwalk -v 2c -c 'XXXX' 'IP' .1.3.6.1.4.1.2011
Former Nagios Employee
-
stefanotoni
- Posts: 9
- Joined: Tue Oct 27, 2015 6:40 am
Re: huawei router
Below the snmpwalk you request me
I think I can NOT found the OID related to cpu, mem, fan,..
[root@nethmonitor ~]# snmpwalk -v 2c -c 'community' 'IP' .1.3.6.1.4.1.2011
SNMPv2-SMI::enterprises.2011.5.25.31.1.1.1.1.5.3 = INTEGER: 0
SNMPv2-SMI::enterprises.2011.5.25.31.1.1.1.1.5.5 = INTEGER: 0
SNMPv2-SMI::enterprises.2011.5.25.31.1.1.1.1.5.9 = INTEGER: 30
SNMPv2-SMI::enterprises.2011.5.25.31.1.1.1.1.5.14 = INTEGER: 0
SNMPv2-SMI::enterprises.2011.5.25.31.1.1.1.1.5.78 = INTEGER: 0
SNMPv2-SMI::enterprises.2011.5.25.31.1.1.1.1.5.142 = INTEGER: 0
SNMPv2-SMI::enterprises.2011.5.25.31.1.1.1.1.5.206 = INTEGER: 0
SNMPv2-SMI::enterprises.2011.5.25.31.1.1.1.1.5.270 = INTEGER: 0
SNMPv2-SMI::enterprises.2011.5.25.31.1.1.1.1.5.334 = INTEGER: 0
SNMPv2-SMI::enterprises.2011.5.25.31.1.1.1.1.5.398 = INTEGER: 0
SNMPv2-SMI::enterprises.2011.5.25.31.1.1.1.1.5.462 = INTEGER: 0
SNMPv2-SMI::enterprises.2011.5.25.31.1.1.1.1.5.526 = INTEGER: 0
SNMPv2-SMI::enterprises.2011.5.25.31.1.1.1.1.5.590 = INTEGER: 0
SNMPv2-SMI::enterprises.2011.5.25.31.1.1.1.1.5.654 = INTEGER: 0
SNMPv2-SMI::enterprises.2011.5.25.31.1.1.1.1.5.718 = INTEGER: 0
SNMPv2-SMI::enterprises.2011.5.25.31.1.1.1.1.5.16396 = INTEGER: 0
SNMPv2-SMI::enterprises.2011.5.25.31.1.1.1.1.5.16397 = INTEGER: 0
SNMPv2-SMI::enterprises.2011.5.25.31.1.1.1.1.5.262149 = INTEGER: 0
SNMPv2-SMI::enterprises.2011.5.25.31.1.1.1.1.5.524293 = INTEGER: 0
SNMPv2-SMI::enterprises.2011.5.25.31.1.1.1.1.7.3 = INTEGER: 0
SNMPv2-SMI::enterprises.2011.5.25.31.1.1.1.1.7.5 = INTEGER: 0
SNMPv2-SMI::enterprises.2011.5.25.31.1.1.1.1.7.9 = INTEGER: 56
SNMPv2-SMI::enterprises.2011.5.25.31.1.1.1.1.7.14 = INTEGER: 0
SNMPv2-SMI::enterprises.2011.5.25.31.1.1.1.1.7.78 = INTEGER: 0
SNMPv2-SMI::enterprises.2011.5.25.31.1.1.1.1.7.142 = INTEGER: 0
SNMPv2-SMI::enterprises.2011.5.25.31.1.1.1.1.7.206 = INTEGER: 0
SNMPv2-SMI::enterprises.2011.5.25.31.1.1.1.1.7.270 = INTEGER: 0
SNMPv2-SMI::enterprises.2011.5.25.31.1.1.1.1.7.334 = INTEGER: 0
SNMPv2-SMI::enterprises.2011.5.25.31.1.1.1.1.7.398 = INTEGER: 0
SNMPv2-SMI::enterprises.2011.5.25.31.1.1.1.1.7.462 = INTEGER: 0
SNMPv2-SMI::enterprises.2011.5.25.31.1.1.1.1.7.526 = INTEGER: 0
SNMPv2-SMI::enterprises.2011.5.25.31.1.1.1.1.7.590 = INTEGER: 0
SNMPv2-SMI::enterprises.2011.5.25.31.1.1.1.1.7.654 = INTEGER: 0
SNMPv2-SMI::enterprises.2011.5.25.31.1.1.1.1.7.718 = INTEGER: 0
SNMPv2-SMI::enterprises.2011.5.25.31.1.1.1.1.7.16396 = INTEGER: 0
SNMPv2-SMI::enterprises.2011.5.25.31.1.1.1.1.7.16397 = INTEGER: 0
SNMPv2-SMI::enterprises.2011.5.25.31.1.1.1.1.7.262149 = INTEGER: 0
SNMPv2-SMI::enterprises.2011.5.25.31.1.1.1.1.7.524293 = INTEGER: 0
SNMPv2-SMI::enterprises.2011.5.25.31.1.1.1.1.7.524293 = No more variables left in this MIB View (It is past the end of the MIB tree)
[root@nethmonitor ~]#
What do yo think?
I think I can NOT found the OID related to cpu, mem, fan,..
[root@nethmonitor ~]# snmpwalk -v 2c -c 'community' 'IP' .1.3.6.1.4.1.2011
SNMPv2-SMI::enterprises.2011.5.25.31.1.1.1.1.5.3 = INTEGER: 0
SNMPv2-SMI::enterprises.2011.5.25.31.1.1.1.1.5.5 = INTEGER: 0
SNMPv2-SMI::enterprises.2011.5.25.31.1.1.1.1.5.9 = INTEGER: 30
SNMPv2-SMI::enterprises.2011.5.25.31.1.1.1.1.5.14 = INTEGER: 0
SNMPv2-SMI::enterprises.2011.5.25.31.1.1.1.1.5.78 = INTEGER: 0
SNMPv2-SMI::enterprises.2011.5.25.31.1.1.1.1.5.142 = INTEGER: 0
SNMPv2-SMI::enterprises.2011.5.25.31.1.1.1.1.5.206 = INTEGER: 0
SNMPv2-SMI::enterprises.2011.5.25.31.1.1.1.1.5.270 = INTEGER: 0
SNMPv2-SMI::enterprises.2011.5.25.31.1.1.1.1.5.334 = INTEGER: 0
SNMPv2-SMI::enterprises.2011.5.25.31.1.1.1.1.5.398 = INTEGER: 0
SNMPv2-SMI::enterprises.2011.5.25.31.1.1.1.1.5.462 = INTEGER: 0
SNMPv2-SMI::enterprises.2011.5.25.31.1.1.1.1.5.526 = INTEGER: 0
SNMPv2-SMI::enterprises.2011.5.25.31.1.1.1.1.5.590 = INTEGER: 0
SNMPv2-SMI::enterprises.2011.5.25.31.1.1.1.1.5.654 = INTEGER: 0
SNMPv2-SMI::enterprises.2011.5.25.31.1.1.1.1.5.718 = INTEGER: 0
SNMPv2-SMI::enterprises.2011.5.25.31.1.1.1.1.5.16396 = INTEGER: 0
SNMPv2-SMI::enterprises.2011.5.25.31.1.1.1.1.5.16397 = INTEGER: 0
SNMPv2-SMI::enterprises.2011.5.25.31.1.1.1.1.5.262149 = INTEGER: 0
SNMPv2-SMI::enterprises.2011.5.25.31.1.1.1.1.5.524293 = INTEGER: 0
SNMPv2-SMI::enterprises.2011.5.25.31.1.1.1.1.7.3 = INTEGER: 0
SNMPv2-SMI::enterprises.2011.5.25.31.1.1.1.1.7.5 = INTEGER: 0
SNMPv2-SMI::enterprises.2011.5.25.31.1.1.1.1.7.9 = INTEGER: 56
SNMPv2-SMI::enterprises.2011.5.25.31.1.1.1.1.7.14 = INTEGER: 0
SNMPv2-SMI::enterprises.2011.5.25.31.1.1.1.1.7.78 = INTEGER: 0
SNMPv2-SMI::enterprises.2011.5.25.31.1.1.1.1.7.142 = INTEGER: 0
SNMPv2-SMI::enterprises.2011.5.25.31.1.1.1.1.7.206 = INTEGER: 0
SNMPv2-SMI::enterprises.2011.5.25.31.1.1.1.1.7.270 = INTEGER: 0
SNMPv2-SMI::enterprises.2011.5.25.31.1.1.1.1.7.334 = INTEGER: 0
SNMPv2-SMI::enterprises.2011.5.25.31.1.1.1.1.7.398 = INTEGER: 0
SNMPv2-SMI::enterprises.2011.5.25.31.1.1.1.1.7.462 = INTEGER: 0
SNMPv2-SMI::enterprises.2011.5.25.31.1.1.1.1.7.526 = INTEGER: 0
SNMPv2-SMI::enterprises.2011.5.25.31.1.1.1.1.7.590 = INTEGER: 0
SNMPv2-SMI::enterprises.2011.5.25.31.1.1.1.1.7.654 = INTEGER: 0
SNMPv2-SMI::enterprises.2011.5.25.31.1.1.1.1.7.718 = INTEGER: 0
SNMPv2-SMI::enterprises.2011.5.25.31.1.1.1.1.7.16396 = INTEGER: 0
SNMPv2-SMI::enterprises.2011.5.25.31.1.1.1.1.7.16397 = INTEGER: 0
SNMPv2-SMI::enterprises.2011.5.25.31.1.1.1.1.7.262149 = INTEGER: 0
SNMPv2-SMI::enterprises.2011.5.25.31.1.1.1.1.7.524293 = INTEGER: 0
SNMPv2-SMI::enterprises.2011.5.25.31.1.1.1.1.7.524293 = No more variables left in this MIB View (It is past the end of the MIB tree)
[root@nethmonitor ~]#
What do yo think?
Re: huawei router
It's hard to say, your best bet is to contact the manufacturer for the specific OID's that contain the information you're looking for. Once you have those, we can assist with the Nagios portion.
Former Nagios Employee