Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support API based device availability checks #5919

Open
seanmancini opened this issue Nov 14, 2024 · 2 comments
Open

Support API based device availability checks #5919

seanmancini opened this issue Nov 14, 2024 · 2 comments
Labels
enhancement General tag for an enhancement

Comments

@seanmancini
Copy link
Contributor

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 seanmancini added the enhancement General tag for an enhancement label Nov 14, 2024
@xmacan
Copy link
Member

xmacan commented Nov 15, 2024

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

@TheWitness TheWitness changed the title [Feature Request] - Support API based device availability checks Support API based device availability checks Dec 3, 2024
@TheWitness
Copy link
Member

@bmfmancini, please provide an example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement General tag for an enhancement
Projects
None yet
Development

No branches or pull requests

3 participants