Cacti / cacti

Cacti ™
http://www.cacti.net
GNU General Public License v2.0
1.65k stars 405 forks source link

[Feature Request] - Support API based device availability checks #5919

Open seanmancini opened 1 week ago

seanmancini commented 1 week ago

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 ?

xmacan commented 1 week ago

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, ...)