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
151 stars 87 forks source link

Wrong uptime on cisco devices #91

Open d-zalewski opened 8 years ago

d-zalewski commented 8 years ago

snmpwalk -v2c -c community IP uptime DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (702398739) 81 days, 7:06:27.39

/usr/lib64/nagios/plugins/check_nwc_health --hostname IP --mode uptime --community community OK - device is up since 5549d 10h 13m 46s | 'uptime'=7991174;15:;5:;;

snmpwalk -v2c -c community IP sysDescr.0 SNMPv2-MIB::sysDescr.0 = STRING: Cisco NX-OS(tm) n6000, Software (n6000-uk9), Version 7.1(1)N1(1), RELEASE SOFTWARE Copyright (c) 2002-2012 by Cisco Systems, Inc. Device Manager Version 6.0(2)N1(1),Compiled 4/18/2015 10:00:00

snmpwalk -v2c -c community IP uptime DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (801679283) 92 days, 18:53:12.83

/usr/lib64/nagios/plugins/check_nwc_health --hostname IP --mode uptime --community community OK - device is up since 1086d 23h 49m 5s | 'uptime'=1565269;15:;5:;;

snmpwalk -v2c -c community IP sysDescr.0 SNMPv2-MIB::sysDescr.0 = STRING: Cisco IOS Software, s72033_rp Software (s72033_rp-ADVENTERPRISEK9_WAN-M), Version 12.2(33)SXJ10, RELEASE SOFTWARE (fc3) Technical Support: http://www.cisco.com/techsupport Copyright (c) 1986-2015 by Cisco Systems, Inc. Compiled Fri 14-Aug-15 08:58 by p

It seems be fine on IOS-XE:

snmpwalk -v2c -c community IP sysDescr.0 SNMPv2-MIB::sysDescr.0 = STRING: Cisco IOS Software, IOS-XE Software, Catalyst 4500 L3 Switch Software (cat4500e-UNIVERSALK9-M), Version 03.04.00.SG RELEASE SOFTWARE (fc3) Technical Support: http://www.cisco.com/techsupport Copyright (c) 1986-2012 by Cisco Systems, Inc. Compiled Wed 0

snmpwalk -v2c -c community IP uptime DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (200980836) 23 days, 6:16:48.36

/usr/lib64/nagios/plugins/check_nwc_health --hostname IP --mode uptime --community community OK - device is up since 23d 6h 16m 8s | 'uptime'=33496;15:;5:;;

lausser commented 8 years ago

DISMAN-EVENT-MIB::sysUpTimeInstance? I don’t use this OID.

Run the plugin with –vvvvvvvvvvv and you see which OIDs are the relevant ones.

Gerhard

Von: d-zalewski [mailto:notifications@github.com] Gesendet: Montag, 13. Juni 2016 18:02 An: lausser/check_nwc_health Betreff: [lausser/check_nwc_health] Wrong uptime on cisco devices (#91)

snmpwalk -v2c -c community IP uptime DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (702398739) 81 days, 7:06:27.39

/usr/lib64/nagios/plugins/check_nwc_health --hostname IP --mode uptime --community community OK - device is up since 5549d 10h 13m 46s | 'uptime'=7991174;15:;5:;;

snmpwalk -v2c -c community IP sysDescr.0 SNMPv2-MIB::sysDescr.0 = STRING: Cisco NX-OS(tm) n6000, Software (n6000-uk9), Version 7.1(1)N1(1), RELEASE SOFTWARE Copyright (c) 2002-2012 by Cisco Systems, Inc. Device Manager Version 6.0(2)N1(1),Compiled 4/18/2015 10:00:00

snmpwalk -v2c -c community IP uptime DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (801679283) 92 days, 18:53:12.83

/usr/lib64/nagios/plugins/check_nwc_health --hostname IP --mode uptime --community community OK - device is up since 1086d 23h 49m 5s | 'uptime'=1565269;15:;5:;;

snmpwalk -v2c -c community IP sysDescr.0 SNMPv2-MIB::sysDescr.0 = STRING: Cisco IOS Software, s72033_rp Software (s72033_rp-ADVENTERPRISEK9_WAN-M), Version 12.2(33)SXJ10, RELEASE SOFTWARE (fc3) Technical Support: http://www.cisco.com/techsupport Copyright (c) 1986-2015 by Cisco Systems, Inc. Compiled Fri 14-Aug-15 08:58 by p

It seems be fine on IOS-XE:

snmpwalk -v2c -c community IP sysDescr.0 SNMPv2-MIB::sysDescr.0 = STRING: Cisco IOS Software, IOS-XE Software, Catalyst 4500 L3 Switch Software (cat4500e-UNIVERSALK9-M), Version 03.04.00.SG RELEASE SOFTWARE (fc3) Technical Support: http://www.cisco.com/techsupport Copyright (c) 1986-2012 by Cisco Systems, Inc. Compiled Wed 0

snmpwalk -v2c -c community IP uptime DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (200980836) 23 days, 6:16:48.36

/usr/lib64/nagios/plugins/check_nwc_health --hostname IP --mode uptime --community community OK - device is up since 23d 6h 16m 8s | 'uptime'=33496;15:;5:;;

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/lausser/check_nwc_health/issues/91 , or mute the thread https://github.com/notifications/unsubscribe/AAMJONVzf-kr800RdVAh2wvcoALT89YSks5qLX8UgaJpZM4I0ezS .