cacti icon indicating copy to clipboard operation
cacti copied to clipboard

Support API based device availability checks

Open seanmancini opened this issue 1 year ago • 2 comments

Some device manufacturers have moved to an API model for some checks of devices

I.e if you want to check the uptime of a device you would query an API usually restful to get the status of the device Instead of traditional SNMP

Cacti can be adapted to monitor a device purely by API instead of SNMP with the right scripts you can pass for example the device id Into the script and onto the API to get the data you want to plot but since cacti does not see the device online it will not attempt to run the script server for this device

Maybe this can be a "custom" availability check where you provide a script and it must return 1 for up 0 for down ?

seanmancini avatar Nov 14 '24 15:11 seanmancini

I'm working on an API for the servcheck plugin. Larry and I talked about it, and if it works, we'll add it later as a new data source directly into cacti. It's more complicated in that there are several ways to authenticate a user (password, oauth token, ...)

xmacan avatar Nov 15 '24 07:11 xmacan

@bmfmancini, please provide an example.

TheWitness avatar Dec 03 '24 20:12 TheWitness