Installing Nagios XI on CentOS 7

Installing Nagios XI on CentOS 7

First things first, why CentOS 7 instead of 6? Well, CentOS 6 has issues with Python updating because of yum. Yes, you can install a separate instance, but it’s not fun and it can break down the road. Second, why not use the OVA provided by Nagios? As of September 2017, the version of Python on the OVA is ancient — 2.6.6. And because yum is tied to it, you can’t update it or you need to install a separate instance. Yuck! Just do yourself a favor and use CentOS 7 instead. 😉 Last but not least, it is super easy to do!Download the latest version of CentOS. We are going to use the minimal ISO.

Follow the prompts to install minimal CentOS 7. If you are installing virtually, I would recommend 2 CPUs, 2GB of RAM, and 50GB of hard disk (thin provisioned is fine).

After the install completes, run the command below to ensure you are on the latest packages as well.

# yum update

While there, also install the net-tools and mlocate packages… You’ll thank me later!

# yum install net-tools mlocate

If you are installing on ESXi/VMWare as a virtual machine, go ahead and add the VM tools as well.

# yum install open-vm-tools

At this point, a reboot is probably a good idea if you haven’t already. If you install the VM tools, a reboot is necessary before info will show up in ESXi/VMWare.

Next, go ahead and install Nagios XI using the command below.

curl | sh

If that doesn’t work, follow the guide at the link below instead.

Now just login via using your web browser of choice using the IP address shown on the screen, e.g.

Follow the onscreen commands and you are good to go… But wait!

So you think you’re done because you can login? Wrong! You should always access your Nagios console via HTTPS instead of HTTP. The problem is the Nagios XI installer doesn’t open up 443/HTTPS by default. No big deal, a couple of commands below and we are good to go.

# firewall-cmd --add-service=https
# firewall-cmd --permanent --add-service=https

Leave a Reply

Your email address will not be published.