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.
php script does not work as Data Input Method
Moderators: Developers, Moderators
Tip
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.
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.
Who is online
Users browsing this forum: No registered users and 5 guests