mikee01
18
Services in Check_MK of GL-AR300M with Monitoring by check_MK over ssh:
Quick and dirty howto
:
- Install Check_MK-Server Basic information on the installation of Checkmk
- Generate a ssh key of the user, that runs the check_MK server
i.e.: ssh-keygen -t rsa -b 4096 (no password needed)
- Copy the public key to the g-inet router
i.e.: ssh-copy-id -i id-rsa.pub root@ip-of-gl-inet-router
- log into gl-inet-router via ssh and copy ssh authorized_keys file to dropbear etc directory
i.e.: cat /root/.ssh/authorized_keys >> /etc/dropbear/authorized_keys
- log in to check_MK server and try ssh connection with user of check_MK server process
i.e.: ssh -i /opt/omd/sites/cmksite/.ssh/id_rsa root@ip-of-gl-inet-router
- get into the web interface of check_MK server and create a rule for check via ssh:
- finally log into gl-inet router by ssh as root and create a file in /usr/bin/ and make it executable:
vi /usr/bin/check_mk_agent.openwrt
chmod 755 /usr/bin/check_mk_agent.openwrt
- insert the script in the file check_mk/check_mk_agent.openwrt at master · ypid-bot/check_mk · GitHub
- inventarize the host (gl-inet router) in check_MK and reload the config.
4 Likes