Some apache graphs not updating after upgrade

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

Moderators: Developers, Moderators

Post Reply
babzek
Posts: 2
Joined: Tue Nov 24, 2015 2:42 am

Some apache graphs not updating after upgrade

Post by babzek »

Hello everyone,

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
rrdtool info:

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
If I run the script on the cli it works correctly and returns a value.

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!
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Re: Some apache graphs not updating after upgrade

Post by phalek »

The output is actually wrong:

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
It should be:

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: apache_total_hits:5867
Check the scripts why the additional "myserver.mydomain.tld" is added.
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
babzek
Posts: 2
Joined: Tue Nov 24, 2015 2:42 am

Re: Some apache graphs not updating after upgrade

Post by babzek »

Well ... spot on!
That is why it helps to have another set of eyes look at a problem.
There was an echo in the script that I added when troubleshooting the server-status page not being accessible.

Thanks for the help.
Post Reply

Who is online

Users browsing this forum: No registered users and 8 guests