polling problem shown in cacti.log [SOLVED]

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

Moderators: Developers, Moderators

Post Reply
wwp
Posts: 3
Joined: Tue Jan 03, 2006 3:56 pm

polling problem shown in cacti.log [SOLVED]

Post by wwp »

Hello!

I'm simply amazed how cacti is great! I'm using it on a FC3 box w/ problem, but.. then I've set up cacti on a SuSE 8.2+upgrades (GNU/Linux)..

Calling the poller from command-line seems to work, but from crontab I get warnings in cacti.log and nothing in graphs.. It's the same w/ either cmd.php or cactid as poller.

Here is my cacti.log, showing:
- manual `php <path>/poller.php` w/ cmd.php
- auto polling once w/ cmd.php
- manual `php <path>/poller.php` w/ cactid
- auto polling once w/ cactid
- auto polling once w/ cmd.php in DEBUG mode

01/03/2006 09:26:03 PM - SYSTEM STATS: Time:1.1696 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:5 RRDsProcessed:5

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

01/03/2006 09:32:04 PM - SYSTEM STATS: Time:1.1015 Method:cactid Processes:1 Threads:1 Hosts:2 HostsPerProcess:2 DataSources:5 RRDsProcessed:5

01/03/2006 09:40:01 PM - CACTID: Poller[0] Host[1] ERROR: Empty result [127.0.0.1]: 'perl /srv/web/mollux.org/cacti-0.8.6g/scripts/linux_memory.pl MemFree:'
01/03/2006 09:40:01 PM - CACTID: Poller[0] Host[1] DS[3] WARNING: Result from SCRIPT not valid. Partial Result: ...
01/03/2006 09:40:01 PM - CACTID: Poller[0] Host[1] ERROR: Empty result [127.0.0.1]: 'perl /srv/web/mollux.org/cacti-0.8.6g/scripts/linux_memory.pl SwapFree:'
01/03/2006 09:40:01 PM - CACTID: Poller[0] Host[1] DS[4] WARNING: Result from SCRIPT not valid. Partial Result: ...
01/03/2006 09:40:01 PM - CACTID: Poller[0] Host[1] ERROR: Empty result [127.0.0.1]: 'perl /srv/web/mollux.org/cacti-0.8.6g/scripts/loadavg_multi.pl'
01/03/2006 09:40:01 PM - CACTID: Poller[0] Host[1] DS[5] WARNING: Result from SCRIPT not valid. Partial Result: ...
01/03/2006 09:40:01 PM - CACTID: Poller[0] Host[1] ERROR: Empty result [127.0.0.1]: 'perl /srv/web/mollux.org/cacti-0.8.6g/scripts/unix_processes.pl'
01/03/2006 09:40:01 PM - CACTID: Poller[0] Host[1] DS[7] WARNING: Result from SCRIPT not valid. Partial Result: ...
01/03/2006 09:40:01 PM - CACTID: Poller[0] Host[1] ERROR: Empty result [127.0.0.1]: 'perl /srv/web/mollux.org/cacti-0.8.6g/scripts/unix_users.pl'
01/03/2006 09:40:01 PM - CACTID: Poller[0] Host[1] DS[6] WARNING: Result from SCRIPT not valid. Partial Result: ...
01/03/2006 09:40:01 PM - SYSTEM STATS: Time:1.0622 Method:cactid Processes:1 Threads:1 Hosts:2 HostsPerProcess:2 DataSources:5 RRDsProcessed:5

01/03/2006 09:50:00 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/php, ARGS: -q /srv/web/mollux.org/cacti-0.8.6g/cmd.php 0 1]
01/03/2006 09:50:01 PM - PHPSVR: Poller[0] DEBUG: SERVER: cmd
01/03/2006 09:50:01 PM - PHPSVR: Poller[0] DEBUG: GETCWD: /srv/web/mollux.org/cacti-0.8.6g
01/03/2006 09:50:01 PM - PHPSVR: Poller[0] DEBUG: DIRNAM: /srv/web/mollux.org/cacti-0.8.6g
01/03/2006 09:50:01 PM - PHPSVR: Poller[0] DEBUG: FILENM: /srv/web/mollux.org/cacti-0.8.6g/script_server.php
01/03/2006 09:50:01 PM - PHPSVR: Poller[0] PHP Script Server has Started - Parent is cmd
01/03/2006 09:50:01 PM - CMDPHP: Poller[0] PHP Script Server Started Properly
01/03/2006 09:50:01 PM - CMDPHP: Poller[0] Host[1] SNMP: Device does not require SNMP
01/03/2006 09:50:01 PM - CMDPHP: Poller[0] Host[1] No host availability check possible for '127.0.0.1'.
01/03/2006 09:50:01 PM - CMDPHP: Poller[0] Host[1] DS[3] WARNING: Result from CMD not valid. Partial Result:
01/03/2006 09:50:01 PM - CMDPHP: Poller[0] Host[1] DS[3] CMD: perl /srv/web/mollux.org/cacti-0.8.6g/scripts/linux_memory.pl MemFree:, output: U
01/03/2006 09:50:01 PM - CMDPHP: Poller[0] Host[1] DS[4] WARNING: Result from CMD not valid. Partial Result:
01/03/2006 09:50:01 PM - CMDPHP: Poller[0] Host[1] DS[4] CMD: perl /srv/web/mollux.org/cacti-0.8.6g/scripts/linux_memory.pl SwapFree:, output: U
01/03/2006 09:50:01 PM - CMDPHP: Poller[0] Host[1] DS[5] WARNING: Result from CMD not valid. Partial Result:
01/03/2006 09:50:01 PM - CMDPHP: Poller[0] Host[1] DS[5] CMD: perl /srv/web/mollux.org/cacti-0.8.6g/scripts/loadavg_multi.pl, output: U
01/03/2006 09:50:01 PM - CMDPHP: Poller[0] Host[1] DS[6] WARNING: Result from CMD not valid. Partial Result:
01/03/2006 09:50:01 PM - CMDPHP: Poller[0] Host[1] DS[6] CMD: perl /srv/web/mollux.org/cacti-0.8.6g/scripts/unix_users.pl, output: U
01/03/2006 09:50:01 PM - CMDPHP: Poller[0] Host[1] DS[7] WARNING: Result from CMD not valid. Partial Result:
01/03/2006 09:50:01 PM - CMDPHP: Poller[0] Host[1] DS[7] CMD: perl /srv/web/mollux.org/cacti-0.8.6g/scripts/unix_processes.pl, output: U
01/03/2006 09:50:01 PM - PHPSVR: Poller[0] DEBUG: PHP Script Server Shutdown request received, exiting
01/03/2006 09:50:01 PM - CMDPHP: Poller[0] Time: 0.4613 s, Theads: N/A, Hosts: 1
01/03/2006 09:50:01 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /srv/web/mollux.org/cacti-0.8.6g/rra/localhost_mem_buffers_3.rrd --template mem_buffers 1136321400:U
01/03/2006 09:50:01 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /srv/web/mollux.org/cacti-0.8.6g/rra/localhost_mem_swap_4.rrd --template mem_swap 1136321400:U
01/03/2006 09:50:01 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /srv/web/mollux.org/cacti-0.8.6g/rra/localhost_load_1min_5.rrd --template 1136321400:U
01/03/2006 09:50:01 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /srv/web/mollux.org/cacti-0.8.6g/rra/localhost_users_6.rrd --template users 1136321400:U
01/03/2006 09:50:01 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /srv/web/mollux.org/cacti-0.8.6g/rra/localhost_proc_7.rrd --template proc 1136321400:U
01/03/2006 09:50:01 PM - SYSTEM STATS: Time:1.0419 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:5 RRDsProcessed:5
01/03/2006 09:50:01 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/php, ARGS: -q /srv/web/mollux.org/cacti-0.8.6g/poller_commands.php]
01/03/2006 09:50:01 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/php, ARGS: -q /srv/web/mollux.org/cacti-0.8.6g/poller_export.php]


Any hint?
Last edited by wwp on Wed Jan 04, 2006 5:04 am, edited 1 time in total.
wwp
Posts: 3
Joined: Tue Jan 03, 2006 3:56 pm

Post by wwp »

Trivial: the cacti files were not owned by the cacti user used to launch the poller in crontab.. launching the poll command from user cacti showed many permission errors. Fixed!
wwp
Posts: 3
Joined: Tue Jan 03, 2006 3:56 pm

Post by wwp »

Trivial fix it is, but maybe the Unix/GNU/Linux install pages should mention this (http://www.cacti.net/downloads/docs/htm ... _unix.html).

This page makes reference to a cactiuser used in crontab and to chown rrd/ and log/ to it. But it's necessary to create it (and its group eventually as it is done from FC3's RPMs for instance), and make sure that the cacti's .pl files can be used by it (or owned by it), which was not the case by default when I created cacti:cacti (I should I created cacti:users maybe) and unpacked cacti files w/ root:users.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests