Version 9 (modified by 4 years ago) ( diff ) | ,
---|
Sending Notifications and Alerts using LibreNMS.
When a specific event occurs (eg: Link Down) NMS should be able to send administrators some notifications. On LibreNMS this is done by creating different Transports and Alerting Rules. Transports are the mechanism on how LibreNMS should send the alerts (may be by Email, by some API etc.), where Alerting Rules specify when and to whom to send those alerts.
Alert Transports
We need to specify which transport we are going to use.
On your UI, Go to Alerts
--> Alert Transports
Email Transport
Email transports needs to be created per email basis. If you need two emails to be notified, You have to create two transports.
Go to Create Alert Transport
- Transport Name:
Email to <Name of Admin1>
- Transport type:
Mail
- Default Alert:
Off
- Email:
<Email Address of Admin1>
Once you save the transport it should see like the following.
Repeat the same for the second Email Address if you have any.
For Email Transports to Work, you need to setup email server details for LibreNMS. Since we haven't installed a public email server, lets use GMAIL as the smtp server.
Log in to https://myaccount.google.com
with any of your personal gmail accounts.
Goto Security
--> Less secure app access
Enable Allow less secure apps
Next, on your LibreNMS installation,
Goto Settings Wheel
--> Global Settings
--> Alerting
--> Email Options
and include gmail settings as per following.
Now go back to the Alert Transport page and click in front of your transports and check whether you received a test mail to your email account/s.
Slack Tranport
Slack ( https://slack.com )is an enterprise messaging platform used worldwide for professional use. Slack supports Web and Mobile versions so that we can use slack to generate alerts on mobile devices. This is done by using its SLACK API and by creating a BOT to message you with the alerts.
If you don't have a slack account for your institute, create one with free plan. (If there are multiple attendees from the same institute, Please create test accounts as it may become an issue later someday. (eg: PDN-test-Lorence) Or else one may create a single account and add/invite others and make them Administrators.
Do first three steps under Getting started with Incoming Webhooks on https://api.slack.com/messaging/webhooks
eg:
Telegram Transport
Attachments (17)
- LibreNMS_Email.png (181.4 KB ) - added by 4 years ago.
- email_transport.png (35.9 KB ) - added by 4 years ago.
- Test_transport.png (4.9 KB ) - added by 4 years ago.
- Slack-try-free.png (110.2 KB ) - added by 4 years ago.
- Slack-first-email.png (119.1 KB ) - added by 4 years ago.
- Create-workspace.png (221.4 KB ) - added by 4 years ago.
- Create-app.png (118.8 KB ) - added by 4 years ago.
- Incoming-webhooks.png (194.3 KB ) - added by 4 years ago.
- Webhooks-activate.png (164.2 KB ) - added by 4 years ago.
- Add-new-webhook.png (153.6 KB ) - added by 4 years ago.
- Allow-channel.png (146.5 KB ) - added by 4 years ago.
- Check-channel.png (303.4 KB ) - added by 4 years ago.
- Copy-webhook-url.png (126.0 KB ) - added by 4 years ago.
- alert-transport.png (136.6 KB ) - added by 4 years ago.
- Telegram-test.png (93.1 KB ) - added by 4 years ago.
- Telegram-transport.png (88.2 KB ) - added by 4 years ago.
- Transport-Group.png (76.5 KB ) - added by 4 years ago.