Cacti doesn't display graphs

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

Moderators: Developers, Moderators

Post Reply
gardar
Posts: 4
Joined: Wed Mar 04, 2009 3:04 pm

Cacti doesn't display graphs

Post by gardar »

Just installed Cacti yesterday, followed this manual on how to install it:
http://www.ubuntugeek.com/networkserver ... erver.html

I have version 0.8.7d of cacti and rrdtool 1.2.30.

I was able to install everything successfully, but when I'm in Cacti I don't see any graphs.... What could be wrong? How can I diagnose the problem?

Thanks
gardar
Posts: 4
Joined: Wed Mar 04, 2009 3:04 pm

Post by gardar »

Image

This is how it appears...

How can I debug cacti?
cigamit
Developer
Posts: 3369
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Post by cigamit »

jbarbieri
Cacti User
Posts: 101
Joined: Tue May 24, 2005 8:46 am
Location: Rochester, New Hampshire
Contact:

Post by jbarbieri »

thats not even a nan, thats just no graph, which usually means, the rrd file wasn't created, or something is wrong with the graph template.


can you go under graph management, select a graph, and turn on debug, and paste the info?
cigamit
Developer
Posts: 3369
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Post by cigamit »

Yes, it means the RRD was not created. But most of the steps in the NaN documentation also help with figuring out why the graphs are not being created. Until we actually get some useful information so we could diagnose the issue (like his cacti.log) then all we can do is point him to documentation so he can try and debug the issue himself.

If its a fresh install (as he states) then usually it is not a Template issue, unless he was mucking about in places he shouldn't. The Graph Debug won't usually tell you anything useful either. He needs to check the permissions on the rra folder, and to check his cacti log for errors. Both of which are explained in the doc provided.
gardar
Posts: 4
Joined: Wed Mar 04, 2009 3:04 pm

Post by gardar »

The cacti log only gives me a list of admin logins
03/06/2009 01:55:02 AM - AUTH LOGIN: User 'admin' Authenticated
03/08/2009 01:23:00 AM - AUTH LOGIN: User 'admin' Authenticated
03/09/2009 06:56:55 PM - AUTH LOGIN: User 'admin' Authenticated
etc.

I turned on debug in the graph management and got this:

ERROR: opening '/var/www/cacti/rra/localhost_5min_cpu_11.rrd': No such file or directory

What could be causing this?
fragbait
Posts: 8
Joined: Wed Oct 18, 2006 5:23 pm

no graphs after upgrade

Post by fragbait »

Same problem I think as you....

Here is what I did HERE
cigamit
Developer
Posts: 3369
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Post by cigamit »

If you are only getting the admin logins, then mostly likely your cron job is not properly running. Double check that first. You should be getting some poller stats in there.
gardar
Posts: 4
Joined: Wed Mar 04, 2009 3:04 pm

Post by gardar »

That seems to be correct, I looked at my crontab and it didn't include a job for the proller.

I added this to my crontab

Code: Select all

*/5 * * * * cactiuser php /var/www/cacti/poller.php > /dev/null 2>&1
But it didn't seem to change anything, so I ran it manually.

Code: Select all

sudo php /var/www/cacti/poller.php
That gave me empty graphs, so I see I'm getting somewhere...

Now my log is like this:

Code: Select all

03/09/2009 10:20:25 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, b
ut 1133 seconds have passed since the last poll!
03/09/2009 10:20:27 PM - SYSTEM STATS: Time:1.2880 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:11 RRDsProcessed:8
03/09/2009 10:26:14 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, b
ut 349 seconds have passed since the last poll!
03/09/2009 10:26:16 PM - SYSTEM STATS: Time:1.2690 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:11 RRDsProcessed:8
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

When running manually, add "--force" to overcome the 300 sec checks. Make sure crond is running and have a look at the /var/log/cron* output
Reinhard
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests