How do i install Nagios on Ubuntu

0 votes
How do i install Nagios on Ubuntu?
Feb 26, 2019 in DevOps Tools by Kiran
748 views

1 answer to this question.

0 votes

 Hey @Kiran, installing Nagios requires you to have apache and php installed. 

let's start with installing apache

sudo apt update
sudo apt install apache2

Install PHP

sudo apt install php php-cgi libapache2-mod-php php-common php-pear php-mbstring

Install nagios Server packages

sudo apt install nagios3 nagios-plugins-basic

The above command will prompt you to create a password for your Nagios account

Configure Nagios server

Go to sudo nano /etc/nagios3/nagios.cfg and make the following changes

# EXTERNAL COMMAND OPTION
# This option allows you to specify whether or not Nagios should check
# for external commands (in the command file defined below).  By default
# Nagios will *not* check for external commands, just to be on the
# cautious side.  If you want to be able to use the CGI command interface
# you will have to enable this.
# Values: 0 = disable commands, 1 = enable commands

check_external_commands=1

Open Nagios apache config file and limit the access from the localhost and local subnet

sudo nano /etc/nagios3/apache2.conf

Adjust Nagios folder permission

sudo chgrp -R www-data /var/lib/nagios3 
chmod 750 /var/lib/nagios3/rw

Restart Nagios and Apache

sudo systemctl restart nagios3.service
sudo systemctl restart apache2.service

Open browser with server hostname or IP address

https://localhost/server-ip

It'll prompt for username and password

Username- nagiosadmin

Password - Whatever you've created

answered Feb 27, 2019 by Riya

Related Questions In DevOps Tools

0 votes
1 answer

How do I install saltstack on Ubuntu?

Hey @Nishu, follow these steps to install ...READ MORE

answered Feb 26, 2019 in DevOps Tools by Harsha
4,221 views
0 votes
1 answer

How do I install Splunk on Windows?

Hi haseeb, you can install Splunk Enterprise ...READ MORE

answered Feb 28, 2019 in DevOps Tools by Kalgi
922 views
+2 votes
0 answers

How do I install Maven on CentOS?

I went through below menetioned tutorial https://www.edureka.co/community/38761/how-do-i-install-maven-on-centos but somehow ...READ MORE

Dec 27, 2019 in DevOps Tools by Manoj
• 140 points
477 views
0 votes
1 answer
0 votes
2 answers
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
3,460 views
0 votes
1 answer

How do i install splunk on ubuntu?

Hey @Dipti, follow these steps to install ...READ MORE

answered Feb 27, 2019 in DevOps Tools by Kalgi
684 views
0 votes
1 answer

How to install Nagios on CentOS?

Follow these steps: Install the required packages yum install ...READ MORE

answered Feb 27, 2019 in DevOps Tools by Avinash
703 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP