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
- Delphi and AI[6]: DeepSeek reasoning model (Encoding a multi-line string) January 24, 2025
- How to Use Gestures in Embarcadero Delphi FMX App January 24, 2025
- ITDevCon Spring Edition 2025 January 24, 2025
- ITDevCon 2025 Spring Edition - Call 4 Paper (ITALIANO) January 24, 2025
- Les RDV en ligne après la Global Game Jam de ce week-end January 23, 2025
- The Best Embedded Database For Your Mobile Apps Is Free January 22, 2025
- Lazarus Bugfix Release 3.8 January 22, 2025
- Introducing the New JavaScript SDK for Seamless StellarDS API Integration January 22, 2025
- Server-Side Session Management in DMVCFramework: A Deep Dive into Database Sessions and Community Contributions January 22, 2025
- Legacy Application Modernization Roadmap – Step by Step January 21, 2025
October 31, 2014