Graphs are there but they're empty

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

Moderators: Developers, Moderators

Post Reply
ckissi
Posts: 2
Joined: Mon Jan 08, 2007 12:15 pm

Graphs are there but they're empty

Post by ckissi »

Hello,

When I installed cacti I noticed that graphs aren't renerated. Then I ran: php poller.php and it generated them. But all of them are empty. This is what I got on screen:
# /usr/bin/php /usr/share/cacti/poller.php
OK u:0.00 s:0.00 r:0.00
OK u:0.00 s:0.00 r:0.00
OK u:0.00 s:0.00 r:0.00
OK u:0.00 s:0.00 r:0.00
OK u:0.00 s:0.00 r:0.00
OK u:0.00 s:0.00 r:0.00
OK u:0.00 s:0.00 r:0.00
Content-type: text/html
X-Powered-By: PHP/4.3.9

01/08/2007 11:13:40 AM - SYSTEM STATS: Time:1.0157 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:9 RRDsProcessed:7

And this is in my cacti.log:

01/08/2007 11:13:40 AM - SYSTEM STATS: Time:1.0157 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:9 RRDsProcessed:7

Also when I run the cron job: "cacti /usr/bin/php /usr/share/cacti/poller.php > /dev/null 2>&1" there is nothing in cacti.log for this run.
ckissi
Posts: 2
Joined: Mon Jan 08, 2007 12:15 pm

Post by ckissi »

I did run in DEBUG mode and got this:

# php /usr/share/cacti/poller.php
Content-type: text/html
X-Powered-By: PHP/4.3.9

01/08/2007 11:40:47 AM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/php, ARGS: -q /usr/share/cacti/cmd.php 0 1]
01/08/2007 11:40:48 AM - POLLER: Poller[0] Parsed MULTI output field '1min:0.16' [map 1min->load_1min]
01/08/2007 11:40:48 AM - POLLER: Poller[0] Parsed MULTI output field '5min:0.04' [map 5min->load_5min]
01/08/2007 11:40:48 AM - POLLER: Poller[0] Parsed MULTI output field '10min:0.01' [map 10min->load_15min]
01/08/2007 11:40:48 AM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /usr/share/cacti/rra/localhost_mem_buffers_3.rrd --template mem_buffers 1168278047:1476136
01/08/2007 11:40:48 AM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /usr/share/cacti/rra/localhost_mem_swap_4.rrd --template mem_swap 1168278047:1052248
OK u:0.00 s:0.00 r:0.00
OK u:0.00 s:0.00 r:0.00
01/08/2007 11:40:48 AM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /usr/share/cacti/rra/localhost_load_1min_5.rrd --template load_1min:load_5min:load_15min 1168278047:0.16:0.04:0.01
OK u:0.00 s:0.00 r:0.01
01/08/2007 11:40:48 AM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /usr/share/cacti/rra/localhost_users_6.rrd --template users 1168278047:1
OK u:0.00 s:0.00 r:0.01
01/08/2007 11:40:48 AM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /usr/share/cacti/rra/localhost_proc_7.rrd --template proc 1168278047:140
OK u:0.00 s:0.00 r:0.01
01/08/2007 11:40:48 AM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /usr/share/cacti/rra/localhost_hdd_free_8.rrd --template hdd_used:hdd_free 1168278047:16935:78932
OK u:0.00 s:0.00 r:0.01
01/08/2007 11:40:48 AM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /usr/share/cacti/rra/localhost_hdd_free_9.rrd --template hdd_used:hdd_free 1168278047:2015396:130842620
OK u:0.00 s:0.00 r:0.01
01/08/2007 11:40:48 AM - SYSTEM STATS: Time:1.0193 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:9 RRDsProcessed:7

Seems that it collected data I just cannot see anything in graphs, there are NAN values at the bottom of graph
steveshead
Posts: 2
Joined: Mon Jan 08, 2007 4:34 pm
Location: San Jose, CA

Same

Post by steveshead »

I have the same issue, but this occured after I did a YUM update on my Linux server. Any ideas would be helpful!

Thanks

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

Post by gandalf »

Please see My NaN Debugging HowTo
Reinhard
steveshead
Posts: 2
Joined: Mon Jan 08, 2007 4:34 pm
Location: San Jose, CA

Thanks for the help

Post by steveshead »

I actually sorted 99% of my issue out. I moved the rra directory aside, created a new one and made sure the permissions were reset. That was all it took for some reason.

The other 1% is the host not returning any data, but that is easier to sort out.

Thanks for the tutorial though. I am sure it will come in very handy further down the road.

Steve
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest