Poller error CMD.PHP

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

Moderators: Developers, Moderators

PlaneTeeR
Posts: 14
Joined: Mon Nov 20, 2006 5:52 am

Poller error CMD.PHP

Post by PlaneTeeR »

Hey,

I followed the guide installing cacti for windows, but when i'm trying for the first time to start the poller in the guide I get an error in my cacti.log. The error is:
11/21/2006 09:33:25 PM - CMDPHP: Poller[0] ERROR: The PHP Script: CMD.PHP Must be started using the full path to the file and in lower case. This is a PHP Bug!!!
11/21/2006 09:33:43 PM - CMDPHP: Poller[0] ERROR: The PHP Script: CMD.PHP Must be started using the full path to the file and in lower case. This is a PHP Bug!!!
11/21/2006 09:33:47 PM - CMDPHP: Poller[0] ERROR: The PHP Script: CMD.PHP Must be started using the full path to the file and in lower case. This is a PHP Bug!!!
11/21/2006 09:33:55 PM - CMDPHP: Poller[0] ERROR: The PHP Script: CMD.PHP Must be started using the full path to the file and in lower case. This is a PHP Bug!!!
In the guide it says it must show some data in your cmd line interface but I see nothing. I've started te poller using this command in my cmd:
php c:/www/cacti/poller.php
or
php c:\www\cacti\poller.php
It's says it's a PHP bug, but what can i do to correct it?
(I've got the latest versions of all software)(winxp)

Thanks

Johnny
tymbow
Cacti User
Posts: 54
Joined: Sat May 14, 2005 8:00 pm

Post by tymbow »

You probably should specify the full path to php, e.g. c:\php\php.exe c:\www\cacti\poller.php

Anyway, what version of PHP are you using? A few people have seen this with the latest PHP 5.2.0 and I don't think it's been addressed yet. It works fine with PHP 5.1.6
PlaneTeeR
Posts: 14
Joined: Mon Nov 20, 2006 5:52 am

Post by PlaneTeeR »

I use PHP 5.2.0, when i try it with c:\php\php.exe i get a parse error in php.exe:
Parse error: parse error, unexpected '.' in c:\php\php.exe on line 137
Is this also a bug with the new version of php? Where can i get the previous version? 5.1.6?

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

Post by TheWitness »

It's not the PHP path that is the problem in Windows, it's the path to cmd.php and it was a problem in earlier versions. So during debugging, simply specify the launch as follows:

php c:/wwwroot/cacti/cmd.php

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?
PlaneTeeR
Posts: 14
Joined: Mon Nov 20, 2006 5:52 am

Post by PlaneTeeR »

Hmm, i don't understand what I should do now. I've tried

Code: Select all

php c:\www\cacti\cmd.php
but get the same result as before. What should i do exactly?

thanks Johnny
tymbow
Cacti User
Posts: 54
Joined: Sat May 14, 2005 8:00 pm

Post by tymbow »

I say go back to PHP 5.1.6 and use the paths as the Witness outlined.

You can get PHP 5.1.6 from http://www.php.net/releases.php - it should be at the top.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Your php.ini file is hosed. Start with a fresh one.
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?
PlaneTeeR
Posts: 14
Joined: Mon Nov 20, 2006 5:52 am

Post by PlaneTeeR »

I'm first trying a fresh php.ini file. before changing php version. The installation guide uses the php.ini.dist file, why not the php.ini-recommended?

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

Post by TheWitness »

Dude,

The following line:
Parse error: parse error, unexpected '.' in c:\php\php.exe on line 137
Is indicative of a hosed PHP.INI file. I don't control The PHP Groups distribution, I just know that that is 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?
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

He's right though -- there is a bug with cacti and php 5.2.0. So until there is a patch released, go back to, 5.1.6
PlaneTeeR
Posts: 14
Joined: Mon Nov 20, 2006 5:52 am

Post by PlaneTeeR »

Oke, Hmm i will use the installer on a new virtual machine, this is much faster and i don't have to configure everything, thanks anyway.
thingles
Posts: 4
Joined: Sun Oct 15, 2006 3:19 pm

Find a solution?

Post by thingles »

Did you happen to find a solution to this? I'm having the exact same problem using PHP 5.2.0 with cacti 0.8.6i on Windows Server 2003. PHP is running fine for other web applications on the same host. But the poller gives me this error.
thingles
Posts: 4
Joined: Sun Oct 15, 2006 3:19 pm

Post by thingles »

Just to confirm -- downgrading to PHP 5.1.x does seem to fix this. :-(
PlaneTeeR
Posts: 14
Joined: Mon Nov 20, 2006 5:52 am

Post by PlaneTeeR »

When I downgraded it solved the problem...

Now I used the installer, much less work :D .

Johnny
airwalk
Cacti User
Posts: 103
Joined: Fri Aug 18, 2006 11:22 am
Location: MSK, RU

Post by airwalk »

BSOD2600 wrote:He's right though -- there is a bug with cacti and php 5.2.0. So until there is a patch released, go back to, 5.1.6
Any news on the subject?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest