|
|||||||||||
|
Re: [cacti-user] Waiting on 1/1 pollers.
From: jehan.procaccia <jehan.procaccia(at)int-edu.eu>
Date: Thu Jul 12 2007 - 03:53:24 EDT
just above I found the coresponding "if" statement line 159:
while (1) {
if (sizeof($polling_items) == $process_file_number) { So I run the SQL command in the database and I noticed that the database table poller_time contained a value when a cmd.php had been just strated before poller.php mysql> select * from poller_time; +----+-----+-----------+---------------------+---------------------+| id | pid | poller_id | start_time | end_time | +----+-----+-----------+---------------------+---------------------+| 1 | 0 | 0 | 2007-07-12 08:29:08 | 2007-07-12 08:29:08 | +----+-----+-----------+---------------------+---------------------+
if its got:
poller.php goes to "Waiting on 1/1 poller"
Apparently runing cmd.php set data in poller_time , then enable a
correct run of poller.php.
but I'll really apreciate a better solution ! any idea of what is wrong
in my config ?
PS:
jehan.procaccia wrote: > Perhaps a hint ... ? > when I start poller manually in debug mode I get > [cactiuser@supervis ~] > $ php /var/www/cacti/poller.php > 07/11/2007 09:45:36 PM - POLLER: Poller[0] DEBUG: About to Spawn a > Remote Process [CMD: /usr/bin/cactid, ARGS: 0 25] > Waiting on 1/1 pollers. > Waiting on 1/1 pollers. > ... > > when I start cmd.php it apparently works fine > > [cactiuser@supervis ~] > $ php /var/www/cacti/cmd.php > 07/11/2007 09:47:02 PM - CMDPHP: Poller[0] Host[1] SNMP: Device does not > require SNMP > 07/11/2007 09:47:02 PM - CMDPHP: Poller[0] Host[1] No host availability > check possible for '127.0.0.1'. > 07/11/2007 09:47:02 PM - CMDPHP: Poller[0] Host[1] DS[3] CMD: perl > /var/www/cacti/scripts/linux_memory.pl MemFree:, output: 105076 > 07/11/2007 09:47:02 PM - CMDPHP: Poller[0] Host[1] DS[4] CMD: perl > /var/www/cacti/scripts/linux_memory.pl SwapFree:, output: 8388252 > ... > > Then I can run a least successfully One poller.php > > [cactiuser@supervis ~] > $ php /var/www/cacti/poller.php > 07/11/2007 09:47:20 PM - POLLER: Poller[0] DEBUG: About to Spawn a > Remote Process [CMD: /usr/bin/cactid, ARGS: 0 25] > Waiting on 1/1 pollers. > 07/11/2007 09:47:21 PM - POLLER: Poller[0] Parsed MULTI output field > 'bind-init:82185' [map bind-init->bind] > .... > 07/11/2007 09:47:22 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool > update /var/www/cacti/rra/localhost_mem_buffers_3.rrd --template > mem_buffers 1184183222:105076 > OK u:0.02 s:0.04 r:0.82 > Waiting on 1/1 pollers. > Waiting on 1/1 pollers. > > But then I keep get again and again "Waiting on 1/1 pollers." ... > > > jehan.procaccia wrote: > >> Hello, I just upgraded my cacti server to cacti-0.8.6j-1.el5.rf, I did >> followed with success http://www.cacti.net/downloads/docs/html/upgrade.html >> Now I can see my old graphs without problem on the new server, the >> problem is that no data is beeing grab anymore :-( >> I though that my cron.d/cacti didn't worked : >> */5 * * * * cactiuser php /var/www/cacti/poller.php &>/dev/null >> so I started cacti manually >> >> [root@supervis /var/www/cacti/log] >> $ php /var/www/cacti/poller.php >> Waiting on 1/1 pollers. >> .... >> Waiting on 1/1 pollers. >> 07/11/2007 06:58:08 PM - POLLER: Poller[0] Maximum runtime of 292 >> seconds exceeded. Exiting. >> 07/11/2007 06:58:08 PM - SYSTEM STATS: Time:293.9246 Method:cactid >> Processes:1 Threads:10 Hosts:21 HostsPerProcess:21 DataSources:941 >> RRDsProcessed:0 >> PHP Warning: pclose(): 48 is not a valid stream resource in >> /var/www/cacti/lib/rrd.php on line 47 >> >> and here's what my last log said on the old server, if it can help ? >> >> 07/11/2007 06:10:08 PM - CACTID: Poller[0] Time: 5.7591 s, Threads: 10, >> Hosts: 21 >> 07/11/2007 06:10:09 PM - SYSTEM STATS: Time:6.7090 Method:cactid >> Processes:1 Threads:10 Hosts:21 HostsPerProcess:21 DataSources:941 >> RRDsProcessed:505 >> >> what these "Waiting on 1/1 pollers." mean ? >> thanks . >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by DB2 Express >> Download DB2 Express C - the FREE version of DB2 express and take >> control of your XML. No limits. Just data. Click to get it now. >> http://sourceforge.net/powerbar/db2/ >> _______________________________________________ >> cacti-user mailing list >> cacti-user@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/cacti-user >> >> > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > cacti-user mailing list > cacti-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/cacti-user > -------------------------------------------------------------------------This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ cacti-user mailing list cacti-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/cacti-user Received on Thu Jul 12 03:54:02 2007 This archive was generated by hypermail 2.1.8 : Mon Jul 16 2007 - 06:04:31 EDT |
||||||||||
|
|||||||||||