|
|
| Author |
Message |
Pumpi Cacti User
Joined: 14 Jan 2004 Posts: 256 Location: Germany
|
Posted: Mon Jul 26, 2004 9:41 am Post subject: CMDPHP: Poller[0] ERROR... This is a PHP Bug!!! |
|
|
Running Version Version 0.8.6 from 07/35/2004 on W2K with XAMPP from Apachefriends: (Apache HTTPD 2.0.50, MySQL 4.0.20, PHP 5.0.0 + 4.3.8 + PEAR + Switch, MiniPerl 5.8.3, mod_php 4.3.7, mod_ssl 2.0.49, Openssl 0.9.7d, PHPMyAdmin 2.5.7 pl1, Webalizer 2.01-10, Mercury)
No Graphs are shown and no rra files are build.
Cacti Log File shows:
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!!!
Sorry i know it's beta version  |
|
| Back to top |
|
 |
raX Lead Developer
Joined: 13 Oct 2001 Posts: 2234 Location: Carlisle, PA
|
Posted: Mon Jul 26, 2004 11:08 pm Post subject: |
|
|
Are you starting the poller with 'poller.php' rather than 'cmd.php'?
-Ian |
|
| Back to top |
|
 |
Pumpi Cacti User
Joined: 14 Jan 2004 Posts: 256 Location: Germany
|
Posted: Tue Jul 27, 2004 2:40 am Post subject: |
|
|
Hi raX,
I use cmd.php - didn't know how to use poller.cmd
With PHP 4 and Cacti 0.8.5.a it was possible to run cmd.php within the web browser but now I get following error:
#!/usr/bin/php -q
This script is only meant to run at the command line. |
|
| Back to top |
|
 |
TheWitness Developer
Joined: 14 May 2002 Posts: 9671 Location: MI, USA
|
Posted: Tue Jul 27, 2004 5:03 am Post subject: |
|
|
Pumpi,
We have locked down the cmd.php to prevent execution from the Web Server. If you run from the command line, all should be Ok. Also, as stated by raX, you should run poller.php in Cacti 0.8.6.
Regards,
Larry Adams
TheWitness |
|
| Back to top |
|
 |
TheWitness Developer
Joined: 14 May 2002 Posts: 9671 Location: MI, USA
|
Posted: Tue Jul 27, 2004 5:43 am Post subject: |
|
|
Pumpi,
Keep us posted in your testing. Please insure that you use poller.php. Otherwise your graphs will not update.
TheWitness |
|
| Back to top |
|
 |
Pumpi Cacti User
Joined: 14 Jan 2004 Posts: 256 Location: Germany
|
Posted: Tue Jul 27, 2004 5:47 am Post subject: |
|
|
Hi TheWitness,
you mean that i should use in the task sheduler poller.php instead of cmd.php ?
I'll check this out.
Thanks for help.
P.s. should I use php5 or better php4 ? |
|
| Back to top |
|
 |
TheWitness Developer
Joined: 14 May 2002 Posts: 9671 Location: MI, USA
|
Posted: Tue Jul 27, 2004 5:50 am Post subject: |
|
|
Correct. If you are using Windoz, schedule "c:\php\php.exe <path_cacti>\poller.php".
TheWitness |
|
| Back to top |
|
 |
TheWitness Developer
Joined: 14 May 2002 Posts: 9671 Location: MI, USA
|
Posted: Tue Jul 27, 2004 5:53 am Post subject: |
|
|
Pumpi,
I am successfully using PHP5 in Windows. However, If so, you need to point Cacti to c:\php\php-win.exe instead of c:\php\php.exe. Otherwise the poller doesn't work quite right. Haven't figured it out yet.
Goto "Settings->Paths" and change the php path as noted above. You can still schedule with c:\php\php.exe if you wish.
TheWitness |
|
| Back to top |
|
 |
Pumpi Cacti User
Joined: 14 Jan 2004 Posts: 256 Location: Germany
|
Posted: Tue Jul 27, 2004 8:24 am Post subject: |
|
|
TheWitness,
I can't find php-win.exe.
I can't select in Cacti GUI poller.php as poller, only cmd.php and cactid are available as options.
Pumpi |
|
| Back to top |
|
 |
Pumpi Cacti User
Joined: 14 Jan 2004 Posts: 256 Location: Germany
|
Posted: Tue Jul 27, 2004 8:30 am Post subject: |
|
|
php-win.exe is not integrated into XAMPP packages.
I'll add it manually and check the functions again.
Thanks again  |
|
| Back to top |
|
 |
Pumpi Cacti User
Joined: 14 Jan 2004 Posts: 256 Location: Germany
|
Posted: Tue Jul 27, 2004 8:47 am Post subject: |
|
|
Confusing paths:
ERROR: opening 'C:\apachefriends\xampp\htdocs\cacti/rra/cacti_test_users_8.rrd': No such file or directory
Is the mix of slash and backslash normal ?
Also get this error (Interface Traffic with total bandwith):
Notice: Undefined variable: regexps in C:\apachefriends\xampp\htdocs\cacti\lib\rrd.php on line 387
Notice: Undefined variable: fetch_array in C:\apachefriends\xampp\htdocs\cacti\lib\rrd.php on line 402
ERROR: no rrdtool fetch output, you probably forgot to pass a valid data source
Notice: Undefined variable: regexps in C:\apachefriends\xampp\htdocs\cacti\lib\rrd.php on line 387
Notice: Undefined variable: fetch_array in C:\apachefriends\xampp\htdocs\cacti\lib\rrd.php on line 402
ERROR: no rrdtool fetch output, you probably forgot to pass a valid data sourceERROR: opening 'C:\apachefriends\xampp\htdocs\cacti/rra/cacti_test_traffic_in_11.rrd': No such file or directory |
|
| Back to top |
|
 |
TheWitness Developer
Joined: 14 May 2002 Posts: 9671 Location: MI, USA
|
Posted: Tue Jul 27, 2004 3:03 pm Post subject: |
|
|
Pumpi,
The path information does not matter. However, I am more concerned about the missing file. Is the file actually missing?
Larry |
|
| Back to top |
|
 |
TheWitness Developer
Joined: 14 May 2002 Posts: 9671 Location: MI, USA
|
Posted: Tue Jul 27, 2004 4:39 pm Post subject: |
|
|
Pumpi,
If you are running PHP5 you need worry about php-win.exe. If you are running PHP4, you do not.
Larry |
|
| Back to top |
|
 |
Pumpi Cacti User
Joined: 14 Jan 2004 Posts: 256 Location: Germany
|
Posted: Wed Jul 28, 2004 2:00 am Post subject: |
|
|
1. Whic file do you mean ?
2. What about ther erros in rrd.php ?
3. Do I need to enable the poller in Cacti GUI when i use task scheduler with php-win.exe poller.php ?
4. Still no files in C:\apachefriends\xampp\htdocs\cacti\rra
5. Here are my logs
| Code: | 07/28/2004 08:53 AM - CMDPHP: Poller[0] RRD: c:\rrdtool\rrdtool.exe graph - --imgformat=PNG --start=-86400 --end=-300 --title="Cacti-Server - Processes" --base=1000 --height=120 --width=500 --alt-autoscale-max --lower-limit=0 --vertical-label="processes" DEF:a="C\:\apachefriends\xampp\htdocs\cacti/rra/cactiserver_proc_9.rrd":proc:AVERAGE AREA:a#F51D30:"Running Processes" GPRINT:a:LAST:"Current\:%8.0lf" GPRINT:a:AVERAGE:"Average\:%8.0lf" GPRINT:a:MAX:"Maximum\:%8.0lf"
07/28/2004 08:53 AM - CMDPHP: Poller[0] RRD: c:\rrdtool\rrdtool.exe graph - --imgformat=PNG --start=-86400 --end=-300 --title="Cacti-Server - Processes" --base=1000 --height=120 --width=500 --alt-autoscale-max --lower-limit=0 --vertical-label="processes" DEF:a="C\:\apachefriends\xampp\htdocs\cacti/rra/cactiserver_proc_9.rrd":proc:AVERAGE AREA:a#F51D30:"Running Processes" GPRINT:a:LAST:"Current\:%8.0lf" GPRINT:a:AVERAGE:"Average\:%8.0lf" GPRINT:a:MAX:"Maximum\:%8.0lf"
07/28/2004 08:53 AM - CMDPHP: Poller[0] RRD: c:\rrdtool\rrdtool.exe graph - --imgformat=PNG --start=-86400 --end=-300 --title="Cacti-Server - Traffic - 15.197.230.147 (Intel(R) PRO/10)" --rigid --base=1000 --height=120 --width=500 --alt-autoscale-max --lower-limit=0 --vertical-label="bytes per second" DEF:a="C\:\apachefriends\xampp\htdocs\cacti/rra/cactiserver_traffic_in_11.rrd":traffic_in:AVERAGE DEF:b="C\:\apachefriends\xampp\htdocs\cacti/rra/cactiserver_traffic_in_11.rrd":traffic_out:AVERAGE AREA:a#00CF00:"Inbound" GPRINT:a:LAST:" Current\:%8.2lf %s" GPRINT:a:AVERAGE:"Average\:%8.2lf %s" GPRINT:a:MAX:"Maximum\:%8.2lf %s" COMMENT:"Total In: 0 bytes\n" LINE1:b#002A97:"Outbound" GPRINT:b:LAST:"Current\:%8.2lf %s" GPRINT:b:AVERAGE:"Average\:%8.2lf %s" GPRINT:b:MAX:"Maximum\:%8.2lf %s" COMMENT:"Total Out: 0 bytes"
07/28/2004 08:53 AM - CMDPHP: Poller[0] RRD: c:\rrdtool\rrdtool.exe fetch C:\apachefriends\xampp\htdocs\cacti/rra/cactiserver_traffic_in_11.rrd AVERAGE -r 300 -s -86400 -e now
07/28/2004 08:53 AM - CMDPHP: Poller[0] RRD: c:\rrdtool\rrdtool.exe fetch C:\apachefriends\xampp\htdocs\cacti/rra/cactiserver_traffic_in_11.rrd AVERAGE -r 300 -s -86400 -e now
07/28/2004 08:53 AM - CMDPHP: Poller[0] RRD: c:\rrdtool\rrdtool.exe graph - --imgformat=PNG --start=-86400 --end=-300 --title="Cacti-Server - Traffic - 15.197.230.147 (Intel(R) PRO/10)" --rigid --base=1000 --height=120 --width=500 --alt-autoscale-max --lower-limit=0 --vertical-label="bytes per second" DEF:a="C\:\apachefriends\xampp\htdocs\cacti/rra/cactiserver_traffic_in_11.rrd":traffic_in:AVERAGE DEF:b="C\:\apachefriends\xampp\htdocs\cacti/rra/cactiserver_traffic_in_11.rrd":traffic_out:AVERAGE AREA:a#00CF00:"Inbound" GPRINT:a:LAST:" Current\:%8.2lf %s" GPRINT:a:AVERAGE:"Average\:%8.2lf %s" GPRINT:a:MAX:"Maximum\:%8.2lf %s" COMMENT:"Total In: 0 bytes\n" LINE1:b#002A97:"Outbound" GPRINT:b:LAST:"Current\:%8.2lf %s" GPRINT:b:AVERAGE:"Average\:%8.2lf %s" GPRINT:b:MAX:"Maximum\:%8.2lf %s" COMMENT:"Total Out: 0 bytes"
07/28/2004 08:53 AM - CMDPHP: Poller[0] RRD: c:\rrdtool\rrdtool.exe fetch C:\apachefriends\xampp\htdocs\cacti/rra/cactiserver_traffic_in_11.rrd AVERAGE -r 300 -s -86400 -e now
07/28/2004 08:53 AM - CMDPHP: Poller[0] RRD: c:\rrdtool\rrdtool.exe fetch C:\apachefriends\xampp\htdocs\cacti/rra/cactiserver_traffic_in_11.rrd AVERAGE -r 300 -s -86400 -e now
|
6. Getting this error only for interface statistics. CPU shows only message that no rra file is found:
| Quote: | Notice: Undefined variable: regexps in C:\apachefriends\xampp\htdocs\cacti\lib\rrd.php on line 387
Notice: Undefined variable: fetch_array in C:\apachefriends\xampp\htdocs\cacti\lib\rrd.php on line 402
ERROR: no rrdtool fetch output, you probably forgot to pass a valid data source
Notice: Undefined variable: regexps in C:\apachefriends\xampp\htdocs\cacti\lib\rrd.php on line 387
Notice: Undefined variable: fetch_array in C:\apachefriends\xampp\htdocs\cacti\lib\rrd.php on line 402
ERROR: no rrdtool fetch output, you probably forgot to pass a valid data sourceERROR: opening 'C:\apachefriends\xampp\htdocs\cacti/rra/cactiserver_traffic_in_11.rrd': No such file or directory
|
|
|
| Back to top |
|
 |
TheWitness Developer
Joined: 14 May 2002 Posts: 9671 Location: MI, USA
|
Posted: Wed Jul 28, 2004 5:05 am Post subject: |
|
|
1). RRD file. I believe that you answered that
2). Need to see your Logfile in it's entirity. Change logging level to Debug and run Poller.php 1 time. Send the output to this thread.
3). Yes. And per my prior note php-win.exe is only required for PHP5, otherwise php.exe
4). See note 2.
5). Not what I was looking for. Although, if you are getting this information from the User Interface, it may be providing a clue. Please clarify how these logs were generated.
6). Ok. Please see note 2.
Questions:
a). When did you get the last alpha build?
b). Is this a new install, or an upgrade?
TheWitness |
|
| Back to top |
|
 |
|