Differences between revisions 9 and 19 (spanning 10 versions)
Revision 9 as of 2021-03-18 22:16:14
Size: 1011
Comment:
Revision 19 as of 2021-04-07 19:04:06
Size: 2278
Comment:
Deletions are marked like this. Additions are marked like this.
Line 28: Line 28:
Install the agent on the system that should be monitored Install the agent on the system that should be monitored. Let `xinetd` handle it.
Line 30: Line 30:
apt-get install xinetd
Line 40: Line 41:
=== Mariadb ===

Copy the `mk_mysql` plugin into /usr/lib/check_mk_agent/plugins/ and make it executeable
{{{
cd http://checkmk/monitor/check_mk/agents/plugins/mk_mysql
http://checkmk/monitor/check_mk/agents/plugins/mk_mysql
chmod 755 mk_mysql
}}}

Create the file `/etc/check_mk/mysql.cfg` and configure a user for mariadb authentication
{{{
[client]
user=checkmk
password=checkmkpassword
}}}

=== Openwrt ===

Log in to your openwrt device, download the check_mk_agent and make it executeable
{{{
opkg install curl
curl http://checkmk/monitor/check_mk/agents/check_mk_agent.openwrt > /usr/bin/check_mk_agent
chmod +x /usr/bin/check_mk_agent
}}}

Create ssh keys for the checkmk user, and copy the public key to your openwrt device
{{{
su - monitor
ssh-keygen -t rsa
ssh-copy-id root@192.168.1.13
}}}

== DNS Cache ==

Checmk maintains a DNS cache. If a host changes its IP-address, checkmk will not know this. The solution is to update the DNS cache.
{{{
su - monitor
/opt/omd/versions/2.0.0p1.cre/bin/check_mk --update-dns-cache
}}}

Another option is to go to `Setup -> General -> Global settings -> Execution of checks -> Use DNS lookup cache` and disable that feature.

Checkmk

Next generation monitoring.

Software

To get all the dependencies a small helper program is installed.

apt-get install gdebi

Download the checkmk package from the checkmk download page

wget https://download.checkmk.com/checkmk/2.0.0/check-mk-raw-2.0.0_0.buster_amd64.deb
gdebi check-mk-raw-2.0.0_0.buster_amd64.deb

Create a site and start it

omd create monitor
omd start monitor

Checkmk Agent

Install the agent on the system that should be monitored. Let xinetd handle it.

apt-get install xinetd
wget http://checkmk/monitor/check_mk/agents/check-mk-agent_2.0.0-1_all.deb
dpkg -i check-mk-agent_2.0.0-1_all.deb

Apt

Download the APT plugin from the server and place it in /usr/lib/check_mk_agent/plugins. Make sure it is executeable.

chmod 755 /usr/lib/check_mk_agent/plugins/mk_apt

Mariadb

Copy the mk_mysql plugin into /usr/lib/check_mk_agent/plugins/ and make it executeable

cd http://checkmk/monitor/check_mk/agents/plugins/mk_mysql
http://checkmk/monitor/check_mk/agents/plugins/mk_mysql
chmod 755 mk_mysql

Create the file /etc/check_mk/mysql.cfg and configure a user for mariadb authentication

[client]
user=checkmk
password=checkmkpassword

Openwrt

Log in to your openwrt device, download the check_mk_agent and make it executeable

opkg install curl
curl http://checkmk/monitor/check_mk/agents/check_mk_agent.openwrt > /usr/bin/check_mk_agent
chmod +x /usr/bin/check_mk_agent

Create ssh keys for the checkmk user, and copy the public key to your openwrt device

su - monitor
ssh-keygen -t rsa
ssh-copy-id root@192.168.1.13

DNS Cache

Checmk maintains a DNS cache. If a host changes its IP-address, checkmk will not know this. The solution is to update the DNS cache.

su - monitor
/opt/omd/versions/2.0.0p1.cre/bin/check_mk --update-dns-cache

Another option is to go to Setup -> General -> Global settings -> Execution of checks -> Use DNS lookup cache and disable that feature.

References

None: Checkmk (last edited 2021-04-07 19:54:06 by Kristian Kallenberg)