Blank graphs...

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

Moderators: Developers, Moderators

Post Reply
steph1978
Posts: 3
Joined: Thu Apr 22, 2010 8:02 am

Blank graphs...

Post by steph1978 »

Hi There,

Been having some trouble with a freshly installed Cacti as all the graphs are generated with no data. Cacti is currently running in debug mode but I’m not seeing errors indicating any specific problems. I’ve installed Cacti a couple of times on many other platforms and this is the first time I’m actually experiencing any issues with it. I’m most certainly missing something incredible stupid or overlooking something I’m considering as insignificant but I’m honestly out of ideas.

Software versions I’m using.

Centos 5.4
RRD-Tool 1.3.8
Cacti : 0.8.7e

My configuration is as follow:

RRDtool Utility version : RRDTool 1.3x
poller : cmd.php (Tried spine , same problem)
Folders rra and logs uses my cactiuser rights.


Cron is setup as follow
*/5 * * * * cacti php /www/reports.bbi.co.bw/html/poller.php > /dev/null 2>&

Output for when I run my poller.php manually in debug mode. It’s currently only setup to check localhost (CPU / Disk etc) plus a Cisco Router with 4 Interfaces and CPU utilization.

[cacti@localhost html]$ php poller.php -d
04/22/2010 04:19:37 PM - POLLER: Poller[0] NOTE: Poller Int: '300', Cron Int: '300', Time Since Last: '614', Max Runtime '298', Poller Runs: '1'
04/22/2010 04:19:37 PM - POLLER: Poller[0] WARNING: Cron is out of sync with the Poller Interval! The Poller Interval is '300' seconds, with a maximum of a '300' second Cron, but 614 seconds have passed since the last poll!
04/22/2010 04:19:37 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/php, ARGS: -q "/www/reports.bbi.co.bw/html/cmd.php" 0 2]
Waiting on 1/1 pollers.
04/22/2010 04:19:38 PM - POLLER: Poller[0] Parsed MULTI output field '1min:0.00' [map 1min->load_1min]
04/22/2010 04:19:38 PM - POLLER: Poller[0] Parsed MULTI output field '5min:0.00' [map 5min->load_5min]
04/22/2010 04:19:38 PM - POLLER: Poller[0] Parsed MULTI output field '10min:0.00' [map 10min->load_15min]
04/22/2010 04:19:38 PM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool-1.3.8/bin/rrdtool update /www/reports.bbi.co.bw/html/rra/core_traffic_in_13.rrd --template traffic_out:traffic_in 1271942377:3502265627:3603184
04/22/2010 04:19:38 PM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool-1.3.8/bin/rrdtool update /www/reports.bbi.co.bw/html/rra/core_traffic_in_12.rrd --template traffic_out:traffic_in 1271942377:1432520492:2169846512
04/22/2010 04:19:38 PM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool-1.3.8/bin/rrdtool update /www/reports.bbi.co.bw/html/rra/core_traffic_in_11.rrd --template traffic_out:traffic_in 1271942377:3499750834:933041670
04/22/2010 04:19:38 PM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool-1.3.8/bin/rrdtool update /www/reports.bbi.co.bw/html/rra/core_traffic_in_10.rrd --template traffic_out:traffic_in 1271942377:1373675025:2651489303
04/22/2010 04:19:38 PM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool-1.3.8/bin/rrdtool update /www/reports.bbi.co.bw/html/rra/core_traffic_in_9.rrd --template traffic_out:traffic_in 1271942377:1533888151:1402266944
04/22/2010 04:19:38 PM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool-1.3.8/bin/rrdtool update /www/reports.bbi.co.bw/html/rra/core_5min_cpu_8.rrd --template 5min_cpu 1271942377:13
04/22/2010 04:19:38 PM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool-1.3.8/bin/rrdtool update /www/reports.bbi.co.bw/html/rra/localhost_proc_7.rrd --template proc 1271942377:90
04/22/2010 04:19:38 PM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool-1.3.8/bin/rrdtool update /www/reports.bbi.co.bw/html/rra/localhost_users_6.rrd --template users 1271942377:1
04/22/2010 04:19:38 PM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool-1.3.8/bin/rrdtool update /www/reports.bbi.co.bw/html/rra/localhost_load_1min_5.rrd --template load_1min:load_5min:load_15min 1271942377:0.00:0.00:0.00
04/22/2010 04:19:38 PM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool-1.3.8/bin/rrdtool update /www/reports.bbi.co.bw/html/rra/localhost_mem_swap_4.rrd --template mem_swap 1271942377:1081292
04/22/2010 04:19:38 PM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool-1.3.8/bin/rrdtool update /www/reports.bbi.co.bw/html/rra/localhost_mem_buffers_3.rrd --template mem_buffers 1271942377:10472
04/22/2010 04:19:38 PM - SYSTEM STATS: Time:1.1609 Method:cmd.php Processes:1 Threads:N/A Hosts:3 HostsPerProcess:3 DataSources:16 RRDsProcessed:11
OK u:0.00 s:0.00 r:1.03
OK u:0.00 s:0.00 r:1.03
OK u:0.00 s:0.00 r:1.03
OK u:0.00 s:0.00 r:1.03
OK u:0.00 s:0.00 r:1.03
OK u:0.00 s:0.00 r:1.03
OK u:0.00 s:0.00 r:1.03
OK u:0.00 s:0.00 r:1.03
OK u:0.00 s:0.00 r:1.03
OK u:0.00 s:0.00 r:1.04
OK u:0.00 s:0.00 r:1.04
Loop Time is: 1.1665000915527
Sleep Time is: 298.8189599514
Total Time is: 1.1810400485992


Also , cacti is installed on a virtual host running on Xend… not sure whether this causes any issues. Firewalls and SELinux is turned off.
Any suggestions would be greatly appreciated.

-steph
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

The first two lines from your log show the error. There has been too much time between polling events. So either your system time has a problem (formerly know to be found quite often on virtual machines) or your crond. Please see e.g. /var/log/cron for more
R.
steph1978
Posts: 3
Joined: Thu Apr 22, 2010 8:02 am

Post by steph1978 »

I think the reason the error showed was because I executed the poller manually shortly after cron fired it.

This is my cron log , everything seems ok and the time on my server appears to be correct.

Apr 22 16:40:01 localhost crond[28239]: (root) CMD (cacti php /www/reports.bbi.co.bw/html/poller.php > /dev/null 2>&)

Apr 22 16:45:01 localhost crond[28253]: (root) CMD (cacti php /www/reports.bbi.co.bw/html/poller.php > /dev/null 2>&)

Apr 22 16:50:01 localhost crond[28267]: (root) CMD (cacti php /www/reports.bbi.co.bw/html/poller.php > /dev/null 2>&)

Apr 22 16:55:01 localhost crond[28284]: (root) CMD (cacti php /www/reports.bbi.co.bw/html/poller.php > /dev/null 2>&)
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please change
cacti php /www/reports.bbi.co.bw/html/poller.php > /dev/null 2>&
to
cacti php /www/reports.bbi.co.bw/html/poller.php > /www/reports.bbi.co.bw/html/log/poller.log 2>&1
and have a look at that file
R.
steph1978
Posts: 3
Joined: Thu Apr 22, 2010 8:02 am

Post by steph1978 »

Thanks for the help man , seems like cron didn't like it when the cactiuser where put at the beginning of the command.

Before (added as root)
*/5 * * * * cacti php /www/reports.bbi.co.bw/html/poller.php > /dev/null 2>&

Seems to be working fine when I added the cron entry logged in as my cacti user.

*/5 * * * * php /www/reports.bbi.co.bw/html/poller.php > /dev/null 2>&

Had a feeling it's something stupid :)
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

In fact, running /etc/crontab or the like requires the user to be filled in.
Running user crontab does not require the user to be filled in
R.
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests