Last updated on September 2, 2020 by Sarmed Rahman
In a Network Operation Centre (NOC) environment, setting up alerts is extremely important. As one of the most popular NOC monitoring systems, Nagios features powerful alerting services. Alerts generated by Nagios can be sent out in various means, so that they can be acted upon immediately. Email notification is the most commonly used option.
This tutorial presents two other ways to send out Nagios alerts: (1) audio alerts via web browser, and (2) audio/vibration alerts via an Android app.
A small Mozilla Firefox add-on named Nagios Checker written by Petr Šimek can be used to gather information from Nagios, and generate audio alarms whenever a problem is detected. It is very easy to set up.
Nagios Checker can easily be obtained in the Firefox add-on menu. A simple search should do the trick.
The Add-on Bar must be enabled.
The add-on is configured to gather information from a Nagios server.
Nagios server's IP address/hostname, Nagios username and password are set.
The path to the status.cgi
script is located. The path to CGI directory would be:
http://<nagios-server-IP-address>/nagios3/cgi-bin/
http://<nagios-server-IP-address>/nagios/cgi-bin/
The URL for status.cgi
is manually defined as the process of locating it automatically is not always successful.
After exiting the dialog box with OK
, the check interval is set.
By default, Nagios Checker will produce audio alarms over and over again with each check (every minute in this case) if at least one problem exists. This could be very annoying. Nagios Checker is tuned so that it generates alarms only if a new problem appears.
And now we are ready to use Nagios Checker with Firefox. It is a very useful tool in any NOC environment that has to monitor a lot of hosts.
aNag is an Android app that can be configured to gather information from a Nagios server, and provide alerts (audio and/or vibration) in Android phones. It is a lightweight, free, easy to configure software with no advertisements. It can be easily installed from the Google Play store.
After aNag has been downloaded and installed, configuring it is very easy. Pressing the menu button in the phone should give a panel containing settings
.
A new instance is created.
The parameters for the new instance are entered. The path to CGI directory would be:
http://<nagios-server-IP-address>/nagios3/cgi-bin/
http://<nagios-server-IP-address>/nagios/cgi-bin/
aNag is highly customizable. The notification period, update interval and other parameters can be changed from the settings menu. One of the important things that can be configured would be specifying whether aNag should query a Nagios server if any data connection is available, or it should check only over Wi-Fi. This setting can be found under settings
→ low level settings
.
At this point, we are ready to use aNag. It should generate alerts as needed. The app interface should contain all the necessary details.
Another useful feature of aNag is the ability to shut down the app and associated services while not in use. This frees up phone resources that can be used for other purposes. This feature can be found by tapping the menu button.
Hope this helps.
This website is made possible by minimal ads and your gracious donation via PayPal or credit card
Please note that this article is published by Xmodulo.com under a Creative Commons Attribution-ShareAlike 3.0 Unported License. If you would like to use the whole or any part of this article, you need to cite this web page at Xmodulo.com as the original source.
Xmodulo © 2021 ‒ About ‒ Write for Us ‒ Feed ‒ Powered by DigitalOcean