Here are the simple steps to install the Check_MK agent on a Red Hat (or CentOS) 6.x Linux server. Replace %checkmkurl% with the address of your Check_MK server.
1. Install xinetd and Add the Agent Service
Save the Check_MK xinetd config file as /tmp/xinetd.conf, then:
yum -y install xinetd
cd /tmp
cp xinetd.conf /etc/xinetd.d/check_mk
2. Download and Install the Agent
wget http://%checkmkurl%/check_mk/agents/check_mk_agent.linux
cp check_mk_agent.linux check_mk_agent
chmod 776 check_mk_agent
cp /tmp/check_mk_agent /usr/bin/check_mk_agent
3. Add the Inventory Plugin
mkdir /usr/lib/check_mk_agent
mkdir /usr/lib/check_mk_agent/plugins
cd /usr/lib/check_mk_agent/plugins
wget http://%checkmkurl%/check_mk/agents/plugins/mk_inventory.linux
cp mk_inventory.linux mk_inventory.sh
chmod 776 mk_inventory.sh
4. Restart xinetd
/etc/init.d/xinetd restart
Running Debian? See installing the Check_MK agent on Debian Linux.
