How to Install & Upgrade Nagmin for Nagios 1.x

January 1, 2008 · Filed Under Nagios 

Nagmin is webmin module for Nagios and is a versatile tool that manages and compliments Nagios. Unfortunately, Nagios will only support the Nagios 1.x versions and not the 2.x versions for the reason that the MySQL database support is no more available on Nagios 2.x versions. Nagmin had its very active work done sometime in 2004 and unfortunate it is not taken any further. However, in its last available state, it is still a very powerful tool to administer Nagios. Being an Admin myself, I wouldn’t prefer a different admin tool than Nagmin for Nagios.

Installation of Nagmin requires the following installed on the server:

  • An installed working Nagios 1.x version
  • An installed working MySQL 3.0 or higher (Latest version 5.0)
  • An installed working NMap (Latest Version 4.11)
  • An installed working Net-SNMP (Latest Version 5.3.1)
  • An installed working RRDTool (Latest Version 1.2.15)  

Installation of Nagmin is a two step procedure. First install Webmin and then Nagmin
Install WEBMIN

Download the latest version of Webmin from

http://www.webmin.com

The latest version when this article is written is 1.300 and can be downloaded from here:

http://prdownloads.sourceforge.net/webadmin/webmin-1.300.tar.gz

Once downloaded,

Untar the files using,

# tar -zxvf webmin-1.300.tar.gz

Change to the extracted Directory

# cd webmin-1.300

Run the setup script as follows,

# ./setup.sh /usr/local/webmin

Accept the defaults when prompted and this will install Webmin in /usr/local/ directory.

Now launch

http://<IP or hostname>:10000/

This should launch Webmin installed on the server.

Logon as the admin user specified during installation and check webmin works OK on the server.

Now, proceed to install Nagmin.

Install Nagmin

Download Nagmin-2.1.0 from the following sourceforge website:

http://downloads.sourceforge.net/nagmin/nagmin-2.1.0.tar.gz?modtime=1078099200&big_mirror=0


NOTE: Do not try to install Nagmin 2.2 at the first place as it does not have the setup script that runs the various SQL scripts and creates the Nagios Database and the tables for the Database.

Once downloaded, untar the  nagmin-2.1.0.tar.gz

# tar -zxvf  nagmin-2.1.0.tar.gz

Move the directory nagmin-2.1.0 to /usr/local/ and rename it as nagmin

# mv nagmin-2.1.0 /usr/local/nagmin

Now, launch the webmin to add the nagmin as a webmin module.

Launch

http://<IP or HOSTNAME>:10000

Login as the admin user.

Click Webmin and then Webmin Configuration.

Click Webmin modules.

Select “from local file” option and and type the location as

/usr/local/nagmin/nagmin-2.1.0.wbm

and click Install.

This should install the Nagmin module and allow a link to launch Nagmin. Alternatively, click Servers then select “Nagmin Nagios Monitoring

Now, it is advisable to upgrade to Nagmin-2.2.0 as this fixes a few installer errors in Nagmin-2.1.0

Upgrade Nagmin-2.1.0 to Nagmin -2.2.0

To upgrade, first make a backup of the /usr/local/nagmin directory:

# mv  /usr/local/nagmin /usr/local/nagmin_bkp

Now, download Nagmin-2.2.0 from

http://downloads.sourceforge.net/nagmin/nagmin-2.2.0.tar.gz?modtime=1083196800&big_mirror=0

untar the  nagmin-2.2.0.tar.gz

# tar -zxvf  nagmin-2.2.0.tar.gz

Move the directory nagmin-2.2.0 and to /usr/local/nagmin directory

# mv nagmin-2.2.0 /usr/local/ nagmin

Once again, launch the webmin to add the nagmin as a webmin module.

Launch

http://<IP or HOSTNAME>:10000

Login as the admin user.

Click Webmin Configuration.

Click Webmin modules.

Select “from local file” option and and type the location as

/usr/local/nagmin/nagmin-2.2.0.wbm

and click Install.

This should install the updated Nagmin module (2.2.0) and allow a link to launch Nagmin. Alternatively, click Servers then select “Nagmin Nagios Monitoring”

Thats the deal… Have fun with Nagios Monitoring with Nagmin Administration. 

Comments

3 Responses to “How to Install & Upgrade Nagmin for Nagios 1.x”

  1. Kjetil P on April 14th, 2008 5:06 am

    I’ve just upgraded to Nagios 3.0.1.
    Is there any version of nagmin or similar that supports lates Nagios version?

  2. Akhil on June 25th, 2008 2:50 am

    The MySQL client program /usr/bin/mysql does not appear to be the correct version. Webmin only supports MySQL versions 3 and above…

    I am getting this error when run “Nagmin Nagios Monitoring” can anybody help me in this.

    Akhil

  3. Akhil on June 25th, 2008 4:00 am

    When i click on this option in webmin “NagMIN Network Monitoring” it will ask user name and password of mysql root user and password.
    “Webmin needs to know your MySQL administration login and password in order to manage your database. Please enter your administration username (usually root) and password below.”

    i am putting mysql root user name and password but it is not accepting when i use mysql root user name and password on ternimal it will accept my username and password.

    “Login failed : Incorrect administration username or password”

    Why this error is coming can you guide me what is the solution.

Leave a Reply