How to configure Nagios for audio alerts and mobile notifications

I had originally written this tutorial for xmodulo.com
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.

Nagios Checker - A Firefox Add-on

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.
Requirements
  • Nagios Checker will gather information from a Nagios server every minute.
  • Nagios Checker will generate audio alarms only when there is a change in network
    health, i.e., alarms will not be produced for the same host over and over again.
Installation and Configuration
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 IP/hostname, nagiosadmin user and password are set.
The path to the status.cgi script is located. The path to CGI directory would be:
  • Debian/Ubuntu: http://IP/nagios3/cgi-bin/
  • CentOS/RHEL: http://IP/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 - An Android App for Nagios

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:
  • Debian/Ubuntu: http://IP/nagios3/cgi-bin/
  • CentOS/RHEL: http://IP/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.

Comments

  1. Well It Was Very Nice Article It Is Very Useful For Linux Learners. We Are Also Providing Linux Online Courses Training. Our Linux Online Training Is One Of The Best Online Training Institute In The World.

    ReplyDelete
  2. Well It Was Very Good Information For All Linux Learners.We Also Provide All Linux Online Training Courses In World Wide.

    ReplyDelete

Post a Comment