librenms/doc
Adam Bishop 492ab32b6d
Add support for sending events to Sensu (#11383)
* Add support for sending events to Sensu

Sensu is an alerting and monitoring service (and much more) that has a
nagios compatible check API.

This transport translates LibreNMS alerts into Sensu events, and sends
them to the agent API running on the same host as the poller.

The transport has a few options, but none of them are required - if the
Sensu agent is correctly configured, alerts will be sent as soon as the
transport is enabled.

There's a fair amount of code, as I've tried to translate as much data as
possible between LibreNMS and Sensu.

* Update Transports.md

* If alerted is 0, send an "ok" alert dated rrd.step / 2 seconds ago

This makes Sensu aware of the last time the check ran successfully (ish).
If we don't send the initial "ok", Sensu will either display 'unknown',
or an incorrectly high duration for the incident.

Alerted gets set to 1 after the first alert is sent.

We choose rrd.step / 2 as:
 * rrd.step is the maximum time ago the check could have succeeded
 * we halve it, so that if a check is flapping, it is not masked

Basically, we guess that the check fails around halfway through the time
since the poller last ran.

* Add additional metadata

* Improve codeclimate slightly

* Consider names that are 2 or 3 components long
2020-04-11 14:29:13 -05:00
..
Alerting Add support for sending events to Sensu (#11383) 2020-04-11 14:29:13 -05:00
API BGP API: Allow to filter by local and remote peer address. (#11340) 2020-04-05 17:16:16 +02:00
Developing Fix 10853 os specific syslocation (#11082) 2020-04-02 23:28:12 +02:00
Extensions Update RRDTune.md (#11369) 2020-04-02 12:02:36 +02:00
General Changelog for 1.62 2020-03-31 20:51:04 -05:00
img Alternate Poller IP instead of Hostname (#10981) 2020-01-30 06:20:30 -06:00
Installation Added yum-config-manager to Remi install (#11033) 2020-02-13 22:22:41 +01:00
Support Convert overview page to laravel (#10757) 2020-03-31 23:03:02 -05:00
CNAME Added CNAME for doc folder 2016-08-20 00:34:03 +01:00
index.md Updated to use new theme for docs site (#9320) 2018-10-27 23:04:34 +01:00
librenms.css Updated to use new theme for docs site (#9320) 2018-10-27 23:04:34 +01:00
robots.txt Added sitemap.xml to robots.txt (#9256) 2018-10-03 22:22:53 +01:00