Quick Manual Installation Guide
Letzte Aktualisierung: 17. Januar 2011
Today, the fastest way of a Nagios install is using OMD. If you rather want to build the most current version of check_mk, read on.
This guide assumes that you have experience with Nagios und Linux and that you are impatient (like me sometimes). It doesn't explain why something is done and does not give examples. Please read the article Getting Started if you need a more detailed introduction.
Before you can setup check_mk on your Nagios server please make sure that you've made the following preparations:
2. How to install and setup check_mk
2.1. 1. Install check_mk
Download the most recent tarball of check_mk from the projects homepage. Unpack it somewhere. Become root, change to the unpacked directory and run:
2.2. 2. Install the agent on localhost
The agent is setup by installing it as service for xinetd. Assuming the default installation paths this is done with the following commands:
root@linux# cd /usr/share/check_mk/agents root@linux# cp check_mk_agent.linux /usr/bin/check_mk_agent root@linux# cp xinetd.conf /etc/xinetd.d/check_mk root@linux# /etc/init.d/xinetd restart
2.3. 3. Setup monitoring for localhost
Edit /etc/check_mk/main.mk and add localhost to all_hosts:
all_hosts = [ "localhost" ]
After that remove localhost from your Nagios configuration if present. Otherwise Nagios won't start because of a duplicate host entry.
Now you can inventorize your new host. This will detect a couple of checks and automatically configure them:
root@linux# cmk -I
After that you can call check_mk with the option -O. That will create Nagios configuration files for check_mk's hosts and services, create precompiled host checks and reload Nagios.
root@linux# cmk -O
After this Nagios should show the new checks for localhost in its web interface.
If something goes wrong, please check:
You might also want to have a look into the article "Getting Started", which is more detailed than this one.