not polling - timeout

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

Moderators: Developers, Moderators

Charlie B.

not polling - timeout

Post by Charlie B. »

First time cacti user long time MRTG user. I have assisted on one Linux and one windows setup but i cannot get mine working :-(

OS = Win2k
Cacti = 0.8.6a
PHP = 5.0.2
IIS = 5.0
RRDTools = installed
Cactid = 0.8.6
Cygwin = not installed
mysql = 4.0.21

i deleted the initial device @ install and created one for a Cisco & one for a Windows box and the status poll @ the top of the page returns properly. The poller is not functioning for me to create graphs. The task runs then hangs in the running state. No rrd files are created in my e:\cactid\rra folder. Tasks set to: e:\php\php-win.exe e:\cacti\poller.php and run as an Administrator.

Cacti Log file entries:
POLLER: Poller[0] Maximum runtime of 296 seconds exceeded. Exiting.
POLLER: Poller[0] Maximum runtime of 296 seconds exceeded. Exiting.

sup?
Guest

Post by Guest »

Did you use php.ini-recommend file or php.ini-dist file? I had the same problem and that fixed it for me.
Charlie B.

not polling - timeout

Post by Charlie B. »

I used php.ini-dist
Charlie B.

Post subject: not polling - timeout

Post by Charlie B. »

I get the exact same result with both. It hangs. When i run it from the console i get two DOS windows, one of which remains open with nothing at all in it. It never closes & the tasks states that it is still running.
My lines in the php.ini

extension_dir = "e:\php\ext"
extension=php_mysql.dll
extension=php_snmp.dll
extension=php_sockets.dll
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

You must use php.ini-dist. I recently found out the hard way that the php.ini-recommend breaks cacti.

Enable log file debugging for one polling cycle and post cacti.log.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

To eliminate reduce the potential sources of errors, if you first run c:\php\php.exe c:\<cactiroot>\cmd.php and verify everything is returning data, then you can isolate the source to the poller.php. Running from the command line also helps debug setup problems.

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?
Charlie B.

polling - timeout

Post by Charlie B. »

I ran the "e:\php\php.exe e:\cacti\cmd.php" as you suggested and the output looks good.

E:\>e:\php\php.exe e:\cacti\cmd.php
#!/usr/bin/php -q
10/04/2004 08:08:37 AM - CMDPHP: Poller[0] Host[2] SNMP: v1: 192.168.11.1, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.1, output: 2442080974
10/04/2004 08:08:37 AM - CMDPHP: Poller[0] Host[2] SNMP: v1: 192.168.11.1, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.1, output: 2227386507

Still no graphs :-( So what should be my next troubleshooting step.?
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Cacti 0.8.6a will be released tonight. Recommend taking that direction and retrying "c:\php\php-win.exe c:\<webroot>\Cacti\poller.php" in scheduler after that upgrade.

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?
Charlie B.

Post subject: polling - timeout

Post by Charlie B. »

Will do. I'll giver er a go tomorrow. Thanks. :)
Charlie B.

poll - timeout

Post by Charlie B. »

I had my fill of the whole setup so i wipped everything out and started again with teh new b release this morning. It's polling and createing rrd files now!!! yeah.

but no graphs. :-)

i am going to to keep @ it. Thanks.
User avatar
dev2dev
Cacti User
Posts: 60
Joined: Thu Nov 18, 2004 5:25 am
Location: Hyderabad, India
Contact:

Post by dev2dev »

I too have same problem

TheWitness wrote:To eliminate reduce the potential sources of errors, if you first run c:\php\php.exe c:\<cactiroot>\cmd.php and verify everything is returning data, then you can isolate the source to the poller.php. Running from the command line also helps debug setup problems.

TheWitness

i did , in response i got

#!/usr/bin/php -q
The system cannot find the file specified.
The system cannot find the file specified.
11/19/2004 12:32:29 PM - CMDPHP: Poller[0] Time: 0.3875 s, Theads: N/A, Hosts: 3

what is the file which its unable to locate?
Why me lord?
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Your system appears to be attempting to run a script that does not exist on your system. Please review your poller cache for a script "Action 1" and verify that the path is valid.

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?
User avatar
dev2dev
Cacti User
Posts: 60
Joined: Thu Nov 18, 2004 5:25 am
Location: Hyderabad, India
Contact:

Post by dev2dev »

this is the contents of my poller cache

Code: Select all

View Poller Cache [2 Items] 
 
Data Source: PIX Firewall - 5 Minute CPU  
RRD: c:\apache\Apache2\htdocs\cacti\rra\pix_firewall_5min_cpu_12.rrd  
Action: 0, OID: .1.3.6.1.4.1.9.2.1.58.0 (Host: 192.168.1.1, Community: public)  
Data Source: PIX Firewall - 5 Minute CPU  
RRD: c:\apache\Apache2\htdocs\cacti\rra\pix_firewall_5min_cpu_11.rrd  
Action: 0, OID: .1.3.6.1.4.1.9.2.1.58.0 (Host: 192.168.1.1, Community: public)  
their is no "action 1" :( :x
Why me lord?
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Change your ping method to SNMP only. The PIX blocks ICMP/UDP ping. I will be changing this in 0.8.7 (aka one availability method for all hosts).

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?
User avatar
dev2dev
Cacti User
Posts: 60
Joined: Thu Nov 18, 2004 5:25 am
Location: Hyderabad, India
Contact:

Post by dev2dev »

i am barely new, can you guide me how
Why me lord?
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests