[SOLVED] Cacti graphs not being created

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

Moderators: Developers, Moderators

Post Reply
bitnoise
Posts: 11
Joined: Thu May 18, 2006 4:43 am

[SOLVED] Cacti graphs not being created

Post by bitnoise »

Hello,

I have an issue with my graphs:

When I look at my graps (Devices > Server > Is Being Graphed (Edit)) and I click on this edit (and turn on debugging), I get this:

Code: Select all

  	 RRDTool Command:

/usr/local/rrdtool-1.2.27/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="SERVER - Logged in Users" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="users" \
DEF:a="/var/www/html/cacti/rra/server_users_26.rrd":users:AVERAGE \
DEF:b="/var/www/html/cacti/rra/server_users_26.rrd":users:MAX \
AREA:a#4668E4:"Users"  \
GPRINT:a:LAST:"Current\:%8.0lf"  \
GPRINT:a:AVERAGE:"Average\:%8.0lf"  \
GPRINT:b:MAX:"Maximum\:%8.0lf" 

RRDTool Says:

OK
Next to it I get a graph layout, which stays at NAN (empty graph). When I now try going to my graphs overview, it doesn't show any graph at all.
When I click on detail, however, it displays the nan again...

OS: Centos 5.1
Cacti: cacti-0.8.7b
Rrdtool: 1.2.27


I have full debug logging activated, and all runs ok (my .rrd files get created correctly)

Anyone knows what I can check?
Thanks a Lot
Attachments
cacti problem-graphs.JPG
cacti problem-graphs.JPG (13.79 KiB) Viewed 4812 times
cacti problem-graphs-detail.JPG
cacti problem-graphs-detail.JPG (51.27 KiB) Viewed 4812 times
cacti problem.JPG
cacti problem.JPG (45.51 KiB) Viewed 4816 times
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

What's "Settings->RRDTool Utility Version"?
Reinhard
Alex paris
Posts: 23
Joined: Thu Jun 05, 2008 8:10 am

Post by Alex paris »

I have the same problem, and my RRDTool Utility Version is RRDTool 1.2.x

looking for help, thanks! :wink:
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Anything ugly in /var/log/httpd/error_log?
Reinhard
Alex paris
Posts: 23
Joined: Thu Jun 05, 2008 8:10 am

Post by Alex paris »

yes, there is one erreur, it shows like this "/bin/sh: /usr/share/cacti/site/poller.php: Aucun fichier ou répertoire de ce type(it means 'no file or repertory of this type')", i've tried to copy the file 'poller.php' under the /usr/share/cacti/site/, and i've given the permission to this file, but it still doesn't work :o :-?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please post content of /etc/crontab (or wherever your distro defines cacti polling)
Reinhard
arunpereira
Posts: 3
Joined: Sat Jun 21, 2008 2:09 pm

Post by arunpereira »

you're executing a php file with /bin/sh. I believe at first glance that you should be using the php binary.
For example /usr/bin/php /usr/share/cacti/site/poller.php
If it still doesn't work with the php binary, try posting php -i | grep configure to here. Generally you want atleast with-mysql and with-snmp in the configure statement for your php binary.
bitnoise
Posts: 11
Joined: Thu May 18, 2006 4:43 am

Post by bitnoise »

Hey,

sorry for not replying earlier, but I turned on the 'Notify me when a reply is posted', but I never got a maill.. anyhow..

I haven't been able to check the system for a while, but it seems it just started working now... very weird...

thanks a lot anyhow!
Hazeldark
Posts: 2
Joined: Thu Jul 10, 2008 6:51 am

Post by Hazeldark »

Hi there !

I've got the same problem with Cacti...

And, in my httpd/error_log, there is : ERROR: invalid text property format
ERROR: invalid text property format


Can you help me ?

regards !
loganville
Posts: 5
Joined: Tue Jul 15, 2008 2:08 pm
Location: Shippensburg University

Post by loganville »

I am having the same error. The graphs were working fine but then one morning they stopped when no one was even on the system. I looked at "/var/log/messages/" and the problem started shortly after: "pxeserver syslogd 1.5.0#1ubuntu1: restart." was logged, where pxeserver is our host. Any ideas?
Logan Kennedy lkennedy@workxpress.com
Developer at Express Dynamics, makers of the WorkXpress Engine. www.workxpress.com
Hazeldark
Posts: 2
Joined: Thu Jul 10, 2008 6:51 am

Post by Hazeldark »

I have found why...

For me, I hadn't the good version of RRDTool...

You need the 1.2.23 version at least...

regards !
loganville
Posts: 5
Joined: Tue Jul 15, 2008 2:08 pm
Location: Shippensburg University

Post by loganville »

According to System Utilities->Technical Support I have:

Cacti Version 0.8.7b
Cacti OS unix
SNMP Version net-snmp
RRDTool Version RRDTool 1.2.x

So I doubt I am having the same error as Hazeldark.
Logan Kennedy lkennedy@workxpress.com
Developer at Express Dynamics, makers of the WorkXpress Engine. www.workxpress.com
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

loganville wrote:According to System Utilities->Technical Support I have:

Cacti Version 0.8.7b
Cacti OS unix
SNMP Version net-snmp
RRDTool Version RRDTool 1.2.x

So I doubt I am having the same error as Hazeldark.
Could be that your database was damaged on the reboot. There is a script in the cli directory called "repair_database.php", you should run it. Also, you Cacti Log would be very informative.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
loganville
Posts: 5
Joined: Tue Jul 15, 2008 2:08 pm
Location: Shippensburg University

Post by loganville »

Thanks for your response, the graphs are now graphing properly.
Logan Kennedy lkennedy@workxpress.com
Developer at Express Dynamics, makers of the WorkXpress Engine. www.workxpress.com
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest