|
From: Daniel R. <sp...@el...> - 2008-07-28 20:32:43
|
On 29/07/2008, at 6:14 AM, Reinhard Scheck wrote: > Daniel Rossi wrote: >> it gets even more wierd >> > > Sorry to drop in, now. > But from a short glance on this discussion, I fear that you've gone > astray. > > First, you will never see rrdtool action when using cmd.php and/or > spine. They > will of course perform the polling but only update table > "poller_output". > > RRDTool action will only be performed by "poller.php". > > Pay attention when running poller.php as a "normal" user. It will > create rrd > files with those permissions only and "cactiuser" may fail to update > those files > subsequently. > > There are numerous reasons why polling may fail. Find the most > popular issues at > http://docs.cacti.net in the HowTo section (HowTo Debug ...) sorry i forgot to add the output, i add a graph, run cmp.php + poller.php php poller.php 07/29/2008 06:27:10 AM - POLLER: Poller[0] NOTE: Poller Int: '60', Cron Int: '60', Time Since Last: '2584', Max Runtime '58', Poller Runs: '1' 07/29/2008 06:27:10 AM - POLLER: Poller[0] WARNING: Cron is out of sync with the Poller Interval! The Poller Interval is '60' seconds, with a maximum of a '300' second Cron, but 2584 seconds have passed since the last poll! 07/29/2008 06:27:10 AM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/spine, ARGS: 0 5] Waiting on 1/1 pollers. 07/29/2008 06:27:11 AM - POLLER: Poller[0] Parsed MULTI output field 'ActiveConnections:0' [map ActiveConnections->ActiveConnections] 07/29/2008 06:27:11 AM - POLLER: Poller[0] Parsed MULTI output field 'TotalConnections:31' [map TotalConnections->TotalConnections] 07/29/2008 06:27:11 AM - POLLER: Poller[0] Parsed MULTI output field 'MaxConnections:1' [map MaxConnections->MaxConnections] 07/29/2008 06:27:11 AM - POLLER: Poller[0] Parsed MULTI output field 'ActiveClients:0' [map ActiveClients->ActiveClients] 07/29/2008 06:27:11 AM - POLLER: Poller[0] Parsed MULTI output field 'TotalClients:31' [map TotalClients->TotalClients] 07/29/2008 06:27:11 AM - POLLER: Poller[0] Parsed MULTI output field 'MaxClients:1' [map MaxClients->MaxClients] 07/29/2008 06:27:11 AM - POLLER: Poller[0] Parsed MULTI output field 'ActiveSubscopes:0' [map ActiveSubscopes->ActiveSubscopes] 07/29/2008 06:27:11 AM - POLLER: Poller[0] Parsed MULTI output field 'TotalSubscopes:0' [map TotalSubscopes->TotalSubscopes] 07/29/2008 06:27:11 AM - POLLER: Poller[0] Parsed MULTI output field 'MaxSubscopes:0' [map MaxSubscopes->MaxSubscopes] 07/29/2008 06:27:11 AM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /var/www/web4/web/rra/localhost_activeconnections_137.rrd -- template ActiveConnections:TotalConnections:MaxConnections:ActiveClients:TotalClients:MaxClients:ActiveSubscopes:TotalSubscopes:MaxSubscopes 1217276830:0:31:1:0:31:1:0:0:0 OK u:0.00 s:0.01 r:1.00 07/29/2008 06:27:11 AM - SYSTEM STATS: Time:1.1127 Method:spine Processes:1 Threads:100 Hosts:2 HostsPerProcess:2 DataSources:1 RRDsProcessed:1 Loop Time is: 1.1142411231995 Sleep Time is: 58.883410930634 Total Time is: 1.1165890693665 root@beasty:/var/www/cacti.electroteque.org/web# php cmd.php 07/29/2008 06:28:14 AM - CMDPHP: Poller[0] Host[5] PING: Host is alive 07/29/2008 06:28:15 AM - CMDPHP: Poller[0] Host[5] DS[138] CMD: /var/ www/web4/web/scripts/JMXManager/red5manager.sh -h localhost -b java.lang:type=Runtime -c Uptime, output: Uptime:343187794 07/29/2008 06:28:15 AM - CMDPHP: Poller[0] Time: 0.5784 s, Theads: N/ A, Hosts: 1 This command relfects the data for the new datasource, but no file created 07/29/2008 06:28:36 AM - POLLER: Poller[0] NOTE: Poller Int: '60', Cron Int: '60', Time Since Last: '86', Max Runtime '58', Poller Runs: '1' 07/29/2008 06:28:36 AM - POLLER: Poller[0] WARNING: Cron is out of sync with the Poller Interval! The Poller Interval is '60' seconds, with a maximum of a '300' second Cron, but 86 seconds have passed since the last poll! 07/29/2008 06:28:36 AM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/spine, ARGS: 0 5] 07/29/2008 06:28:36 AM - SYSTEM STATS: Time:0.1094 Method:spine Processes:1 Threads:100 Hosts:2 HostsPerProcess:2 DataSources:0 RRDsProcessed:0 Loop Time is: 0.11368989944458 Sleep Time is: 59.88418006897 Total Time is: 0.11581993103027 Nothing in here either again the path is suppose to be something like this <path_rra>/localhost_vmversion_138.rrd |