graphs not populating : brand new install

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

Moderators: Developers, Moderators

Post Reply
cactus friend
Posts: 2
Joined: Sat Dec 03, 2005 12:00 pm

graphs not populating : brand new install

Post by cactus friend »

This is a brand new install on a gentoo linux system...I am not able to get any data to show up on my graphs. I thought it was a permission problem, but I have checked in rra/ and log/ and the .rrd and .log files are owned by 'apache' which is the same user I have set to run poller.php in the cron file.

Upon checking the log, I see a lot of these repeating over and over again:

Code: Select all

12/03/2005 12:05:03 PM - SYSTEM STATS: Time:1.0658 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:5 RRDsProcessed:5
12/03/2005 12:05:03 PM - CMDPHP: Poller[0] Host[1] DS[7] WARNING: Result from CMD not valid. Partial Result:
12/03/2005 12:05:03 PM - CMDPHP: Poller[0] Host[1] DS[6] WARNING: Result from CMD not valid. Partial Result:
12/03/2005 12:05:03 PM - CMDPHP: Poller[0] Host[1] DS[5] WARNING: Result from CMD not valid. Partial Result:
12/03/2005 12:05:03 PM - CMDPHP: Poller[0] Host[1] DS[4] WARNING: Result from CMD not valid. Partial Result:
12/03/2005 12:05:03 PM - CMDPHP: Poller[0] Host[1] DS[3] WARNING: Result from CMD not valid. Partial Result:


So...I cleared the log, and enabled debug level logging:

Code: Select all

12/03/2005 12:10:03 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/php, ARGS: -q /var/www/localhost/htdocs/cacti/poller_export.php]
12/03/2005 12:10:03 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/php, ARGS: -q /var/www/localhost/htdocs/cacti/poller_commands.php]
12/03/2005 12:10:03 PM - SYSTEM STATS: Time:1.1790 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:5 RRDsProcessed:5
12/03/2005 12:10:03 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /var/www/localhost/htdocs/cacti/rra/localhost_proc_7.rrd --template proc 1133629802:U
12/03/2005 12:10:03 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /var/www/localhost/htdocs/cacti/rra/localhost_users_6.rrd --template users 1133629802:U
12/03/2005 12:10:03 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /var/www/localhost/htdocs/cacti/rra/localhost_load_1min_5.rrd --template 1133629802:U
12/03/2005 12:10:03 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /var/www/localhost/htdocs/cacti/rra/localhost_mem_swap_4.rrd --template mem_swap 1133629802:U
12/03/2005 12:10:03 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /var/www/localhost/htdocs/cacti/rra/localhost_mem_buffers_3.rrd --template mem_buffers 1133629802:U
12/03/2005 12:10:03 PM - CMDPHP: Poller[0] Time: 0.4780 s, Theads: N/A, Hosts: 1
12/03/2005 12:10:03 PM - PHPSVR: Poller[0] DEBUG: PHP Script Server Shutdown request received, exiting
12/03/2005 12:10:03 PM - CMDPHP: Poller[0] Host[1] DS[7] CMD: perl /var/www/localhost/htdocs/cacti/scripts/unix_processes.pl, output: U
12/03/2005 12:10:03 PM - CMDPHP: Poller[0] Host[1] DS[7] WARNING: Result from CMD not valid. Partial Result:
12/03/2005 12:10:03 PM - CMDPHP: Poller[0] Host[1] DS[6] CMD: perl /var/www/localhost/htdocs/cacti/scripts/unix_users.pl, output: U
12/03/2005 12:10:03 PM - CMDPHP: Poller[0] Host[1] DS[6] WARNING: Result from CMD not valid. Partial Result:
12/03/2005 12:10:03 PM - CMDPHP: Poller[0] Host[1] DS[5] CMD: perl /var/www/localhost/htdocs/cacti/scripts/loadavg_multi.pl, output: U
12/03/2005 12:10:03 PM - CMDPHP: Poller[0] Host[1] DS[5] WARNING: Result from CMD not valid. Partial Result:
12/03/2005 12:10:03 PM - CMDPHP: Poller[0] Host[1] DS[4] CMD: perl /var/www/localhost/htdocs/cacti/scripts/linux_memory.pl SwapFree:, output: U
12/03/2005 12:10:03 PM - CMDPHP: Poller[0] Host[1] DS[4] WARNING: Result from CMD not valid. Partial Result:
12/03/2005 12:10:03 PM - CMDPHP: Poller[0] Host[1] DS[3] CMD: perl /var/www/localhost/htdocs/cacti/scripts/linux_memory.pl MemFree:, output: U
12/03/2005 12:10:03 PM - CMDPHP: Poller[0] Host[1] DS[3] WARNING: Result from CMD not valid. Partial Result:
12/03/2005 12:10:03 PM - CMDPHP: Poller[0] Host[1] No host availability check possible for '127.0.0.1'.
12/03/2005 12:10:03 PM - CMDPHP: Poller[0] Host[1] SNMP: Device does not require SNMP
12/03/2005 12:10:03 PM - CMDPHP: Poller[0] PHP Script Server Started Properly
12/03/2005 12:10:03 PM - PHPSVR: Poller[0] PHP Script Server has Started - Parent is cmd
12/03/2005 12:10:03 PM - PHPSVR: Poller[0] DEBUG: FILENM: /var/www/localhost/htdocs/cacti/script_server.php
12/03/2005 12:10:03 PM - PHPSVR: Poller[0] DEBUG: DIRNAM: /var/www/localhost/htdocs/cacti
12/03/2005 12:10:03 PM - PHPSVR: Poller[0] DEBUG: GETCWD: /
12/03/2005 12:10:03 PM - PHPSVR: Poller[0] DEBUG: SERVER: cmd
12/03/2005 12:10:02 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/php, ARGS: -q /var/www/localhost/htdocs/cacti/cmd.php 0 1]
I see the Output: U part....that confuses me, shouldn't the output be a number? When I run, for instance, 'perl /var/www/localhost/htdocs/cacti/scripts/unix_processes.pl' I get a number, i.e. '56'. Can anyone tell me the correct ownership permissions for the perl scripts? Maybe that's the problem.

I apologize in advance if this is a common error/solution, but I've read a lot, and am stumped.
cactus friend
Posts: 2
Joined: Sat Dec 03, 2005 12:00 pm

Post by cactus friend »

Nevermind, I found out the error:

It seems that all the perl scripts in cacti/scripts/ had bad permissions. I wonder if this is an issue with the gentoo ebuild. As soon as I set them readable, perl was able to execute them for non-root users.
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests