Using webhooks to programmatically react to an AP going down
How do you know when something goes wrong with your infrastructure? At the latest, this usually happens when a user complains about not being able to log into the network, but then, it is usually too late. The idea of monitoring your network for any kinds of unforeseen events, such as a rogue access point appearing within the premises of your network, is nothing new and with programmability, we could even automate parts of this. A simplistic approach would be to, every few seconds, send requests to our API and retrieve the information we need to make decisions regarding whether something is wrong or not. This approach, also referred to as polling, has multiple issues:
- We need to keep track of what information we have already seen and what information we have not seen yet.
- We are putting a lot of stress on the API by constantly sending requests.
- We are requesting a lot of information we don't really need...