data comes, but graphics are blank

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

Moderators: Developers, Moderators

cmolina

data comes, but graphics are blank (Graph problem)

Post by cmolina »

If you get the data with thecmd.php command, but the graphics stills blank, take care about this 2 issues
1) Files permission on rra and log directories (in my case www-data:www-data)
2) If you run the cmd.php command under root, all your permissions get to the trash...To solve it, look at your crontab for the cacti entry, look the user under cacti should be run, and fix the files permissions on the rra and log files.
Take care to run the cmd.php command under the crontab user (in my case www-data)

That's all, for the blank graphics problem.

Bye bye

Carlos Molina[/b]
dax

Post subject: data comes, but graphics are blank (Graph prob

Post by dax »

I had the same problem and fixed it using a simple wrapper:

#!/bin/bash
/doc/www/cacti/cmd.php

as crontab doesn't set all the environment varibles.
and this in crontab:

*/5 * * * * /doc/www/cacti/cmdwrapper 2>&1 /dev/null

it worked for me anyway.
seans11
Posts: 1
Joined: Sat Jun 18, 2011 12:32 pm

Re: data comes, but graphics are blank

Post by seans11 »

One more thing that could be possibly causing the NaNs and blank graphs... Check the graph date. I recently had an issue where my system CMOS battery was dead, so on reboot the date was falling back to Oct 2003. As you can imagine the graph was displaying the wrong time frame which contained no data points to graph.

I guess that is what happens when you go for long periods without a reboot and don't replace your batteries in a timely manner.

In my case, problem fixed.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: Post subject: data comes, but graphics are blank (Graph

Post by gandalf »

dax wrote:I had the same problem and fixed it using a simple wrapper:

#!/bin/bash
/doc/www/cacti/cmd.php

as crontab doesn't set all the environment varibles.
and this in crontab:

*/5 * * * * /doc/www/cacti/cmdwrapper 2>&1 /dev/null

it worked for me anyway.
A valid hint to pay attention to environment variables (e.g. $PATH). In case $PATH is the issue, /full/path/to/command would be easier
R.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest