[solved] Poller.php take more than 5 mn with only 1 switch

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

Moderators: Developers, Moderators

Post Reply
websi
Posts: 37
Joined: Wed Apr 21, 2004 7:50 am
Contact:

[solved] Poller.php take more than 5 mn with only 1 switch

Post by websi »

Hi,

i use to install cacti on Red hat without any probleme in the past...
Today, i have to do the same, but on W2003... So i use http://wiki.monitoring-fr.org/integrati ... ws-install to do it.
So many probleme of version and compability make me crazy and so, i finaly install cacti witch this configuration:
- Wamp5_1.7
- Php 5.2.1
- Apache 2.2.4
- Mysql 5.0.27
- rrdtool-1.2.15-cygwin-1.5.20
- cacti-cactid-0.8.6k
- cacti-0.8.7b (newer version make an php socket error...why???)

So, all seem to be ok, but when i've started my test on a single switch, it became different....
The probleme is about the commande "php.exe c:\cacti\poller.php".
Fo a simple stack of 5 switch with 50 port, the result take about 2 or 3 minutes....
So if i register all my switchs and server, cacti will go down... (if poller take more than 300 seconds, it can't make his graphs...)


I don't understand why !!!

If someone can help me....

Thanks a lot and sorry for my english....
websi
Posts: 37
Joined: Wed Apr 21, 2004 7:50 am
Contact:

Re: Poller.php take more than 5 mn with only 1 switch...

Post by websi »

Example:

C:\wamp\php>php.exe c:\cacti\poller.php
OK u:0.00 s:0.00 r:0.95
OK u:0.00 s:0.00 r:2.95
OK u:0.00 s:0.00 r:3.95
OK u:0.00 s:0.00 r:4.95
OK u:0.00 s:0.00 r:5.95
OK u:0.00 s:0.00 r:6.95
OK u:0.00 s:0.00 r:7.95
OK u:0.00 s:0.00 r:8.95
OK u:0.00 s:0.00 r:10.95
OK u:0.00 s:0.00 r:11.95
OK u:0.00 s:0.00 r:12.95
OK u:0.00 s:0.00 r:13.95
OK u:0.00 s:0.00 r:14.95
OK u:0.00 s:0.00 r:15.95
OK u:0.00 s:0.00 r:16.95
OK u:0.00 s:0.00 r:17.95
OK u:0.00 s:0.00 r:18.95
OK u:0.00 s:0.00 r:19.95
OK u:0.00 s:0.00 r:20.95
OK u:0.00 s:0.00 r:21.95
01/13/2011 05:31:46 PM - SYSTEM STATS: Time:23.1286 Method:cmd.php Processes:1 T
hreads:N/A Hosts:3 HostsPerProcess:3 DataSources:41 RRDsProcessed:21
OK u:0.00 s:0.00 r:22.95



23 seconds... for only one server...
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Re: Poller.php take more than 5 mn with only 1 switch...

Post by BSOD2600 »

A fresh installation of cacti-0.8.7b?? Don't waste your time with that. Install the latest which is 0.8.7g + patches.

The windows installation guide doesn't have people use WAMP or any other multi-installer packages because they all do things differently which can affect how cacti functions. you should read through http://docs.cacti.net/manual:087:1_inst ... er_windows
websi
Posts: 37
Joined: Wed Apr 21, 2004 7:50 am
Contact:

Re: Poller.php take more than 5 mn with only 1 switch...

Post by websi »

I found the solution !!!

The probleme was that the menu of wamp let me choose what king of extension i want to use (php_snmp for exemple), so i use it...

Yesterday (19:00), i decdied to verify in the c:\....\php.ini if all is really ok and.... the 2 line (php_snmp and php_socket) was disabled....It was normal that all my poller.php take more than 5 minutes...

If this solution can help someone (perhaps i'm the only boy using wamp :) ).

Thank you for the answer and good morning ! (sorry for my englishhhhhhhhhhhhhhhh)
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests