Installing Nagios on Ubuntu 9.04
Nagios is one of the many open source network monitoring applications. You would be amazed at how many out there depend on this application to keep them up to date on the health of their network. But is it just for large, complicated companies? No, not at all. I use it on my home network along with my family computers. Today, I’ll show you the first steps in making Nagios work.
So let me begin by saying that there’s two ways to setup Nagios. First we have the super simple easy method we all know and love called Aptitude, and then there is compiling from source. I’ll be covering both! This way you can see the differences between the two. Wouldn’t it be nice to see how much apt-get or aptitude saves you so much time??
Now, with that being said. When compiling from source you do have to have a better understanding of what it is that you are doing. Otherwise you are likely to break something that you may not be able to fix on your own. So just know that before jumping into the saddle.
This guide is based off of the Nagios documentation located on their website. And let me just say, Nagios is extremely well documented. I am writing this because the document they wrote was originally for Ubuntu 6.10 – 7.10. Although very similar, some things were different when I installed Nagios on Ubuntu 9.04.
Now, you must choose.
- Packaged Install (starts om page 2)
- …or
- Install from Source Code (starts on page 3)


















thx for this tutorial, it was a great help for me !!!
Thank you for all your Support. It’s greatly appreciated.
I have to monitor some Irds (Decoders)and ip probes via snmp (MIB) with nagios and cacti :after the installation the first problem is nmap2nagios for net discovering.Anyway if i’ve a few devices how i can add them to the monitored net (now all i can monitor is local host)
thanks for your guide
I am interested to install a nagios on my laptop but i am confused that which method i will following.
if method one (aptitude) then how can install apache2,php5 and Gd.
similarly with method 2.
The beautiful thing about installing from aptitude is that it handles dependencies very well. In essence, if you install nagios via aptitude, apt will check too see what packages you already have, and what packages you need and will automatically install them.
You can simply follow the steps in the guide and end up with a fully working nagios. :)
Thank you very much for this guide!!
Thanks for this guide, it has been a while since I have touched linux, now its time to see if i can get some plugins working to monitor some switch’s!
I found the compile guide much better then installing it via aptitude.