I'm wondering if there is an API of any sort built in to Cacti. I'd like to have a PHP script running on another server which can query the Cacti server, ideally over HTTP, and retrieve some of the data on a specific host.
For example, I would use a link like this:-
Code: Select all
https://cacti.mynetwork.com/cacti/api.php?hostid=34
Code: Select all
<CACTI>
<DEVICE>
<NAME="SERVER01">
<HOSTNAME="192.168.0.23">
<CURRENT="44.6">
<AVAILABILITY="98.3">
</DEVICE>
</CACTI>
Thanks,
Thomas