lausser / check_nwc_health

nwc = network component. This plugin checks lots of aspects of routers, switches, wlan controllers, firewalls,.....
http://labs.consol.de/nagios/check_nwc_health
GNU General Public License v2.0
147 stars 87 forks source link

check_nwc_health timed out after 300 seconds #222

Closed gwiersma closed 4 years ago

gwiersma commented 4 years ago

I am trying to read the output on a Huawei CloudEngine 6800 switch. Even after 5 minutes i get unkown - check_nwc_health timed out after 300 seconds. Any ideas?

-vvvvvvvvvvv output:

/check_nwc_health --hostname <IP> --mode hardware-health --community public -vvvvvvvvvvv --servertype huawei -t 300

Thu Oct 17 10:49:51 2019: AUTOLOAD Classes::Device::check_messages

Thu Oct 17 10:49:51 2019: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::MIB2MIB
Thu Oct 17 10:49:51 2019: cache: 1.3.6.1.2.1.1.3.0
Thu Oct 17 10:51:31 2019: GET: MIB-2-MIB::sysUpTime (1.3.6.1.2.1.1.3) : <undef>
Thu Oct 17 10:51:31 2019: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::SNMPFRAMEWORKMIB
Thu Oct 17 10:51:31 2019: cache: 1.3.6.1.6.3.10.2.1.3.0
Thu Oct 17 10:53:11 2019: GET: SNMP-FRAMEWORK-MIB::snmpEngineTime (1.3.6.1.6.3.10.2.1.3.0) : <undef>
Thu Oct 17 10:53:11 2019: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::SNMPFRAMEWORKMIB
Thu Oct 17 10:53:11 2019: cache: 1.3.6.1.6.3.10.2.1.3.0.0
Thu Oct 17 10:54:50 2019: AUTOLOAD Classes::Device::nagios_exit

UNKNOWN - check_nwc_health timed out after 300 seconds

I have used the Paessler SNMP tester to check my SNMP configuration on the switch. The SNMP tester works tough.

lausser commented 4 years ago

Hi,

if there is not more output, this means that communication with the device does not take place at all. Please try it with an snmpwalk. Even if there is a response, an undefined sysUptime would make the plugin exit because it „thinks“ there is no working snmp agent on the other side.

Gerhard

Von: Gerben Wiersma [mailto:notifications@github.com] Gesendet: Donnerstag, 17. Oktober 2019 10:53 An: lausser/check_nwc_health check_nwc_health@noreply.github.com Cc: Subscribed subscribed@noreply.github.com Betreff: [lausser/check_nwc_health] check_nwc_health timed out after 300 seconds (#222)

I am trying to read the output on a Huawei CloudEngine 6800 switch. Even after 5 minutes i get unkown - check_nwc_health timed out after 300 seconds. Any ideas?

-vvvvvvvvvvv output:

/check_nwc_health --hostname --mode hardware-health --community public -vvvvvvvvvvv --servertype huawei -t 300

Thu Oct 17 10:47:30 2019: AUTOLOAD Classes::Device::check_messages

Thu Oct 17 10:47:30 2019: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::MIB2MIB Thu Oct 17 10:47:30 2019: cache: 1.3.6.1.2.1.1.3.0 Thu Oct 17 10:49:10 2019: GET: MIB-2-MIB::sysUpTime (1.3.6.1.2.1.1.3) :

Thu Oct 17 10:49:10 2019: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::SNMPFRAMEWORKMIB Thu Oct 17 10:49:10 2019: cache: 1.3.6.1.6.3.10.2.1.3.0 Thu Oct 17 10:49:30 2019: AUTOLOAD Classes::Device::nagios_exit I have used the Passler SNMP tester to check my SNMP configuration on the switch. The SNMP tester works tough. — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub , or unsubscribe .
gwiersma commented 4 years ago

snmpwalk seems to work fine. When i request the uptime i get the following result:

snmpwalk -t 10 -v 1 -c public <IP> 1.3.6.1.4.1.2011.5.25.31.1.1.1.1.10
iso.3.6.1.4.1.2011.5.25.31.1.1.1.1.10.16777216 = INTEGER: 13977334
iso.3.6.1.4.1.2011.5.25.31.1.1.1.1.10.16842752 = INTEGER: 0
iso.3.6.1.4.1.2011.5.25.31.1.1.1.1.10.16842753 = INTEGER: 13977334

This value corresponds with the switch.

lausser commented 4 years ago

And when you run the snmpwalk with -v2c?

Because that’s the default for check_nwc_health. The equivalent to the -v 1 here would be --protocol 1

Von: Gerben Wiersma [mailto:notifications@github.com] Gesendet: Donnerstag, 17. Oktober 2019 12:00 An: lausser/check_nwc_health check_nwc_health@noreply.github.com Cc: Gerhard Lausser Gerhard.Lausser@consol.de; Comment comment@noreply.github.com Betreff: Re: [lausser/check_nwc_health] check_nwc_health timed out after 300 seconds (#222)

snmpwalk seems to work fine. When i request the uptime i get the following result:

snmpwalk -t 10 -v 1 -c public 1.3.6.1.4.1.2011.5.25.31.1.1.1.1.10 iso.3.6.1.4.1.2011.5.25.31.1.1.1.1.10.16777216 = INTEGER: 13977334 iso.3.6.1.4.1.2011.5.25.31.1.1.1.1.10.16842752 = INTEGER: 0 iso.3.6.1.4.1.2011.5.25.31.1.1.1.1.10.16842753 = INTEGER: 13977334

This value corresponds with the switch.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/lausser/check_nwc_health/issues/222?email_source=notifications&email_token=AABQSOCRQM7RVIKYAMCULM3QPAZSFA5CNFSM4JBWKOCKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEBPRFTQ#issuecomment-543101646 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AABQSOFVOGLHJVGAYIXNOYDQPAZSFANCNFSM4JBWKOCA .

gwiersma commented 4 years ago

The protocol version was the problem. I will switch over to v2c. Thanks.