|
|
| Author |
Message |
echouin12
Joined: 08 Jul 2008 Posts: 48 Location: MSU High Energy Physics
|
Posted: Mon Jul 21, 2008 12:59 pm Post subject: RRDtool gives NAN Values |
|
|
This is a follow up to my previous post at
http://forums.cacti.net/viewtopic.php?p=140531#140531
Someone please help me figure this out. I've been looking at the documentation "Debug NaN in you Graphs" http://docs.cacti.net/node/283 but I'm a total newbie these directions aren't the clearest for me. I go to my cacti.log file and, nothing, nothing happens there's nothing in it, I dunno what to do. When I go to Settings, Paths everything seems absolutely fine, there are no errors. And the next couple of steps I don't quite understand because I'm very new to all this.
But when I do a rrdtool fetch all the values are nan and the rrdtool info everything there looks fine...so see my problem....I'm trying but I can't get anywhere.
Please help me!!!!!!! |
|
| Back to top |
|
 |
rtorti19
Joined: 07 May 2008 Posts: 48
|
Posted: Mon Jul 21, 2008 1:48 pm Post subject: |
|
|
Are the permissions set properly on your log and rra directories such that the user you have configured to run the poller has read/write access to it?
What does your "poller.php" line look like in your crontab? |
|
| Back to top |
|
 |
echouin12
Joined: 08 Jul 2008 Posts: 48 Location: MSU High Energy Physics
|
Posted: Tue Jul 22, 2008 8:50 am Post subject: |
|
|
Here is my /etc/crontab, I just used what they had in the tutorial.
*/5 * * * * cactiuser php /var/www/html/cacti/poller.php > /dev/null 2>&1
Does it look right?
Thanks for the help! |
|
| Back to top |
|
 |
echouin12
Joined: 08 Jul 2008 Posts: 48 Location: MSU High Energy Physics
|
Posted: Tue Jul 22, 2008 8:56 am Post subject: |
|
|
So here are my permissions for the files log and rra.
drwxr-xr-x 2 cactiuser root 4096 Feb 11 19:57 log
drwxr-xr-x 2 cactiuser root 4096 Jul 18 12:34 rra
But when I try to view my cacti.log, there's nothing
So I changed cacti.log from
-rw-r--r-- 1 cactiuser root 0 Feb 11 19:57 cacti.log
to
-rw-rw-rw- 1 cactiuser root 0 Feb 11 19:57 cacti.log
but there is still nothing happening.
My rrd's are not being created at all, and I'm not sure why.
Thanks for your help! |
|
| Back to top |
|
 |
rtorti19
Joined: 07 May 2008 Posts: 48
|
Posted: Tue Jul 22, 2008 9:37 am Post subject: |
|
|
What OS are you using? Your cron entry might need to be changed slightly depending on your OS.
It appears as though the poller is not being run at all. Have you looked at the system log files to see if crond is reporting any errors while trying to run it?
In you crontab entry try pathing out to php instead of just using "php" (i.e. use /usr/bin/php) Depending on your OS the php binary might be located somewhere else, just adjust the path accordingly.
Another option is to try and run "php /var/www/html/cacti/poller.php" by hand as the cactiuser and see what happens. |
|
| Back to top |
|
 |
echouin12
Joined: 08 Jul 2008 Posts: 48 Location: MSU High Energy Physics
|
Posted: Tue Jul 22, 2008 9:39 am Post subject: |
|
|
It probably is the permission to the rrdtool, but how do I change that??? Is there an easy way so that you don't have to reassign them all by hand? Please help, there's not much by way of google so I'm not sure what I'm suppose to do.
Thanks a ton!!!!!  |
|
| Back to top |
|
 |
echouin12
Joined: 08 Jul 2008 Posts: 48 Location: MSU High Energy Physics
|
Posted: Tue Jul 22, 2008 9:40 am Post subject: |
|
|
| Actually, are there any plugins I should have, bc as of right now I don't have any! |
|
| Back to top |
|
 |
rtorti19
Joined: 07 May 2008 Posts: 48
|
Posted: Tue Jul 22, 2008 9:44 am Post subject: |
|
|
No plugins are needed at this point.
What is your OS, and did you try my suggestions in my previous post? |
|
| Back to top |
|
 |
echouin12
Joined: 08 Jul 2008 Posts: 48 Location: MSU High Energy Physics
|
Posted: Tue Jul 22, 2008 9:48 am Post subject: |
|
|
Well when I run the poller.php as cactiuser by hand I get this
php /var/www/htdocs/cacti/poller.php
Status: 404
Content-type: text/html
X-Powered-By: PHP/4.3.9
No input file specified.
Using Linux Red Hat 4 |
|
| Back to top |
|
 |
rtorti19
Joined: 07 May 2008 Posts: 48
|
Posted: Tue Jul 22, 2008 9:57 am Post subject: |
|
|
Did you run this from the command line? the output looks like something you'd get from a browser?
Try using the full path to php. You can get this by typing "which php" on the command line. Then try running the poller again using full paths. And remember to run it as the user "cactiuser" |
|
| Back to top |
|
 |
echouin12
Joined: 08 Jul 2008 Posts: 48 Location: MSU High Energy Physics
|
Posted: Tue Jul 22, 2008 9:58 am Post subject: |
|
|
Also, in Graph Debug Mode I get this error:
ERROR: opening '/www/htdocs/cacti/rra/localhost_users_6.rrd': No such file or directory
for all the data sources that I didn't execute by hand, so you can see that rrdtool is not working, its not creating the files properly.
Thanks so much for all the help! |
|
| Back to top |
|
 |
rtorti19
Joined: 07 May 2008 Posts: 48
|
Posted: Tue Jul 22, 2008 10:03 am Post subject: |
|
|
Ok I don't know if this was a typo on your part or not, but I just noticed that your crontab entry has /var/www/htdocs/cacti/poller.php as being the location for your cacti install.
However when you posted the output from Graph Debut Mode, it show /www/htdocs/cacti as being the location of your cacti install. This would obviously cause issues. Double check the location of your install and fix your crontab accordingly if it is wrong. |
|
| Back to top |
|
 |
echouin12
Joined: 08 Jul 2008 Posts: 48 Location: MSU High Energy Physics
|
Posted: Tue Jul 22, 2008 10:04 am Post subject: |
|
|
Yeah thats what I did before, but I followed your directions.
which php
/usr/bin/php
so I became cactiuser
[cactiuser@toad cacti-install]$ /usr/bin/php /var/www/htdocs/cacti/poller.php
Status: 404
Content-type: text/html
X-Powered-By: PHP/4.3.9
No input file specified.
And I get the same thing!This is frustrating, but thank you so much for helping! |
|
| Back to top |
|
 |
rtorti19
Joined: 07 May 2008 Posts: 48
|
Posted: Tue Jul 22, 2008 10:09 am Post subject: |
|
|
| Is you cacti install at /var/www/htdocs/cacti or /www/htdocs/cacti ? |
|
| Back to top |
|
 |
echouin12
Joined: 08 Jul 2008 Posts: 48 Location: MSU High Energy Physics
|
Posted: Tue Jul 22, 2008 10:12 am Post subject: |
|
|
umm...both kind of, I can get there either way,
/var/www/htdocs/cact
or
/cacti-install/www/htdocs/cacti |
|
| Back to top |
|
 |
|