Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Tue Sep 25, 2018 11:51 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: PHP script + multiple result = trouble
PostPosted: Wed Feb 28, 2007 6:26 am 
Offline
User avatar

Joined: Thu Nov 09, 2006 10:39 am
Posts: 29
I wrote some PHP script ranning into a trouble: if the script has a multiple output cacti cannot draw the graph; but if i split the multi-output script in n sigle-output script i can built different data input, data template, data source into a unique graph template where i collect all the data source.

Actually is not a solution, 'cause i cannot use cicle and it's a real pity.

I'm in wrong?

Za


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 28, 2007 7:19 am 
Offline

Joined: Fri Feb 09, 2007 8:20 am
Posts: 9
did u use your php script as a script server with a data query method or as a data input method?

when u run the php script does it output the result in one line with its labels?

field1:value1 field2:value2 ?

if u used a script server did you compared it with the examples allready in cacti?

Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 28, 2007 7:34 am 
Offline
User avatar

Joined: Thu Nov 09, 2006 10:39 am
Posts: 29
I used it like a data input method; the output was in the correct format

filed1:value1 field2:value2

I tried with the ss_fping script.. but also in that case i cannot watch the graph, but the oddest thing is that I can display, in the log file, the correct result.

U can use correctly a multiple output php script?

Thanks for the quick reply!

Za


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 01, 2007 1:33 am 
Offline

Joined: Wed May 31, 2006 6:07 pm
Posts: 4
I too, am having this problem, most notably with the Accuweather php script.

Code:
temperature:36 humidity:85 windgusts:4 windspeed:11 visibility:10 realfeel:41 uvindex:0 pressure:30.00 precip: 0.00

is what I get from a command-line invocation..

Code:
02/28/2007 10:30:07 PM - CMDPHP: Poller[0] Host[4] DS[32] WARNING: Result from CMD not valid. Partial Result: temperature:36 humid
02/28/2007 10:30:06 PM - CMDPHP: Poller[0] Host[4] DS[27] WARNING: Result from CMD not valid. Partial Result: temperature:36 humid
02/28/2007 10:30:05 PM - CMDPHP: Poller[0] Host[4] DS[26] WARNING: Result from CMD not valid. Partial Result: temperature:36 humid


is what I get in the log using the wanings filter..

Anybody know what the problem seems to be, or how to fix it?

Cacti 0.8.6j, ubuntu 6.10(edgy), PHP Version 5.1.6


Top
 Profile  
 
 Post subject: so?!?!
PostPosted: Fri Mar 09, 2007 11:10 am 
Offline
User avatar

Joined: Thu Nov 09, 2006 10:39 am
Posts: 29
And so? Somebody can help us ?

ZA :-?


Top
 Profile  
 
 Post subject:
PostPosted: Sat Mar 10, 2007 4:30 am 
Offline
Developer
User avatar

Joined: Thu Dec 02, 2004 2:46 am
Posts: 22461
Location: Muenster, Germany
Please follow instructions of my first signature link (or see documentation tab of cacti sites)
Reinhard

_________________
Official Cacti Documentation
Official Debugging Help
Central Plugin Repository
Central Templates Repository


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: Google Adsense [Bot] and 7 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group