|
|
| Author |
Message |
lechat
Joined: 31 Jan 2003 Posts: 4
|
Posted: Fri Jan 31, 2003 6:42 am Post subject: error on cmd.php |
|
|
Hello
very nice tool ! but i have 2 problems :
when i use load the cmd.php on XP i have this result for my command
d:\outils\easyphp\php\php.exe :\outils\EasyPHP\www\cacti\cmd.php
result :
ERROR: expected 1 data source readings (got 2) from N:X-Powered-By::...
X-Powered-By: PHP/4.2.0
Content-type: text/html
this is a vb script for percent free space on hard disk.
when i watch the cron printout the result is :
X-Powered-By: PHP/4.2.0 Content-type: text/html 39
when i watch the datasource-> edit data the result is 39 (my free percent disk)
I have configure the graph as define in the documentation, but no graph, the rrd file is generate but no plot !
any body have an idea
my second problem is concerning the get snmp data :
i have a error with the cmd.php who said for IP adress thi is not à command file.
thank for your help |
|
| Back to top |
|
 |
jlancaster
Joined: 04 Feb 2003 Posts: 38 Location: Dallas, TX
|
Posted: Mon Feb 10, 2003 4:02 pm Post subject: |
|
|
Your error is being caused by the PHP headers that are returned when you run your script. There must be an option in the PHP.INI file to turn these off, but I found a workaround. Add "-q" to the command line you are using in your DIS. Example from my DIS:
c:\php\php -q <path_cacti>/scripts/diskutils.php <server> <option> <disk> |
|
| Back to top |
|
 |
|