Uptime monitoring / wrong values shown in Cacti

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
MI1
Posts: 30
Joined: Tue Aug 21, 2012 2:23 am

Uptime monitoring / wrong values shown in Cacti

Post by MI1 »

Hi,

just recently my colleague shown me a bug when Cisco Content switch exceeds 828 days of uptime it can cause network connectivity problems. So we need to monitor all affected devices for uptime. I decided to use Thold plugin for this and discover that Cacti is showing wrong uptime under Console / Management / devices and when i choose device Cacti it queries a device and shows uptime in left upper corner. It showed me 22 days. But colleague told me that uptime he is seeing on the device is more than 500 days.

So I digg a bit around and found that Cacti [0.8.7g] uses SNMPv2-MIB::sysUpTime, but this is only for the SNMP daemon uptime, no the system update. So when i open device properties it shows me actually wrong value. Shouldnt it use HOST-RESOURCES-MIB::hrSystemUptime for system update? Could be a bug / possibly old because my Cacti is a bit outdated. I am also unable to query device for hrSystemUptime:

Code: Select all

snmpget -v 2c -c my-community device_ip .1.3.6.1.2.1.1.3.0
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (186136482) 21 days, 13:02:44.82

snmptranslate .1.3.6.1.2.1.1.3.0
DISMAN-EVENT-MIB::sysUpTimeInstance

snmptranslate .1.3.6.1.2.1.25.1.1.0
HOST-RESOURCES-MIB::hrSystemUptime.0

snmpget -v 2c -c my-community device_ip .1.3.6.1.2.1.25.1.1.0
HOST-RESOURCES-MIB::hrSystemUptime.0 = No Such Object available on this agent at this OID
Please help me understand.

But actually i need to monitor tresholds and setup warning e-mail, so I looked under treshold templates and i can see there:

Code: Select all

ucd_hrSystemUptime [ucd_hrSystemUptime]
ucd_sysUptime [ucd_sysUptime]
- treshold wizard let me use ucd_hrSystemUptime [ucd_hrSystemUptime] only but also wrong uptime shown. Screenshot attached. I know that several things may be wrong in my system so there may not be easy to debug this but please discuss so I can understand and look for sollution.

Thx

Regards
Attachments
treshold-wizard.png
treshold-wizard.png (22.08 KiB) Viewed 2544 times
content switch.png
content switch.png (6.3 KiB) Viewed 2544 times
MI1
Posts: 30
Joined: Tue Aug 21, 2012 2:23 am

Re: Uptime monitoring / wrong values shown in Cacti

Post by MI1 »

I have created 2 tresholds, one is based on Netmork Management uptim and second on Host uptime. It looks like my box is unable to get current host uptime? Please see screenshot. Missing MIBs or missing entry in /etc/snmp/snmpd.conf ?

Edit:

After some elaboration it looks like my system is able to run snmpget against other devices but not against particular Cisco Content Switch:

Works on crosbeam firewall

Code: Select all

snmpget -v 2c -c XXX IP .1.3.6.1.2.1.25.1.1.0
HOST-RESOURCES-MIB::hrSystemUptime.0 = Timeticks: (688621137) 79 days, 16:50:11.37

snmpget -v 2c -c XXX IP hrSystemUptime.0
HOST-RESOURCES-MIB::hrSystemUptime.0 = Timeticks: (688684357) 79 days, 17:00:43.57
Do not work on Cisco Content Switch

Code: Select all

snmpget -v 2c -c XXX IP .1.3.6.1.2.1.25.1.1.0
HOST-RESOURCES-MIB::hrSystemUptime.0 = No Such Object available on this agent at this OID

snmpget -v 2c -c XXX IP hrSystemUptime.0
HOST-RESOURCES-MIB::hrSystemUptime.0 = No Such Object available on this agent at this OID
Thx for any hint
Attachments
thold-both-uptime-tresholds.png
thold-both-uptime-tresholds.png (24.59 KiB) Viewed 2543 times
zshwww9187
Posts: 14
Joined: Sat Aug 14, 2010 9:11 am

Re: Uptime monitoring / wrong values shown in Cacti

Post by zshwww9187 »

MI1
Posts: 30
Joined: Tue Aug 21, 2012 2:23 am

Re: Uptime monitoring / wrong values shown in Cacti

Post by MI1 »

Thx but video does not reply to my questions. What is the OID to detect hrSystemUptime.0 against CSS and why is Cacti using sysUpTimeInstance instead hrSystemUptime.0 in the device view.

Edit: I understand now. CSS do not support such OID and it could happened to many other devices. So for that reason sysUpTimeInstance make sense.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests