Re: PHP Script Server
Gandalf <[email protected]>
| Newsgroups | gmane.network.cacti.user |
|---|---|
| Message-ID | <[email protected]> |
paramx:valuex without a trailing CR would be fine R. On 22.08.2013 17:33, Roth, Sandro wrote: > Hi There > > I'm having trouble with a custom script for the php script server. > If I run the script with the script server manually it seems to work fine: > > # php ../script_server.php > PHP Script Server has Started - Parent is cmd > /data/www/cacti/scripts/ss_myscript.php ss_myscript somehost someuser paramx > paramx:4 > > Although in the logfile the poller complains about no or incorrect output, and therefore my graphs are empty. > > # tail -100 ../log/cacti.log | grep somehost > 08/22/2013 05:20:08 PM - SPINE: Poller[0] Host[184] TH[1] DS[1359] SS[0] SERVER: /data/www/cacti/scripts/ss_myscript.php ss_myscript somehost someuser paramx, output: U > 08/22/2013 05:20:08 PM - SPINE: Poller[0] Host[184] TH[1] DS[1358] SS[0] SERVER: /data/www/cacti/scripts/ss_myscript.php ss_myscript somehost someuser paramy, output: U > > Also the documentation seems to be unclear in what format the output needs to be? > > paramx:valuex ? > paramx:valuex paramy:valuey ? > valuex ? > > In between tests and changes to the script or data input methods I always rebuilt the poller cache. > > Cacti version is 0.8.8a with spine, same version. > > > Thanks a lot > Sandro > > > > > This email message and any attachments are confidential and may be privileged. If you are not the intended recipient, please notify us immediately and destroy the original transmittal. You are hereby notified that any review, copying or distribution of it is strictly prohibited. Thank you for your cooperation. > > Header information contained in E-mails to and from the company are monitored for operational reasons in accordance with swiss data protection act. > ------------------------------------------------------------------------------ > Introducing Performance Central, a new site from SourceForge and > AppDynamics. Performance Central is your source for news, insights, > analysis and resources for efficient Application Performance Management. > Visit us today! > http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk > _______________________________________________ > cacti-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/cacti-user > ------------------------------------------------------------------------------ Introducing Performance Central, a new site from SourceForge and AppDynamics. Performance Central is your source for news, insights, analysis and resources for efficient Application Performance Management. Visit us today! http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk