Hi, I am new to icinga2. I pull the docker image and run it, I add a host with hostalive check as icinga2 doc. But I do not understand it.
- I want to monitor a router which has restapi(get interface speed, link status, and so on), need I to write a plugin to call the rest api on the router?
- I see 2 parts about rest spi in icinga2 doc, the first is manage configuration objects and resources(https://icinga.com/docs/icinga-2/latest/doc/12-icinga2-api/,it seems not about call rest api on monitored device), the second is ‘Agents sending Check Results via REST API’(Agent Based Monitoring - Icinga 2) , I do not understand it, is there some example?
- If I add a new plugin(get interface speed on monitored device ), I need to process the result and modify icinga2 web, show it on icinga2 web finally?
- I see the icinga web get data from database, then. Or should I get data from database on the monitored device directly(store interface speed in database)?
Is there some example or instruction?Thanks a lot!