The poller hangs

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

Moderators: Developers, Moderators

noisesinmyhead
Posts: 9
Joined: Thu Jan 04, 2007 4:17 pm

Post by noisesinmyhead »

Well, I've filtered the Filemon results, because the system has many processes and the log was flooded with useless entires. It seems that I had messed up my PHP 5.1.6 install, so I fixed it and many of my problems are solved now. I switched the logging to medium and ran cmd.php:

Code: Select all

F:\>c:\php-5.1.6-Win32\php.exe -c c:\php-5.1.6-Win32\ f:\httpd\cacti\cmd.php
01/06/2007 09:27:28 AM - CMDPHP: Poller[0] Host[3] NOTICE: HOST EVENT: Host Returned from DOWN State:
01/06/2007 09:27:28 AM - CMDPHP: Poller[0] Host[3] DS[8] SNMP: v2: localhost, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.2, output: 688497110
01/06/2007 09:27:28 AM - CMDPHP: Poller[0] Host[3] DS[8] SNMP: v2: localhost, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.2, output: 530071384
01/06/2007 09:27:28 AM - CMDPHP: Poller[0] Host[3] DS[9] SNMP: v2: localhost, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.1, output: 260890656
01/06/2007 09:27:28 AM - CMDPHP: Poller[0] Host[3] DS[9] SNMP: v2: localhost, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.1, output: 260890656
01/06/2007 09:27:28 AM - CMDPHP: Poller[0] Host[3] DS[10] SNMP: v2: localhost, dsname: users, oid: .1.3.6.1.2.1.25.1.5.0, output: 3
01/06/2007 09:27:28 AM - CMDPHP: Poller[0] Host[3] DS[11] SNMP: v2: localhost, dsname: proc, oid: .1.3.6.1.2.1.25.1.6.0, output: 71
01/06/2007 09:27:28 AM - CMDPHP: Poller[0] Time: 0.0517 s, Theads: N/A, Hosts: 1


F:\>
The log contains 100% the same as above. When I run poller.php it is the same:

Code: Select all

F:\>c:\php-5.1.6-Win32\php.exe -c c:\php-5.1.6-Win32\ f:\httpd\cacti\poller.php
Waiting on 1/1 pollers.
OK u:0.01 s:0.00 r:0.00
OK u:0.01 s:0.00 r:0.00
OK u:0.03 s:0.00 r:0.00
OK u:0.03 s:0.00 r:0.00
OK u:0.03 s:0.00 r:0.01
OK u:0.03 s:0.00 r:0.01
OK u:0.03 s:0.00 r:0.01
OK u:0.03 s:0.00 r:0.01
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.

...

^C
F:\>
When I swtich the poller to cactid:

Code: Select all

C:\cacti>cactid
CACTID: Using cactid config file [cactid.conf]
CACTID: #

C:\cacti>
May I "solve" the problem by using cmd.php or cactid in my cronjob instead of poller.php? (EDIT: No, I can't :) )
Georgi Hristozov
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Looks to be working a lot better now -- congrats.

I'm curious, what exactly was messed up with your php installation?
noisesinmyhead
Posts: 9
Joined: Thu Jan 04, 2007 4:17 pm

Post by noisesinmyhead »

I have used the .ini file from the other install of PHP for my webserver, which has the "exec" function and the "socket" module disabled. :oops: And it looks that the mibs should be in f:\usr when I use scripts on drive f:, I thought that c:\usr is enough... Until I looked for the warnings in the execution of the scripts. I had a lot of troubles because of my faults in the PHP configuration, now I have triple checked it, but the poller still hangs...

As soon as I have enough free time, I'll test another versions of PHP/Cacti. I think PHP 4 will be a good starting point, but it has some major "built-in" problems with MySQL 5 (and especially UTF8).
Georgi Hristozov
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

The next version of Cactid will provide better messages. You can pull from SVN now if you want that right away, but if cmd.php is ok for now, I would simply wait.

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?
danmac
Posts: 12
Joined: Thu Dec 21, 2006 11:18 am
Location: England

Post by danmac »

FYI I'm running the config in my sig (PHP 4.4.4 & MySQL 5.0.24) with cacti no problem, although I do use cactid for polling. (but then I know how to set up a php.ini having done a bit of PHP a while ago haha)

The poller result you posted shows working polls so I'm assuming some of your graphs have stuff in them now :)

You posted results using cactid and there's a line with CACTID: # does that show on your screen as a smiley face?

Anyway I'm a bit trashed sorry thought I'd check in and see how you were getting on hehe nice one

ps. forum broken while posting again hooray for the clipboard fancy writing a new one when you get a sec Mr. Witness? :)
[size=75][b]Win2003 x86 SP1 | IIS 6 | Cacti 0.8.6i | Cactid 0.8.6i | MySQL 5.0.24 | PHP 4.4.4 | RRD 1.2.15 | NetSNMP 5.3.1 | Cygwin 1.5.23 | P4 2.1GHz | 512MB | 300GB RAID1[/b][/size]
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

It's good to be trashed from time to time...

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?
noisesinmyhead
Posts: 9
Joined: Thu Jan 04, 2007 4:17 pm

Post by noisesinmyhead »

danmac wrote:FYI I'm running the config in my sig (PHP 4.4.4 & MySQL 5.0.24) with cacti no problem, although I do use cactid for polling. (but then I know how to set up a php.ini having done a bit of PHP a while ago haha)
Well, I didn't want offtopics. Yes, this config is running here too... And it works really well. Unless I try UTF8 charset for MySQL, because I use cyrillic characters really often. Then everything is filled with warnings - "Charset not compiled" and other fun stuff. It's not fatal for my wiki or my blog (warnings fly to /dev/null), it only floods the Apache logs, but it causes major problems with Cacti. Try this config now and tell me the result on PM. ;)
Hint: PHP5 uses a little bit newer "mysql" module, which doesn't have such problems with UTF-8, cp1251 and others. ;)
danmac wrote:The poller result you posted shows working polls so I'm assuming some of your graphs have stuff in them now :)
Yes, there are graphs, but the poller is still broken. And it's still a problem (I think). :) Maybe I should choose the leet way and let the poller reach the max exec time of PHP? Well, it still doesn't work. :(
danmac wrote:You posted results using cactid and there's a line with CACTID: # does that show on your screen as a smiley face?
My English is not very good, but I guess it should be funny. HaHa!

I really think that somebody should lock this topic, because I have solved (nearly) all of my problems and most of them are my mistakes. It's obvious that there's a bug somewhere, but I think I'm not the right man to help you diagnose it. Thanks to all of you! ;)
Georgi Hristozov
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Why don't you first fix the warning messages:
"Charset not compiled"
I don't have the time to change charsets. Although, I think if you dump your database and then manually change the encoding and then re-import it something might happen.

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?
noli
Posts: 9
Joined: Tue Jun 06, 2006 10:38 am

Post by noli »

In case some people have the same problem, and try nearly everything to debug this, like checking permissions, using Filemon, debug logging-level... You would probably like to know that for me, the only problem was that in my cactid.conf I had written the hostname (but not localhost) instead of the IP. Putting this back to the IP made this work instantly !!
atiyehk
Posts: 5
Joined: Mon Sep 24, 2007 4:22 pm

Post by atiyehk »

Hi,

I am having the same issue; however, when installing an earlier version of Cacti (d) it does not hang at all, but I do need version (j) to run, so please let me know if you figured out how to fix the hang issue.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest