I have a bit of a problem with a couple of graphs which has stopped updating. These graphs are based on a apache template found on the forums:
http://forums.cacti.net/viewtopic.php?f=12&t=25227
I updated debian to the stable release on the monitored server and thus updated apache2 from 2.2 to 2.4, I had to tweak the configuration to get /server-status back and available to cacti.
After that the thread graphs started working again but no dice for the cpu load hits and kbits.
Every time the poller runs, the script returns a value correctly but rrd updates with an unknown "U" value. The value retrieved with the script is within the ranged defined in the data template and if I run an rrdtool info on one of the affected database if returns the same info that is in cati:
Debug Log:
Code: Select all
11/23/2015 02:53:04 PM - CMDPHP: Poller[0] Host[17] DS[286] SERVER: /usr/share/cacti/site/scripts/ss_apache_stats.php ss_apache_stats myserver.mydomain.tld hits, output: myserver.mydomain.tldapache_total_hits:5867
11/23/2015 02:53:04 PM - PHPSVR: Poller[0] DEBUG: PID[10991] CTR[8] INC: 'ss_apache_stats.php' FUNC: 'ss_apache_stats' PARMS: 'myserver.mydomain.tld kbytes'
11/23/2015 02:53:04 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /var/lib/cacti/rra/myserver_apache_total_hits_286.rrd --template apache_total_hits 1448286784:U
Code: Select all
filename = "myserver_apache_total_hits_286.rrd"
rrd_version = "0003"
step = 300
last_update = 1448295185
header_size = 3704
ds[apache_total_hits].index = 0
ds[apache_total_hits].type = "COUNTER"
ds[apache_total_hits].minimal_heartbeat = 600
ds[apache_total_hits].min = 0.0000000000e+00
ds[apache_total_hits].max = 1.0000000000e+04
ds[apache_total_hits].last_ds = "U"
ds[apache_total_hits].value = NaN
ds[apache_total_hits].unknown_sec = 185
I have tried to rebuild the poller cache, I successfully updated the rrd db with the value using rrdtool update. It seems to me that the value is not recognized as "valid" and is passed as unknown to the update process. However I am stump as to why suddenly the value is not correct anymore.
Thanks for reading!