Turbostart quideJanuary 17. 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 experiance 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. PreparationsBefore you can setup check_mk on your Nagios server please make sure that you've made the following preparations:
How to install and setup check_mk1. Install check_mkDownload the most recent tarball of check_mk from the projects homepage. Unpack it somewhere. Become root, change to the unpacked directory and run: root@linux# ./setup.sh You can change the installations paths if you want. A a value is autodetected then you can safely assume that it is correct. Changing such a value breaks something. 2. Install the agent on localhostThe 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 3. Setup monitoring for localhostEdit /etc/check_mk/main.mk and add localhost to all_hosts: /etc/check_mk/main.mk all_hosts = [ "localhost" ] 1.1.9i2 Starting with this innovation release the inventory types become mandatory. Use any of tcp,ping,snmp. /etc/check_mk/main.mk all_hosts = [ "localhost|tcp" ] 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# check_mk -I tcp 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# check_mk -O After this Nagios should show the new checks for localhost in its web interface. TroubleshootingIf 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. |
| |||||||||||||||||||||