poller.php not starting any poller

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

Moderators: Developers, Moderators

Post Reply
raymonvdm
Posts: 12
Joined: Mon Jun 23, 2003 9:25 am

poller.php not starting any poller

Post by raymonvdm »

Hi

Im trying to get up cacti again but am failing

I installed cacti 0.8.6

and already had apache 1.3.* and am running php 4.3.10

But al i get are poller errors:

02/08/2005 09:58:00 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: c:\php\cli\php.exe, ARGS: -q f:\inetpub\www\domain\cacti/cmd.php 0 13]

And nothing else happends it just keeps waiting for poller 1/1


Update:

Just installed a clean database and a new cacti installation and still the same problems.
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

please goto "Settings->Paths" and change php.exe to c:\php\php-win.exe. This will fix 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?
raymonvdm
Posts: 12
Joined: Mon Jun 23, 2003 9:25 am

Post by raymonvdm »

but i am using php 4.3.10 there is no php-win.exe
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Oh, you are right. Ok, here are your options:

1) Turn logging to debug and then run c:\php\php.exe <webroot>\cacti\cmd.php and verify that you get output and not PHP warnings.

If that works, then step 2

2) Run "c:\php\php.exe <webroot>\cacti\poller.php" and verify that it works Ok.

If either does not work correctly, just post your output.

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?
raymonvdm
Posts: 12
Joined: Mon Jun 23, 2003 9:25 am

Post by raymonvdm »

The first step is working,

The cmd.php is started and the devices are poller i only get 1 perl error because there is no pearl on my box.

But when i run poller.php it keeps waiting for poller 1/1 endless
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Please insure that you are not running in PHP Safe Mode. Check your php.ini file.

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?
raymonvdm
Posts: 12
Joined: Mon Jun 23, 2003 9:25 am

Post by raymonvdm »

DAMN


My webserver is running with the php directives in the httpd.conf although there was a #php_admin_value safe_mode 1 it doenst seem to work i now placed php_admin_value safe_mode 0 under the cacti vhost settings and it seems to be working.

:D :D :D

Update: 2 happy 2 fast now it isnt working anymore, i just worked one run
in the php.ine safe mode = off
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Not sure I understand you.
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?
raymonvdm
Posts: 12
Joined: Mon Jun 23, 2003 9:25 am

Post by raymonvdm »

Well i thougt that the problem was over but it is still there.

Apache is running with vhost and per vhost php directives can be given. so it is possible for one vhost to run in php safemode while another runs in with php safe mode off. I thought that settings php safe mode = 0 did help me solve my problem but it didnt.

When i check my vhost it is running with phpsafe mode off

http://cacti.van-der-meijden.com/temp/phpinfo

Vhost Settings:

Code: Select all


<VirtualHost 192.168.100.200:80>
 
ServerAdmin webmaster@van-der-meijden.com
DocumentRoot "f:\inetpub\www\meijden\cacti"
ServerName cacti.van-der-meijden.com
ErrorLog logs/cacti.van-der-meijden.com-error.log
TransferLog logs/cacti.van-der-meijden.com-access.log
php_admin_value safe_mode 0
php_admin_value extension_dir c:\php\extensions
php_admin_value extension php_snmp.dll
php_admin_value extension php_sockets.dll


#php_admin_value open_basedir f:/inetpub/www/meijden/cacti/
##php_admin_value include_path f:/inetpub/www/meijden/cacti/

 
#<Directory "/">
#    Options FollowSymLinks
#    AllowOverride None
#    Order deny,allow
#    deny from all
#</Directory>
 
#<Directory "f:\inetpub\www\meijden\cacti">
#    Options Indexes FollowSymLinks MultiViews
#    AllowOverride All
#    Order allow,deny
#    allow from all
#</Directory>

</VirtualHost>

User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Not my area. I hope someone else can help you :(
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
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

I think Safe Mode is an global option, not an option you can set in a vhost. You will have to check the php site for information on that.
[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]
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests