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 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 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 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 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

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  https://localhost/nagios or https://ip/nagios
put your username nagiosadmin and password you have decided now you will be able to access the


Share on Twitter
Share on Facebook




Friday November 27th starts at 9am EST.
While supplies last!