Nagios network monitoring software is a powerful, enterprise-class host, server, application, and network monitoring tools. Designed to be fast, flexible, and rock-solid stable. Nagios runs on.NIX hosts and can monitor Windows, Linux/Unix/BSD, Netware, and network devices. This document describes how to manage hosts and host groups using the Nagios XI Core Config Manager. This document is intended for use by Nagios XI Administrators and assumes the reader has administrator privileges for the Core Config Manager. XI Host Management. Feb 25, 2016 This video shows how to Access and Utilize the CCM (Core Configuration Manager) at a basic level in Nagios XI More Free Downloads Try Nagios XI.
The Raspberry Pi is a small ARM computer that runs a variety of Linux distributions (in this guide we are going to be using the official Raspbian image). So I have a Raspberry Pi and it has spent most of the last year just sitting on my desk in my office not doing anything for me. I figure maybe I should put this little guy to work. The Pi has GPIO pins so I can use a temperature sensor and a humidity sensor to monitor atmosphere in my server closet, but why stop there why not setup Nagios so I can monitor the servers also. In a previous How-to I outlined how to send SMS messages with the Raspberry PI, in this How-to I will outline how to install Nagios on the Raspberry Pi for monitoring servers.
6 Steps total
Step 1: SSH to you Raspberry Pi

SSH to you Raspberry Pi (or open a terminal if you are local on the device)
Step 2: Update your Raspbian install
Run the following command (I am assuming you are logged in as root):
# apt-get update
Wait for the Raspberry Pi to update (you will see a lot of text scrolling on the screen).
Download Nagios Plugin
Step 3: Upgrade your Raspbian install
Run the following command:
# apt-get upgrade
Nagios Xi Download
Wait for the Raspberry Pi to upgrade (more text and more waiting)
Step 4: Install Nagios.
Run the following command:
# apt-get install nagios3
Nagios Core Download
This will install Nagios Core 3.4.1 on your Pi (4.X is the current version but you will need to compile from source to install it, and I am trying to make this as simple for you as possible.)
You will be prompted to enter a password for the web admin user (enter a password).
Step 5: Log into Nagios.
Open a browser and go to http://ip_of_the_raspberry_pi/nagios3
the username is nagiosadmin and the password is whatever you set in step 4.
Step 6: Important file locations on the Raspberry Pi.
/etc/nagios3/commands.cfg
/etc/nagios3/nagios.cfg
/etc/nagios3/conf.d/ (This is the directory with the host configuration files, templates are also in there).
I would recommend reading up on the documentation at:
http://library.nagios.com/library/products/nagioscore/manuals/
References
Nagios Client Download
- Install Nagios on Raspberry Pi
13 Comments
Free Nagios
- Ghost Chilistarg33ker Feb 12, 2014 at 06:16pm
Nice! I never thought about doing this! Thanks for sharing!
- DatilAaron Studer Feb 12, 2014 at 06:39pm
Excellent Write Up! Thank you so much for this guide.
- Ghost ChiliNick42 Feb 13, 2014 at 02:03am
Just keep in mind that compiling it builds it specific to your system, and with the Pi it makes a huge difference. Particularly if you leave out all the modules that are not needed on your system.
Of course, it takes upwards of 2 or 3 hours to build from source. So if you're not the patient type... ;)
- JalapenoDamienGreathouse Feb 13, 2014 at 07:56pm
I may do another guide on setting up Nagios from source, but its a bit more time consuming (not difficult). As for performance using the repository install still doesn't tax the model B. I am using NRPE for most of the monitoring and custom scripts for others. The Raspberry Pi allows me to use a DS18B20 temperature sensor to monitor my server closet.
For a SMB this can be a great solution and extremely low cost. You can put one in your MDF and one in each IDF to monitor conditions (IDF locations dont need Nagios installed they just need to be added to Nagios).
I wouldn't recommend full blownve been searching the internet for a good while now and can't find out how to get Nagios to monitor computers on the network, which is the whole point of installing it on our Raspberry Pi.
- Anaheimfuzzybunnyofdoom Nov 13, 2014 at 03:07am
Ben, I use NSClient on the machines I monitor and it works great. check-nt is the check command you want to fiddle with. Also remember that it requires 5666 which will need to be open on any firewalls in between the pi and the pc you want to monitor.
- SerranoPhil6024 Jan 21, 2015 at 02:46am
I'm new to the Pi, but have done several medium-scale (dozens of servers) nagios deployments. So far, I've been able to avoid using any of the client-side agents and can get what I need from most environments via SNMP. On a Windows server, I typically monitor disk free space, cpu usage, RAM usage, real time clock drift, using a combination of SNMP and custom commands. The advantage is that once you get this under your belt, you can pretty much write something that's operating system independent and avoid the hassle of installing client-side agents and worrying about (in)compatibilities
- Pimientoalinaveed Jan 23, 2015 at 04:29pm
I have been searching for installing Nagios 4 version but was unable to find any article untill i came across this great site which gives you the steps for installing Nagios 4 on rasberrypi http://technology-portal.com/articles/rasberry-pi/raspbian-debian-wheezy/install-nagios-core-latest-version-4-x-x-on-raspbian-rasberrypi.html
- Pimientotugrul Sep 2, 2015 at 08:30am
@alinaveed, the link you gave is broken. Could you please send it again?
- Pimientomattgrant2 Sep 10, 2015 at 05:24pm
Found the new updated link at the following location: http://www.howtovmlinux.com/articles/rasberry-pi/raspbian-debian-wheezy/install-nagios-core-latest-version-4-x-x-on-raspbian-rasberrypi.html
- Pimientojeffmanross Nov 14, 2015 at 03:03pm
Here is a compiled list of stuff found on various site on the net in a step by step for Nagios on the Raspberry Pi.
www.tinginc.com/download/nagios3-on-raspberryPI.txt - Pimientojeffmanross Jun 9, 2016 at 08:21pm
Updated Text file with lots more Pi stuff - Nagios3 / Nconf / Webserver / LCD / GPIO / and more
www.myrelayman.com/download/Basic-WebServer-Initial-Setup.txt - JalapenoBillyBob88 Jul 25, 2016 at 08:32am
What version of the Raspberry Pi did you make this on?