How to install Nagios?

Nagios is a popular open source network monitoring application. It’s mainly used to monitor services

On the server. Steps to configure nagios on Linux Machine:-

For Configuring Nagios, download nagios core and nagios plugins from nagios.org site.

  1. Initially create users and groups.

#useradd nagios
# passwd nagios
#groupadd nagcmd
#usermod -G nagcmd nagios
# usermod -G nagcmd apache

 

  1. Create a folder name called Downloads in /home/downloads where we have to

configure nagios core and nagios plugins from nagios.org website.

 

  1. select nagios core == nagios-3.2.3.tar.gz

    In the /home/Download folder  execute  the following command:-

    wget Nagios – Browse Files at SourceForge.net 3.2.3/nagios-3.2.3.tar.gz/download

    tar -zxvf nagios-3.2.3.tar.gz

    Then again in /home/download go in the below folder, execute  the  command
    as following and that should allow nagios core plugin to be installed.

    cd nagios-3.2.3

    ./configure –with-command-group=nagcmd

    #make all; make install; make install-init; make install-config; make install-commandmode; make install-webconf

 

  1. Create a nagiosadmin account for logging into the Nagios web interface & assign it to login.

    htpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadmin

    enter password

  2. Restart the httpd server :

    #Service httpd restart

 

  1. Go to nagios.org site , select nagios plugins == nagios-plugins-1.4.15.tar.gz

 

And download it in  /home/downloads folder.

 

cd /home/downloads

wget Download Nagios Plugin Development from SourceForge.net

tar -zxvf nagios-plugins-1.4.15.tar.gz

cd nagios-plugins-1.4.15

./configure –with-nagios-user=nagios –with-nagios-group=nagios

make; make install

 

g.     Now you have to add nagios to Chkconfig

#chkconfig –add nagios

#chkconfig nagios on

h. Verify if you have a good config of nagios with the command

/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg

i. Check if there are no errors displayed; then start nagios with command:

#service nagios start

To simplify the procedure please disable the selinux and iptables and ip6tables.

In your browser type In  http://localhost/nagios or http://ip/nagios
put your username nagiosadmin and password you have decided now you will be able to access the

Nagios

  • 1 användare blev hjälpta av detta svar
Hjälpte svaret dig?

Relaterade artiklar

Can I use my domain name or must I use my IP address as the hostname for FTP?

Using your IP address (192.168.22.22  is an example IP address) is the preferred entry for...

Can you transfer my sites from my current host to my new VPS?

Yes. We will transfer all of your sites free* of charge and will assure that you experience no or...

Do you allow MP3 files? Do you allow streaming of videos?

Yes we do with our special plans at http://hostripples.in/avs-hosting.php

Do you support Cold Fusion?

We do not support or Cold Fusion on our shared hosting servers, however you are more than welcome...