php script does not work as Data Input Method

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

That looks fine. Did I already advise to see 2nd link of my sig for debugging? This will show you, how Cacti is handling your script exactly. Please post findings one by one.
R.
rjbrown99
Posts: 2
Joined: Sun Jul 25, 2010 3:13 am

Tip

Post by rjbrown99 »

Here's a tip.

I was trying to query a server for Cacti-formatted data. I could do it from the command line just fine, but cacti would always come back with Output: 0 in the interface.

The results that came back on the query had a trailing space. This caused cacti to ignore the results. I wrapped it inside of a php trim() to get rid of the space and cacti immediately recognized it. So if you are having problems with data, curl, or anything similar make sure the returned results do not have a space at the end.
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests