Empty Graphs?
Moderators: Developers, Moderators
Empty Graphs?
My graphs -seem- to be getting created just fine, but every time I go to look at a graph, the displays always read "nan" on any graph, for any value. What am I doing wrong?
Thanks much
Thanks much
what are the perms on /log?
Also, are the rrd files being updated?
If you go under console and turn on the graph debugging, it may shed some more light on the subject
is webdev your httpd server group and/or is the web server user in that group (typically apache or nobody under unix)?
If you go under console and turn on the graph debugging, it may shed some more light on the subject
is webdev your httpd server group and/or is the web server user in that group (typically apache or nobody under unix)?
webdev is my user that runs the webserver, which the username "cacti" is a part of. /rra is owned and read/writable by cacti. The RRA files don't seem to be getting updated unless I manually run php cmd.php (Just realized thats because I had the wrong path in crontab) ...
But even when I run the cmd.php manually, it doesnt seem to update the graphs with any values other than "nan"...
But even when I run the cmd.php manually, it doesnt seem to update the graphs with any values other than "nan"...
manual cmd.php
Who are you running the cmd.php from the command line as?
I run the command as cacti, via this command:
and it displays the following:
Code: Select all
su -u cacti php cmd.php
And the rrd/* files all get an updated timestamp.jomamma:/usr/local/apache/htdocs/cacti# sudo -u cacti php cmd.php
command: perl /usr/local/apache/htdocs/cacti/scripts/linux_memory.pl MemFree:, output: 12552
command: perl /usr/local/apache/htdocs/cacti/scripts/linux_memory.pl SwapFree:, output: 51480
MULTI command: perl /usr/local/apache/htdocs/cacti/scripts/loadavg_multi.pl, output: 1min:0.00 5min:0.00 10min:0.00
MULTI expansion: found fieldid: 17, found rrdname: load_1min, value: 0.00
MULTI expansion: found fieldid: 18, found rrdname: load_5min, value: 0.00
MULTI expansion: found fieldid: 19, found rrdname: load_15min, value: 0.00
command: perl /usr/local/apache/htdocs/cacti/scripts/unix_users.pl, output: 13
command: perl /usr/local/apache/htdocs/cacti/scripts/unix_processes.pl, output: 105
update /usr/local/apache/htdocs/cacti/rra/localhost_mem_buffers_3.rrd --template mem_buffers N:12552
update /usr/local/apache/htdocs/cacti/rra/localhost_mem_swap_4.rrd --template mem_swap N:51480
update /usr/local/apache/htdocs/cacti/rra/localhost_load_1min_5.rrd --template load_1min:load_5min:load_15min N:0.00:0.00:0.00
update /usr/local/apache/htdocs/cacti/rra/localhost_users_6.rrd --template users N:13
update /usr/local/apache/htdocs/cacti/rra/localhost_proc_7.rrd --template proc N:105
time: 0
group perms ?
Can you post the output of ls -al rra as well as ls -al log?
Hi,
got the same Problem, i'm kinda wiered about all the forum threads which already care about it, but never they come to a clear solution...
Here is my ls -al of rra/
and here of log/
cacta is the user that calls the cmd.php in the crontab file
there IS something wrong with the permissions, i figured that from other threads allready
Thanks for your help folks
Mathias
got the same Problem, i'm kinda wiered about all the forum threads which already care about it, but never they come to a clear solution...
Here is my ls -al of rra/
Code: Select all
[root@RHLinux8nbg cacti]# ls -al rra
insgesamt 444
drwxr-xr-x 2 root root 4096 Jul 13 12:41 .
drwxr-xr-x 12 root root 4096 Jul 13 10:59 ..
-rw-r--r-- 1 root cacta 94660 Jul 13 12:41 localhost_hdd_free_8.rrd
-rw-r--r-- 1 root cacta 141484 Jul 13 12:41 localhost_load_1min_5.rrd
-rw-r--r-- 1 root cacta 47836 Jul 13 12:41 localhost_mem_buffers_3.rrd
-rw-r--r-- 1 root cacta 47836 Jul 13 12:41 localhost_mem_swap_4.rrd
-rw-r--r-- 1 root cacta 47836 Jul 13 12:41 localhost_proc_7.rrd
-rw-r--r-- 1 root cacta 47836 Jul 13 12:41 localhost_users_6.rrd
-rw-r--r-- 1 root root 0 Jul 13 10:59 .placeholder
Code: Select all
[root@RHLinux8nbg cacti]# ls -al log
insgesamt 96
drwxr-xr-x 2 root root 4096 Jul 13 11:24 .
drwxr-xr-x 12 root root 4096 Jul 13 10:59 ..
-rw-r--r-- 1 root root 83232 Jul 13 12:50 rrd.log
Code: Select all
#Cacti
*/5 * * * * cacta php /usr/local/apache2/htdocs/cacti/cmd.php > /dev/null 2>&1
Thanks for your help folks
Mathias
I think i solved the problem.
i installed everything again, clean. (Apache, php, mysql, cacti)
all as root (i know its insecure but its working )
i just start EVERYTHING as root, including te cronjob.
my cronjob looks exactly like in the docu, but i REPLACED the 'php'command with the COMPLETE path to the php binary (/usr/local/bin/php) .
i gave the whole cacti-directory ownage for root:root .
and now it's working fine, as it should.
i will try to get it working as normal user next week, let's see what it'll bring...
i installed everything again, clean. (Apache, php, mysql, cacti)
all as root (i know its insecure but its working )
i just start EVERYTHING as root, including te cronjob.
my cronjob looks exactly like in the docu, but i REPLACED the 'php'command with the COMPLETE path to the php binary (/usr/local/bin/php) .
i gave the whole cacti-directory ownage for root:root .
and now it's working fine, as it should.
i will try to get it working as normal user next week, let's see what it'll bring...
Who is online
Users browsing this forum: No registered users and 1 guest