can not run php poller.php
Moderators: Developers, Moderators
can not run php poller.php
This is error message :
C:\php>php c:\apache2\htdocs\cacti\poller.php
ERROR: change root is not supported by your OS or at least by this copy of rrdtool
11/21/2005 08:20:34 PM - SYSTEM STATS: Time:3.1767 Method:cmd.php Processes:1 Th
reads:N/A Hosts:3 HostsPerProcess:3 DataSources:11 RRDsProcessed:8
I use:
apache_2.0.55-win32-x86-no_ssl.msi
PHP 5.0.5
mysql 4.1.15
cacti 0.86g
rrdtool-cygwin-1.2.11
net-snmp-5.3.pre3.tar.gz
C:\php>php c:\apache2\htdocs\cacti\poller.php
ERROR: change root is not supported by your OS or at least by this copy of rrdtool
11/21/2005 08:20:34 PM - SYSTEM STATS: Time:3.1767 Method:cmd.php Processes:1 Th
reads:N/A Hosts:3 HostsPerProcess:3 DataSources:11 RRDsProcessed:8
I use:
apache_2.0.55-win32-x86-no_ssl.msi
PHP 5.0.5
mysql 4.1.15
cacti 0.86g
rrdtool-cygwin-1.2.11
net-snmp-5.3.pre3.tar.gz
You're not running the cygwin version of rrdtool (you've got the win32 one).
| 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 think i use rrdtool-cygwin because its name and i download form http://www.cacti.net/downloads/
what wrong?
Thank you
what wrong?
Thank you
Well check the rrdtool path in cacti. You ARE using the Win32 version of it. At the command prompt, simply type: rrdtool and paste the output. I'm looking for the compile date.
| 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 |
C:\rddtool>dir
Volume in drive C has no label.
Volume Serial Number is 30FF-3689
Directory of C:\rddtool
11/21/2005 08:20 PM <DIR> .
11/21/2005 08:20 PM <DIR> ..
06/04/2004 07:09 AM 78,848 cygart_lgpl_2-2.dll
10/25/2003 04:21 PM 369,152 cygfreetype-6.dll
08/10/2003 06:35 PM 176,640 cygpng12.dll
05/25/2005 07:39 PM 1,256,157 cygwin1.dll
10/10/2004 12:09 AM 62,976 cygz.dll
06/17/2005 05:24 PM 598,431 rrdtool.exe
6 File(s) 2,542,204 bytes
2 Dir(s) 1,423,187,968 bytes free
C:\rddtool>rrdtool.com
'rrdtool.com' is not recognized as an internal or external command,
operable program or batch file.
Volume in drive C has no label.
Volume Serial Number is 30FF-3689
Directory of C:\rddtool
11/21/2005 08:20 PM <DIR> .
11/21/2005 08:20 PM <DIR> ..
06/04/2004 07:09 AM 78,848 cygart_lgpl_2-2.dll
10/25/2003 04:21 PM 369,152 cygfreetype-6.dll
08/10/2003 06:35 PM 176,640 cygpng12.dll
05/25/2005 07:39 PM 1,256,157 cygwin1.dll
10/10/2004 12:09 AM 62,976 cygz.dll
06/17/2005 05:24 PM 598,431 rrdtool.exe
6 File(s) 2,542,204 bytes
2 Dir(s) 1,423,187,968 bytes free
C:\rddtool>rrdtool.com
'rrdtool.com' is not recognized as an internal or external command,
operable program or batch file.
Just type: rrdtool
and paste the output
No, you cannot delete the dll files unless you've installed Cygwin. Read the guide in my signature.
and paste the output
No, you cannot delete the dll files unless you've installed Cygwin. Read the guide in my signature.
| 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 |
C:\rddtool>rrdtool.exe
RRDtool 1.2.10 Copyright 1997-2005 by Tobias Oetiker <tobi@oetiker.ch>
Compiled Fri Jun 17 17:20:20 EST 2005
Usage: rrdtool [options] command command_options
Valid commands: create, update, updatev, graph, dump, restore,
last, first, info, fetch, tune, resize, xport
RRDtool is distributed under the Terms of the GNU General
Public License Version 2. (www.gnu.org/copyleft/gpl.html)
For more information read the RRD manpages
RRDtool 1.2.10 Copyright 1997-2005 by Tobias Oetiker <tobi@oetiker.ch>
Compiled Fri Jun 17 17:20:20 EST 2005
Usage: rrdtool [options] command command_options
Valid commands: create, update, updatev, graph, dump, restore,
last, first, info, fetch, tune, resize, xport
RRDtool is distributed under the Terms of the GNU General
Public License Version 2. (www.gnu.org/copyleft/gpl.html)
For more information read the RRD manpages
Ok, that rrdtool is a cygwin build. You sure there isn't another copy on your computer somewhere? Do a search. I "know" the error you're getting is caused from the Win32 build ( I just did a test on my cacti system and got that error when I swapped out the cygwin build with the win32 one).
| 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 |
Thank you for your fast reply
yes, u right i found copy rrdtool-win32. i delete it. it's pass
but i still found a problem.
C:\php>php c:\apache2\htdocs\cacti\poller.php
OK u:0.03 s:0.01 r:0.62
OK u:0.03 s:0.03 r:0.65
OK u:0.03 s:0.03 r:0.67
OK u:0.03 s:0.05 r:0.68
OK u:0.03 s:0.05 r:0.71
ERROR: Not enough arguments
OK u:0.03 s:0.05 r:0.71
OK u:0.03 s:0.06 r:1.54
OK u:0.03 s:0.08 r:1.57
OK u:0.03 s:0.08 r:1.58
OK u:0.03 s:0.11 r:1.60
OK u:0.03 s:0.12 r:1.61
OK u:0.03 s:0.12 r:1.62
OK u:0.05 s:0.12 r:1.63
OK u:0.05 s:0.14 r:1.65
OK u:0.05 s:0.16 r:2.581
1/22/2005 02:49:51 PM - SYSTEM STATS: Time:3.2193 Method:cmd.php Processes:1 Thr
eads:N/A Hosts:3 HostsPerProcess:3 DataSources:11 RRDsProcessed:8
OK u:0.05 s:0.17 r:2.60
In the new windows display "can not find module at line one" and this window is close.
yes, u right i found copy rrdtool-win32. i delete it. it's pass
but i still found a problem.
C:\php>php c:\apache2\htdocs\cacti\poller.php
OK u:0.03 s:0.01 r:0.62
OK u:0.03 s:0.03 r:0.65
OK u:0.03 s:0.03 r:0.67
OK u:0.03 s:0.05 r:0.68
OK u:0.03 s:0.05 r:0.71
ERROR: Not enough arguments
OK u:0.03 s:0.05 r:0.71
OK u:0.03 s:0.06 r:1.54
OK u:0.03 s:0.08 r:1.57
OK u:0.03 s:0.08 r:1.58
OK u:0.03 s:0.11 r:1.60
OK u:0.03 s:0.12 r:1.61
OK u:0.03 s:0.12 r:1.62
OK u:0.05 s:0.12 r:1.63
OK u:0.05 s:0.14 r:1.65
OK u:0.05 s:0.16 r:2.581
1/22/2005 02:49:51 PM - SYSTEM STATS: Time:3.2193 Method:cmd.php Processes:1 Thr
eads:N/A Hosts:3 HostsPerProcess:3 DataSources:11 RRDsProcessed:8
OK u:0.05 s:0.17 r:2.60
In the new windows display "can not find module at line one" and this window is close.
- Attachments
-
- untitled.JPG (32.16 KiB) Viewed 2576 times
Thats happening because you're trying to run a perl script and you don't have perl installed.
Also go install the patches for cacti.
Also go install the patches for cacti.
| 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 |
Who is online
Users browsing this forum: No registered users and 7 guests