poller.php error

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

Moderators: Developers, Moderators

Post Reply
rgeere
Posts: 2
Joined: Wed Oct 19, 2005 10:32 am

poller.php error

Post by rgeere »

Hi,

This is the error I get when i run the poller.php file



Fatal error: Call to undefined function mysql_connect() in c:\Apache\Apache2\htd
ocs\cacti\lib\adodb\drivers\adodb-mysql.inc.php on line 338

any ideas anyone?

Thanks
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Yes, you php doesn't have mysql support compiled in or turned on as a module.
[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]
rgeere
Posts: 2
Joined: Wed Oct 19, 2005 10:32 am

poller.php error

Post by rgeere »

Hi,

I have sorted the previous issues and now it shows this error message any ideas?


C:\php>php c:\apache\apache2\cacti\poller.php
'-' is not recognized as an internal or external command,
operable program or batch file.


Thanks,

Rowan
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Odd.

What happens when you type: php -m ?
Do you have php in your system path?
joenobody
Posts: 3
Joined: Thu Oct 20, 2005 6:47 pm

Post by joenobody »

'-' is not recognized as an internal or external command,
operable program or batch file.

POLLER: Poller[0] Maximum runtime of 296 seconds exceeded. Exiting
I was getting the same thing, didn't realize right away after fixing my other problems [PATHs are screwy with subst drives :)] that the initial config page was now working - went through that and no more 'not recognized' error.
Hope that helps...
User avatar
Citadel
Posts: 3
Joined: Thu Nov 17, 2005 6:39 am
Location: Calgary, Alberta

'-' is not recognized as an internal or external command

Post by Citadel »

It appears that this error is generated because poller.php is ran before the configuration is run via the web interface. Just out of curiousity, why does the documentation say to do it in this order when all it does is break things?

The only thing I can think of is that if you follow the directions explicitly you can run through the configuration before the cron job runs and then your graphs will have info to show. Of course I tested the command out before entering into my crontab and continuing ...and hence I hunted and hunted to find this post to find out how I screwed up. :roll:

Oh well...hind sight is 20/20

C
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests