Skip to main content
Needs Votes

Cisco switch real uptime

Related products:Infra Monitoring - Connectors
  • September 6, 2024
  • 1 reply
  • 90 views

Forum|alt.badge.img+9

Please add to Cisco standard plugin mode to check the real switch uptime, not the SNMP uptime.

sysUpTime is a 32-bit counter and will roll over after 496 days.

But I need to poll .1.3.6.1.6.3.10.2.1.3 which returns the uptime in seconds but I need it to show in web the uptime in days.

I discovered this, when the SNMP uptime showed me:

bash-4.2$ /usr/lib64/nagios/plugins/centreon_plugins.pl --plugin=network::cisco::standard::snmp::plugin --mode=uptime --hostname=1.4.4.3 --snmp-community=123456 --snmp-version=2c
OK: System uptime is: 276d 1h 38m 2s | 'uptime'=23852282s;;;0;

but in reality the uptime is:

bash-4.2$ /usr/lib64/nagios/plugins/check_snmp -H 1.4.4.3 -o 1.3.6.1.6.3.10.2.1.3.0 -C 123456 -P 2c
SNMP OK - 109752378 | iso.3.6.1.6.3.10.2.1.3.0=109752378

which is actually 1 270 days

1 reply

rchauvel
Centreonian
Forum|alt.badge.img+18
  • Centreonian
  • September 6, 2024
NewNeeds Votes