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]
data comes, but graphics are blank
Moderators: Developers, Moderators
Post subject: data comes, but graphics are blank (Graph prob
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.
#!/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.
Re: data comes, but graphics are blank
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.
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.
- 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
A valid hint to pay attention to environment variables (e.g. $PATH). In case $PATH is the issue, /full/path/to/command would be easierdax 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.
R.
Who is online
Users browsing this forum: No registered users and 1 guest