Monitoring with OMD (with Nagios Core) on Debian 7 Wheezy
As Centreon (my favourite monitoring tool with nagios core) still does not support PHP 5.4+ and my boxes are now on Debian 7 (with PHP 5.4) and I didn’t want to downgrade to PHP 5.3 (for various reasons), I’ve searched for an alternative frontend for nagios. Well, I’ve found a lot but only to mention a few here: Nagios XI (free for small environments => max. 7 hosts, oh come on, with vms on the run, really way too few), Adagios (looks nice and clean) and finally OMD which got me with its easy setup on debian 7.
I. Server setup
Let’s go:
1. Debian 7 minimal installation.
2. First step is to import the gpg key for the OMD repository. This step has to be done only once.
1 2 3 4 5 |
gpg --keyserver keys.gnupg.net --recv-keys F8C1CA08A57B9ED7 gpg --armor --export F8C1CA08A57B9ED7 | apt-key add - |
3. Add the repository to your sources list:
1 2 3 4 5 |
echo 'deb http://labs.consol.de/repo/stable/debian wheezy main' >> /etc/apt/sources.list apt-get update |
Check the OMD package with
1 2 3 4 |
apt-cache search omd |
You’ll see something like this:
1 2 3 4 5 6 |
.. omd - Open Source Monitoring Distribution omd-1.10 - Open Source Monitoring Distribution, containing Nagios, |
4. Install OMD
1 2 3 4 |
apt-get install omd |
5. Choose a MySQL root password
6. Add a site to OMD
1 2 3 4 |
omd create mysite |
7. Start OMD
1 2 3 4 |
omd start |
check the web frontend http://myhost/mysite
The default web user is omdadmin
with password omd
8. Choose your favourite GUI (CHECK_MK recommended), you may set this one as standard (see welcome page bottom)
II. Agent setup
In order to use the new check_mk agent on your monitored hosts you’ll need to
1. Install agent packages on your monitored host
1 2 3 4 |
apt-get install xinetd check-mk-agent check-mk-agent-logwatch |
2. Enable xinetd configuration:
1 2 3 4 |
nano /etc/xinetd.d/check_mk |
add your monitor server ip address to only_from
and enable the check by setting disable = no
3. Restart xinetd
1 2 3 4 |
/etc/init.d/xinetd restart |
Now you’re able to add the services from your monitored host.
4 Comments to Monitoring with OMD (with Nagios Core) on Debian 7 Wheezy
Hi there!
Great and simple tutorial, thanks!
Does nagios-core need to be installed before?
November 4, 2014
No, this is a tutorial starting with a clean Debian 7 minimal installation 😉
January 21, 2015
Thanks Dennis, followed to a T (wiped partions and started over) and it works.
Now just need to know how to use it for a home network data usage monitoring station. 🙂
January 21, 2015
Want to find out who’s being a hog.
Leave a comment
About Dennis D. Spreen
Search
Recent Posts
- How to compile Lua 5.4.0 for Android as a dynamic library using Android Studio 4
- Please make inline vars usable for production – fix RSP-28892
- How to compile Lua 5.4.0 as a Mac OS X dynamic library
- How to compile Lua 5.4.0 for Linux as a shared library
- How to compile Lua 5.4.0 for Windows
- Daily Wage – a Spigot/Bukkit plugin that pays out a daily wage
- How to compile Lua 5.3.5 for Windows
- Better Collada exporter for Blender with custom properties
- MOS6502-delphi – a MOS 6502 CPU emulator for Delphi
- Pass a multidimensional array as a parameter (with a hidden caveat)
Categories
Tags
Archives
- May 2020
- March 2020
- June 2019
- March 2017
- August 2016
- July 2016
- June 2016
- January 2016
- September 2015
- February 2015
- January 2015
- October 2014
- September 2014
- August 2014
- May 2014
- March 2014
- February 2014
- November 2011
- June 2011
- February 2011
- March 2010
- September 2009
- August 2009
- July 2009
- May 2009
- March 2009
- February 2009
- January 2009
- November 2008
- October 2008
- February 2008
- June 2007
Delphi Feeds
- February updates! February 21, 2025
- New Features and Enhancements in .NET Core 3.1 February 21, 2025
- TTMSFNCDataSetFilterDialog: Effortless SQL-Based Filtering for Your Delphi DataSets February 20, 2025
- TeeChart Visualisation in Mesics’ Lactate Diagnostics February 20, 2025
- Teaser: Visuino Live Q&A - Feb 22, 2025 11AM Pacific Time February 20, 2025
- Integrate StellarDS in your TypeScript projects with our latest SDK February 19, 2025
- Code52/carnac: A utility to give some insight into how you use your keyboard (on Windows systems) February 18, 2025
- Delphi 30th Anniversary “Innovation Timeline” Update Published. Get Your Free PDF Now! February 16, 2025
- Delphi Tip of the Day: FMX FastReport Text Object (TfrxMemoView) February 16, 2025
- Join Us in Nederlands for a Coffee and More February 15, 2025
October 31, 2014