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
poller.php error
Moderators: Developers, Moderators
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
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]
[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]
poller.php error
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
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
Odd.
What happens when you type: php -m ?
Do you have php in your system path?
What happens when you type: php -m ?
Do you have php in your system path?
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
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.'-' is not recognized as an internal or external command,
operable program or batch file.
POLLER: Poller[0] Maximum runtime of 296 seconds exceeded. Exiting
Hope that helps...
'-' is not recognized as an internal or external command
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.
Oh well...hind sight is 20/20
C
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.
Oh well...hind sight is 20/20
C
Who is online
Users browsing this forum: No registered users and 2 guests