├── README.md ├── checkmk-agent-synology_1.6.0p21.spk └── checkmk-agent-synology_2.0.0p1-1.spk /README.md: -------------------------------------------------------------------------------- 1 | # checkmk-agent-synology 2 | **Check_MK Agent for Synology DSM6** 3 | 4 | For those of you that run Check_MK, you may know that the Linux agent *does* run on our Synology's but it's a bit of an adventure getting up and running. 5 | 6 | Thanks to the fine work at **[bachmann-lan.de](https://www.bachmann-lan.de/synology-dsm-6-check_mk-agent-paket/)** and the comment section I have updated the Check_MK linux agent for my Synology running DSM6. I thought I'd share with the community as it was a bit of a process, but now you can enjoy all my labor with a simple .SPK to install. 7 | 8 | I couldn't have and wouldn't have done this without the fine work at bachmann-lan.de, so props should be sent there. :) 9 | 10 | I was inspired to do this because I started running the Check_MK 2.0.0 Beta and needed to update the agent for my Synology. If enough people are interested I'll post updates to the 1.6.0 branch as well so you don't have to translate aus Deutsch. :) 11 | 12 | Installation is easy, on your DSM6 WebUI go to Package Center, click on "Manual Install" and point at the downloaded .SPK file. 13 | 14 | You *may* need to restart the docker service (if you are runnning docker) after installation due to Docker timeouts when the mk_docker plugin tries to fetch data. I tried everything before I gave up and kicked Docker--so you may encounter this as well. 15 | 16 | Also, if, for some reason, you run Entware on your Syno you will have some issues with this as Entware is in this package. The posted workaround in the comment section is as follows (I don't use Entware, so if you do and these instructions do not work let me know so I can remove this section): 17 | 18 | ***Instructions if you have Entware on your Synology*** 19 | 20 | * install entware-ng on synology (follow online instructions) 21 | ``` 22 | opkg install xinetd 23 | ``` 24 | 25 | * unzip latest check_mk package (7z), then inside using tar: package.tgz 26 | ``` 27 | 7z e checkmk-agent-synology_.spk 28 | tar -zxvf package.tgz 29 | 30 | mkdir -p /opt/var/lib/check_mk_agent/cache 31 | mkdir /opt/etc/check_mk/ 32 | mkdir /opt/usr/lib/check_mk_agent/plugins 33 | 34 | cp -p ./opt/etc/xinetd.d/check-mk-agent /opt/etc/xinetd.d/check-mk-agent 35 | cp -p ./opt/usr/lib/check_mk_agent/plugins/* /opt/usr/lib/check_mk_agent/plugins/ 36 | cp -p ./opt/bin/check_mk_agent /opt/bin/check_mk_agent 37 | cp -p ./opt/etc/check_mk/* /opt/etc/check_mk/ 38 | 39 | /opt/etc/init.d/S10xinetd stop 40 | /opt/etc/init.d/S10xinetd start 41 | ``` 42 | 43 | -------------------------------------------------------------------------------- /checkmk-agent-synology_1.6.0p21.spk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ceyounger/checkmk-agent-synology/8038522867c99f0c335244899ef4bec1985358d5/checkmk-agent-synology_1.6.0p21.spk -------------------------------------------------------------------------------- /checkmk-agent-synology_2.0.0p1-1.spk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ceyounger/checkmk-agent-synology/8038522867c99f0c335244899ef4bec1985358d5/checkmk-agent-synology_2.0.0p1-1.spk --------------------------------------------------------------------------------