- 25 Jan 2024
- 2 Minutes to read
- Print
- DarkLight
- PDF
LibreNMS
- Updated on 25 Jan 2024
- 2 Minutes to read
- Print
- DarkLight
- PDF
LibreNMS Integration Guide
LibreNMS is a fully featured network monitoring system that provides a wealth of features and device support. Integrate AlertOps’ alert management platform with LibreNMS to receive and respond to critical alerts through email, SMS, push notification, and phone alerts. AlertOps ensures that alerts received from LibreNMS always reach the correct, available team member by utilizing escalation policies and on-call schedules.
AlertOps Configuration
- Navigate to Configuration àIntegrations àAdd API Integration à API Integration Detail page.
- Select LibreNMS.
- Enter a name for the integration. Select an escalation rule to determine the integration's escalation policy. And, enter the names of recipient user(s) and recipient group(s). Click 'Save Changes.' Then, click 'Copy URL' to copy the URL endpoint to be used in the LibreNMS configuration.
- In 'Rules for Opening and Closing an Alert' under 'Advanced Settings' change the 'Content' to FORM DATA
LibreNMS Configuration
The following steps will explain how to configure LibreNMS integration for incident management.
To add the AlertOps webhook in LibreNMS
- From the home page, click on the Alerts tab on the top
- Select Alert Transports
- Click on Create Alert Transport
- When creating the alert transport:
- Give the Alert Transport a Name
- Choose Transport type as Api
- Default alert is toggled to ON
- Choose API Method as POST
- In the placeholder for API URL, paste the copied Webhook from your AlertOps integration.
- Leave Headers Empty
- Leave Body Empty
- Under 'Options' paste the following in the following format
device_id={{ $device_id }} hostname={{ $hostname }} sysName={{ $sysName }} sysDescr={{ $sysDescr }} sysContact={{ $sysContact }} os={{ $os }} type={{ $type }} ip={{ $ip }} hardware={{ $hardware }} version={{ $version }} features={{ $features }} serial={{ $serial }} location={{ $location }} uptime={{ $uptime }} uptime_short={{ $uptime_short }} uptime_long={{ $uptime_long }} description={{ $description }} notes={{ $notes }} alert_notes={{ $alert_notes }} ping_timestamp={{ $ping_timestamp }} ping_loss={{ $ping_loss }} ping_min={{ $ping_min }} ping_max={{ $ping_max }} ping_avg={{ $ping_avg }} title={{ $title }} elapsed={{ $elapsed }} builder={{ $builder }} id={{ $id }} uid={{ $uid }} state={{ $state }} severity={{ $severity }} rule={{ $rule }} name={{ $name }} proc={{ $proc }} timestamp={{ $timestamp }} transport={{ $transport }} transport_name={{ $transport_name }}
- Once your Alert Transport has been created, click on the Alerts tab on the top and select Alert Rules.
- You can either Add an alert rule or modify an existing one. Open the Alert Rule to trigger the AlertOps Webhook.
- Enable the toggle for Recovery Alerts to ON and click Save Rule.
- Back in the Alert Rule dashboard, you can verify the rules for which Webhook has been added as a Transport.
Alert Triggering Information
AlertOps will automatically create an incident when a new alert is received from LibreNMS with an IncidentStatus status of “open”.
If an alert with status “1” matches an existing Open Alert, AlertOps will recognize the new alert as a duplicate and ignore the alert. The alert will be recorded in the Inbound Messages table as “Mapped Appended.”
AlertOps will automatically close the same incident when an alert with an IncidentStatus status “0” is received.