Problem : Waiting on 1/1 pollers plzz help

Post support questions that relate to the Windows 2003/2000/XP operating systems.

Moderators: Developers, Moderators

KORTA
Posts: 1
Joined: Tue Apr 19, 2005 8:42 am

Problem : Waiting on 1/1 pollers plzz help

Post by KORTA »

Hello
I installed cacti on windows yesterday with easyphp 1.8
adn it worked fine until this afternoon.
Now when i execute

Code: Select all

php poller.php
, it answers:
"Waiting on 1/1 pollers." and continue all other the time.
Do you know where the problem is ?!!??

Versions :
CACTI 0.8.6c,
Easyphp 1.8: php 4.3.10, mysql 4.1.9
Last edited by KORTA on Tue Apr 19, 2005 9:05 am, edited 2 times in total.
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Version of:

Php
Cacti
mysql

?
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Please look in the following locations:

http://www.cacti.net/downloads/patches/ ... re-patched

In that location, you will find several patches. Please apply lib/poller.php patch and let me know if that fixes your problem.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
ilana
Posts: 6
Joined: Mon Jul 25, 2005 3:54 pm

same problem

Post by ilana »

hi,

i get the same error as above, and the patch doesn't help. any other suggestions? is there other info that i could provide that may help?

thanks!
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

You running cacti 0.8.6f ?
ilana
Posts: 6
Joined: Mon Jul 25, 2005 3:54 pm

Post by ilana »

0.8.6e

should i upgrade?
ilana
Posts: 6
Joined: Mon Jul 25, 2005 3:54 pm

Post by ilana »

here's my log file, i have no idea what it means:

07/25/2005 04:43:01 PM - CACTID: Poller[0] Host[1] ERROR: Empty result [127.0.0.1]: 'perl C:\Apache2\htdocs\cacti/scripts/linux_memory.pl SwapFree:'
07/25/2005 04:43:01 PM - CACTID: Poller[0] Host[1] DS[4] WARNING: Result from SCRIPT not valid. Partial Result: ...
07/25/2005 04:43:01 PM - CACTID: Poller[0] Host[1] DS[4] SCRIPT: perl C:\Apache2\htdocs\cacti/scripts/linux_memory.pl SwapFree:, output: U
07/25/2005 04:43:03 PM - CACTID: Poller[0] Host[1] DS[10] ERROR: SNMP timeout detected [500 milliseconds], ignoring host '127.0.0.1'
07/25/2005 04:43:03 PM - CACTID: Poller[0] Host[1] DS[10] SNMP: v1: 127.0.0.1, dsname: proc, oid: .1.3.6.1.2.1.25.1.6.0, value: U
07/25/2005 04:43:06 PM - CACTID: Poller[0] Host[2] SNMP Result: Host did not respond to SNMP
07/25/2005 04:43:06 PM - CACTID: Poller[0] Time: 5.1970 s, Threads: 1, Hosts: 3
07/25/2005 04:43:06 PM - SYSTEM STATS: Time: 6.1200 s, Method: cactid, Processes: 1, Threads: 1, Hosts: 3, Hosts/Process: 3, Data Sources 10, RRDs Processed 5
07/25/2005 04:52:57 PM - POLLER: Poller[0] Maximum runtime of 296 seconds exceeded. Exiting.
07/26/2005 08:44:31 AM - POLLER: Poller[0] Maximum runtime of 296 seconds exceeded. Exiting.
07/26/2005 08:52:58 AM - POLLER: Poller[0] Maximum runtime of 296 seconds exceeded. Exiting.
ilana
Posts: 6
Joined: Mon Jul 25, 2005 3:54 pm

Post by ilana »

fixed my waiting for poller 1/1 issue, but now i have a new one when i run php-win poller.php....

no log handling enabled-turning on stderr logging..
notification-log-mib module not found
net-snmp-agent-mib module not found

and in another window a bunch of OKs and numbers and two error: not enough arguments

what is this? i have MIBDIRS pointing to the right place...

also, only some of my graphs come up..

this is my new log, thanks in advance!

07/26/2005 10:58:08 AM - SYSTEM STATS: Time: 8.1623 s, Method: cactid, Processes: 1, Threads: 1, Hosts: 3, Hosts/Process: 3, Data Sources 14, RRDs Processed 5
07/26/2005 10:58:08 AM - CACTID: Poller[0] Time: 7.0250 s, Threads: 1, Hosts: 3
07/26/2005 10:58:03 AM - CACTID: Poller[0] Host[1] DS[10] SNMP: v1: 127.0.0.1, dsname: proc, oid: .1.3.6.1.2.1.25.1.6.0, value: U
07/26/2005 10:58:03 AM - CACTID: Poller[0] Host[1] DS[10] ERROR: SNMP timeout detected [500 milliseconds], ignoring host '127.0.0.1'
07/26/2005 10:58:01 AM - CACTID: Poller[0] Host[1] DS[4] SCRIPT: perl C:\Apache2\htdocs\cacti/scripts/linux_memory.pl SwapFree:, output: U
07/26/2005 10:58:01 AM - CACTID: Poller[0] Host[1] DS[4] WARNING: Result from SCRIPT not valid. Partial Result: ...
07/26/2005 10:58:01 AM - CACTID: Poller[0] Host[1] ERROR: Empty result [127.0.0.1]: 'perl C:\Apache2\htdocs\cacti/scripts/linux_memory.pl SwapFree:'
07/26/2005 10:58:01 AM - CACTID: Poller[0] Host[1] DS[3] SCRIPT: perl C:\Apache2\htdocs\cacti/scripts/linux_memory.pl MemFree:, output: U
07/26/2005 10:58:01 AM - CACTID: Poller[0] Host[1] DS[3] WARNING: Result from SCRIPT not valid. Partial Result: ...
07/26/2005 10:58:01 AM - CACTID: Poller[0] Host[1] ERROR: Empty result [127.0.0.1]: 'perl C:\Apache2\htdocs\cacti/scripts/linux_memory.pl MemFree:'
07/26/2005 10:58:01 AM - CACTID: Poller[0] Host[1] DS[5] SCRIPT: perl C:\Apache2\htdocs\cacti/scripts/loadavg_multi.pl, output: U
07/26/2005 10:58:01 AM - CACTID: Poller[0] Host[1] DS[5] WARNING: Result from SCRIPT not valid. Partial Result: ...
07/26/2005 10:58:01 AM - CACTID: Poller[0] Host[1] ERROR: Empty result [127.0.0.1]: 'perl C:\Apache2\htdocs\cacti/scripts/loadavg_multi.pl'
07/26/2005 10:58:01 AM - CACTID: Poller[0] Host[1] DS[11] SCRIPT: perl C:\Apache2\htdocs\cacti/scripts/loadavg_multi.pl, output: U
07/26/2005 10:58:01 AM - CACTID: Poller[0] Host[1] DS[11] WARNING: Result from SCRIPT not valid. Partial Result: ...
07/26/2005 10:58:01 AM - CACTID: Poller[0] Host[1] ERROR: Empty result [127.0.0.1]: 'perl C:\Apache2\htdocs\cacti/scripts/loadavg_multi.pl'
07/26/2005 10:53:08 AM - SYSTEM STATS: Time: 8.1302 s, Method: cactid, Processes: 1, Threads: 1, Hosts: 3, Hosts/Process: 3, Data Sources 10, RRDs Processed 5
ilana
Posts: 6
Joined: Mon Jul 25, 2005 3:54 pm

Post by ilana »

it works now. turns out net-snmp didn't work right for some reason. my co-worker uninstalled it and installed the microsoft one and it works.. odd.

thanks!
ilana
MartinM
Posts: 5
Joined: Wed Jul 27, 2005 3:03 pm

Fix for the "Waiting for poller 1/1" issue?

Post by MartinM »

[quote="ilana"]: fixed my waiting for poller 1/1 issue, but now i have a new one when i run php-win poller.php.... <snip!>

Ilana: How did you fix that "waiting for poller 1/1 issue"?

Thanks,

Martin
ilana
Posts: 6
Joined: Mon Jul 25, 2005 3:54 pm

Post by ilana »

Martin: i got rid of my rrdtool and replaced it with the cygwin rrdtool.
THEN, i got rid of net-snmp and replaced it with the microsoft version - i admittedly felt guilty replacin with MS, but it works so..... meh.
MartinM
Posts: 5
Joined: Wed Jul 27, 2005 3:03 pm

Still... Waiting on 1/1 pollers.

Post by MartinM »

OK. After few days of trying, retrying and grunting... I've finally made it to produce some .RRD datas. However, I'm still having some weird results... here's how it goes:


RUNNING POLLER.PHP (result: Waiting on 1/1 pollers.)

C:\cactid>c:/php/php.exe c:\mycacti\poller.php
07/27/2005 05:19:32 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: c:/cactid/cactid.ex
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
^C


LET'S TRY CMD.PHP (result: Seems to work fine.)

C:\cactid>c:/php/php.exe c:\mycacti\cmd.php
#!/usr/bin/php -q
07/27/2005 05:19:45 PM - CMDPHP: Poller[0] PHP Script Server Started Properly
07/27/2005 05:19:45 PM - CMDPHP: Poller[0] Host[1] SNMP: Host responded to SNMP
07/27/2005 05:19:45 PM - CMDPHP: Poller[0] Host[1] RECACHE: Processing 2 items in the auto reindex cache fo
07/27/2005 05:19:45 PM - CMDPHP: Poller[0] Host[1] DS[9] SNMP: v2: 127.0.0.1, dsname: traffic_in, oid: .1.3
07/27/2005 05:19:45 PM - CMDPHP: Poller[0] Host[1] DS[9] SNMP: v2: 127.0.0.1, dsname: traffic_out, oid: .1.
07/27/2005 05:19:45 PM - CMDPHP: Poller[0] Host[1] DS[10] SNMP: v2: 127.0.0.1, dsname: traffic_in, oid: .1.
07/27/2005 05:19:45 PM - CMDPHP: Poller[0] Host[1] DS[10] SNMP: v2: 127.0.0.1, dsname: traffic_out, oid: .1
07/27/2005 05:19:45 PM - CMDPHP: Poller[0] Time: 0.9353 s, Theads: N/A, Hosts: 1


LET'S TRY AGAIN POLLER.PHP (result: Waiting...)

C:\cactid>c:/php/php.exe c:\mycacti\poller.php
07/27/2005 05:19:48 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: c:/cactid/cactid.ex
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.

LET'S TRY AGAIN CMD.PHP (Result: Still fine...)

C:\cactid>c:/php/php.exe c:\mycacti\cmd.php
#!/usr/bin/php -q
07/27/2005 05:19:56 PM - CMDPHP: Poller[0] PHP Script Server Started Properly
07/27/2005 05:19:56 PM - CMDPHP: Poller[0] Host[1] SNMP: Host responded to SNMP
07/27/2005 05:19:56 PM - CMDPHP: Poller[0] Host[1] RECACHE: Processing 2 items in the auto reindex cache fo
07/27/2005 05:19:56 PM - CMDPHP: Poller[0] Host[1] DS[9] SNMP: v2: 127.0.0.1, dsname: traffic_in, oid: .1.3
07/27/2005 05:19:56 PM - CMDPHP: Poller[0] Host[1] DS[9] SNMP: v2: 127.0.0.1, dsname: traffic_out, oid: .1.
07/27/2005 05:19:56 PM - CMDPHP: Poller[0] Host[1] DS[10] SNMP: v2: 127.0.0.1, dsname: traffic_in, oid: .1.
07/27/2005 05:19:56 PM - CMDPHP: Poller[0] Host[1] DS[10] SNMP: v2: 127.0.0.1, dsname: traffic_out, oid: .1
07/27/2005 05:19:56 PM - CMDPHP: Poller[0] Time: 0.9300 s, Theads: N/A, Hosts: 1


ONE MORE POLLER.PHP (result: Works!?... maybe not!)

C:\cactid>c:/php/php.exe c:\mycacti\poller.php
07/27/2005 05:19:59 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: c:/cactid/cactid.ex
Waiting on 1/1 pollers.
07/27/2005 05:19:59 PM - POLLER: Poller[0] CACTI2RRD: c:/rrdtool/rrdtool.exe update C:\mycacti\rra\localhos
07/27/2005 05:19:59 PM - POLLER: Poller[0] CACTI2RRD: c:/rrdtool/rrdtool.exe update C:\mycacti\rra\localhos
OK u:0.03 s:0.02 r:0.04
OK u:0.03 s:0.04 r:0.06
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.


NOTE: It will NEVER works if I don't run the cmd.php first.


Setup Infos:
WINDOWS 2000 SERVER SP4
rrdtool-cygwin-1.2.10.zip
cacti-cactid-0.8.6e.zip
cacti-0.8.6f.zip
php-5.0.4-Win32.zip


-=-

Anyone with any idea of why I'm still caught in this "Waiting on 1/1 pollers" loop?

Thanks,
Martin
MartinM
Posts: 5
Joined: Wed Jul 27, 2005 3:03 pm

Still... Waiting on 1/1 pollers. (more infos)

Post by MartinM »

Here's a bit of log of a cmd.php and after, a poller.php call:

07/27/2005 06:06:12 PM - POLLER: Poller[0] CACTI2RRD: c:/rrdtool/rrdtool.exe update C:\mycacti\rra\localhost_traffic_in_10.rrd --template traffic_in:traffic_out 1122501954:2822963578:1186822831
07/27/2005 06:06:12 PM - POLLER: Poller[0] CACTI2RRD: c:/rrdtool/rrdtool.exe update C:\mycacti\rra\localhost_traffic_in_9.rrd --template traffic_in:traffic_out 1122501954:320062069:320062069
07/27/2005 06:06:12 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: c:/cactid/cactid.exe, ARGS: 0 1]
07/27/2005 06:05:56 PM - CMDPHP: Poller[0] Time: 0.9218 s, Theads: N/A, Hosts: 1
07/27/2005 06:05:56 PM - PHPSVR: Poller[0] DEBUG: PHP Script Server Shutdown request received, exiting
07/27/2005 06:05:56 PM - CMDPHP: Poller[0] Host[1] DS[10] SNMP: v2: 127.0.0.1, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.16777219, output: 1186822831
07/27/2005 06:05:55 PM - CMDPHP: Poller[0] Host[1] DS[10] SNMP: v2: 127.0.0.1, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.16777219, output: 2822963578
07/27/2005 06:05:55 PM - CMDPHP: Poller[0] Host[1] DS[9] SNMP: v2: 127.0.0.1, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.1, output: 320062069
07/27/2005 06:05:55 PM - CMDPHP: Poller[0] Host[1] DS[9] SNMP: v2: 127.0.0.1, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.1, output: 320062069
07/27/2005 06:05:55 PM - CMDPHP: Poller[0] Host[1] RECACHE: Processing 2 items in the auto reindex cache for '127.0.0.1'.
07/27/2005 06:05:55 PM - CMDPHP: Poller[0] Host[1] SNMP: Host responded to SNMP
07/27/2005 06:05:55 PM - CMDPHP: Poller[0] PHP Script Server Started Properly
07/27/2005 06:05:55 PM - PHPSVR: Poller[0] PHP Script Server has Started - Parent is cmd
07/27/2005 06:05:55 PM - PHPSVR: Poller[0] DEBUG: FILENM: c:\mycacti\script_server.php
07/27/2005 06:05:55 PM - PHPSVR: Poller[0] DEBUG: DIRNAM: c:/mycacti
07/27/2005 06:05:55 PM - PHPSVR: Poller[0] DEBUG: GETCWD: c:/mycacti
07/27/2005 06:05:55 PM - PHPSVR: Poller[0] DEBUG: SERVER: cmd


PS: I'm noticing that sometimes paths are defined with \ and sometimes with /. Any trouble this might induce?

Any help will be much appreciated!

Thanks,
Martin
steph
Posts: 3
Joined: Sun Jul 31, 2005 1:28 pm

Waiting on 1/1 pollers.

Post by steph »

Hi,

exactly the same problem for me.
need to run cmd.php then poller.php to update rras
could easyphp 1.8 be the pb as I'm using it too ?

Steph
MartinM
Posts: 5
Joined: Wed Jul 27, 2005 3:03 pm

Re: Waiting on 1/1 pollers.

Post by MartinM »

steph wrote:Hi,

exactly the same problem for me.
need to run cmd.php then poller.php to update rras
could easyphp 1.8 be the pb as I'm using it too ?

Steph
I doubt it. I've not used EasyPHP. (do you also have the problem of "Waiting on 1/1 pollers" looping endlessly?)

At this moment, I've tweaked the code a bit to break the loop of "Waiting on 1/1 pollers" after 2 times and I've created a batch file calling both the CMD.PHP and POLLERS.PHP at a 5 minutes interval.

It's a really rough patch, I don't know if it will induce more problems in the future but for now, it's working (at last).

-- If someone has any idea of a better fix, I would be really thankful.

Greetings,

Martin
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest