Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


error on cmd.php

 
Post new topic   Reply to topic    Cacti Forum Index -> Help: Windows Specific
Author Message
lechat



Joined: 31 Jan 2003
Posts: 4

PostPosted: Fri Jan 31, 2003 6:42 am    Post subject: error on cmd.php Reply with quote

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

PostPosted: Mon Feb 10, 2003 4:02 pm    Post subject: Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Help: Windows Specific All times are GMT - 5 Hours
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group