System uptime via hrSystemUptime

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Moderators, Developers

Post Reply
Author
Message
ymodem
Posts: 3
Joined: Tue Aug 21, 2018 1:12 pm

System uptime via hrSystemUptime

#1 Post by ymodem » Fri Aug 24, 2018 10:00 am

I've been using much of the Cacti base install for some time. Now I'm expanding my use and looking into monitoring some other aspects of my systems. One that has been giving me problems lately is trying to monitor system uptime. In this case I am looking to monitor the actual system uptime, not just the network uptime. So I'm looking at monitoring hrSystemUptime (.1.3.6.1.2.1.25.1.1).

In Cacti I've used this template, https://docs.cacti.net/usertemplate:gra ... stemuptime, written for a slightly older version of Cacti. I don't see anything glaring as a problem here so not sure what is gone awry.

I can view the 'realtime' graph with no problems. It shows the correct data as it updates. However the normal graph does not work. I've seen in other similar type posts where realtime works but normal doesn't that it could be a permission issue. In my case the rrd is created. So I don't think that is the issue. I've tried just about everything out there that I think could be related and am stumped. Anyone have any thoughts on what may be happening?

Cacti System
CentOS Linux 7.5.1804
Cacti 1.1.38, installed via yum
PHP 5.4.16

SNMP call from Cacti System console to system being monitored. So snmpd is operational and accessible.
# snmpwalk -v 3 -u tester -l authPriv -a SHA -A tester123 -x AES -X tester321 xxx.yyy.net .1.3.6.1.2.1.25.1.1
HOST-RESOURCES-MIB::hrSystemUptime.0 = Timeticks: (3330940374) 385 days, 12:36:43.74

Cacti Poller log
POLLER: Poller[Main Poller] WARNING: Invalid Response(s), Errors[1] Device[7] Device[3PL] Thread[1] Graphs[3PL - Uptime, 3PL - Uptime] DS[3PL - Uptime]
POLLER: Poller[Main Poller] Device[7] Device[3PL] Graphs[3PL - Uptime, 3PL - Uptime] DS[3PL - Uptime] SNMP: v3: xxx.yyy.net, dsname: hrSystemUptime, oid: .1.3.6.1.2.1.25.1.1.0, output: U

So I'm thinking the issue is somewhere down at the poller level. I've tried polling two different systems (Ubuntu and Centos) and from two different Cacti systems with the same results.

Does anyone have some recommendations on other things to look into any try? Your guidance is greatly appreciated.


ymodem
Posts: 3
Joined: Tue Aug 21, 2018 1:12 pm

Re: System uptime via hrSystemUptime

#3 Post by ymodem » Fri Aug 24, 2018 2:03 pm

Attached an image of the Cacti device SNMP settings. Other graphs against this host work just fine in 'normal' mode.
Attachments
SS1.png
SS1.png (64.53 KiB) Viewed 559 times

netniV
Cacti Guru User
Posts: 2656
Joined: Sun Aug 27, 2017 12:05 am

Re: System uptime via hrSystemUptime

#4 Post by netniV » Fri Aug 24, 2018 6:43 pm

I've just seen that you reused an old template. You really should use the version that comes packaged with Cacti rather than going backwards. Try using cli/import_package.php with the template package that is in install/templates

ymodem
Posts: 3
Joined: Tue Aug 21, 2018 1:12 pm

Re: System uptime via hrSystemUptime

#5 Post by ymodem » Mon Aug 27, 2018 11:39 am

I'll have a look in there and see what I can find. I'm guessing you are referring to using the Generic OID Template as the baseline? I tried using that template and still get similar results. Realtime gets data but normal doesn't get anything. I'm wondering if the issue is down at the poller level since that is getting NaN or U.

2018/08/27 12:32:01 - POLLER: Poller[Main Poller] WARNING: Invalid Response(s), Errors[2] Device[12] Device[eagle1] Thread[1] Graphs[eagle1 - Uptime, eagle1 - Uptime] Graphs[eagle1 - test, eagle1 - test] DS[eagle1 - Uptime, eagle1 - testing]
2018/08/27 12:32:01 - POLLER: Poller[Main Poller] Device[12] Device[eagle1] Graphs[eagle1 - test, eagle1 - test] DS[eagle1 - testing] SNMP: v3: eagle1, dsname: snmp_oid, oid: .1.3.6.1.2.1.25.1.1.0, output: U
2018/08/27 12:32:01 - POLLER: Poller[Main Poller] Device[12] Device[eagle1] Graphs[eagle1 - test, eagle1 - test] DS[eagle1 - testing] WARNING: Result from SNMP not valid. Partial Result: (3357615811) 388 day

Hopefully getting this data figured out will help me to better understand the tools so I can setup other graphs. If necessary is it possible to provide short steps to get a graph for hrSystemUptime up and running?

netniV
Cacti Guru User
Posts: 2656
Joined: Sun Aug 27, 2017 12:05 am

Re: System uptime via hrSystemUptime

#6 Post by netniV » Mon Sep 03, 2018 9:25 am

Are you using php's php-snmp module or the net-snmp libraries?

Post Reply