Nagios Installation & Configuration


Nagios is one of the finest availability and monitoring solutions available. The stability, extendibility and cost effectiveness (it is free under the GPL); it is far from being the easiest monitoring solution to implement.
There were 3 version of groundwork:
GroundWork Monitor Enterprise
GroundWork Monitor Professional
GroundWork Monitor Community Edition
We will use The Community Edition. The Community Edition has the following features
1. Easy to install wizard to help optimize the monitoring performance.
2. Availability monitoring to alert if devices is up or not.
3. Ability to monitor servers, devices and applications which gives you the flexibility to monitor all of the integral components within your network.
4. Performance monitoring to give insight on latency before a server is offline
5. Basic auto-discovery and configuration tools to help identify additional devices on the network which is a great time-saving function if your network is constantly changing.
6. Built on the same open-architecture as Groundwork Monitor Professional and Enterprise, Community Edition is easy to integrate and customize.

System Requirements:-


Create Virtual Guest machine for Centos on VMware ESX server & install Centos 5.4. I am not all including Centos installation steps as installation straight forward. But below are the few important steps,
Edit and set IP manually while installation
Disable IPv6 support

Set static IP address to Nagios server
Set hostname to nagios.mytricks.in
Set Gateway, Primary and Secondary DNS





When you come to the software selection options, install the following:
Uncheck Desktop-Gnome
choose "customize now"
Choose these options:

Desktop environment - Gnome
Applications - Editors, text based Internet

Development - Development tools
Servers - Mysql Database, Server Configuration Tools, Web Server
Base System - Administration Tools, Base and System Tools


Install only above required software for Nagios.

After Centos setup, Disable the Firewall and SELinux
Both the firewall and SELinux will interfere with Groundwork, so you must disable them.











Double click on downloaded Groundwork’s Nagios installable, the setup will start. Click on forward to proceed.









Enter your database root user password & click forward.
Click forward to continue the setup.

Groundworks’s Nagios is installed now; you can go to the,
http://192.1.x.x/portal/auth/portal/groundwork-monitor/dashboard/summary You can login using username/password: admin /admin for your first login...





Groundwork’s Nagios Configuration
We wanted to add a new host and on groundwork you can easily do that, just go to configuration -> host wizard fill out this Host details and click next
Select Host template – generic host & click next.

Here, select host group as Windows Server (I have created this host group for windows server) & Select host escalation tree as Host-Escalation-Tree & proceed.
Then select service which you want to monitor & add the same in list, (in my case I am monitoring server memory, CPU, Hard Disk)

Now click on continue to complete the Host Wizard.


Now you can see the added sever in Host list,


Now you have created a new host, now you just need to activate it and you can do it by picking control option on the top list and you can test it by click the Pre Flight Test then if there is no error you can click commit to activate your settings.

Configuring SMTP:

We wanted to configure SMTP server settings on groundwork you can easily do that, just go to configuration --> control Nagios Resource Macros. Select Macro -> USER13 & specify the USER13 value as mail.mytrciks.in

Configuring Contacts:-
We wanted to configure contacts, so that we will receive the Nagios alerts, follow below steps to do that,
  1. To create Contact Group, Go to configuration -> Contacts Contact Group ->Click on NEW & create contacts as show.


  1. Go to configuration -> Contacts Contacts ->Click on NEW contacts, & create contacts as shown below.

Installing Nagios NRPE client on Windows:-
http://prdownloads.sourceforge.net/sourceforge/nagios/nrpe-2.12.tar.gz

Install Nagios NRPE client on windows, after setup go tot the Nagios NRPE directory,
e.g. C:\Program Files\Nagios NRPE Agent\bin
and edit nrpe.cfg as shon below.