]> ###2022.09.10 - Bumped checkmk_agent to v2.1.0p11 ###2022.09.01 - Bumped checkmk_agent to v2.1.0p9 ###2021.06.10a - Bumped checkmk_agent to v2.0.0p5 ###2021.06.10 - Initial release based on checkmk_agent v1.5.0p25 rm -f $(ls &plugin;/packages/&name;*.tgz 2>/dev/null|grep -v '&version;') rm -f $(ls &plugin;/packages/*.txz 2>/dev/null|grep -v '&xinetd;') &gitURL;/packages/&name;-&version;.tgz &md5; &gitURL;/packages/&xinetd;.txz &xinetdmd5; **Checkmk-Agent** Monitors local services and reports any issues to the Checkmk server. The agents are passive and connect to TCP Port 6556. Only on receiving a Checkmk server query will they be activated and respond with the required data. To install plugins place them in '/boot/config/plugins/check_mk_agent/plugins' To use encryption edit the file '/boot/config/plugins/check_mk_agent/encryption.cfg' #Download icon if [ ! -f "&plugin;/checkmk.png" ]; then wget -q -nc --show-progress --progress=bar:force:noscroll -O "&plugin;/&name;.png" "https://raw.githubusercontent.com/ich777/docker-templates/master/ich777/images/checkmk.png" fi #Create plugins directory and link directories if [ ! -d "&plugin;/plugins" ]; then mkdir -p &plugin;/plugins ln -s /boot/config/plugins/check_mk_agent/plugins /usr/lib/check_mk_agent/plugins else ln -s /boot/config/plugins/check_mk_agent/plugins /usr/lib/check_mk_agent/plugins fi #Create encryption file and link file if [ ! -f "&plugin;/encryption.cfg" ]; then echo "ENCRYPTED=no PASSPHRASE='YOURPASSPHRASE'" > &plugin;/encryption.cfg chmod 600 &plugin;/encryption.cfg ln -s &plugin;/encryption.cfg /etc/check_mk/encryption.cfg else chmod 600 &plugin;/encryption.cfg ln -s &plugin;/encryption.cfg /etc/check_mk/encryption.cfg fi #Install icon if [ ! -f "&emhttp;/images/&name;.png" ]; then if [ ! -d "&emhttp;/images" ]; then mkdir -p &emhttp;/images fi cp &plugin;/&name;.png &emhttp;/images/ fi #Start xinetd if [ -z "$(pidof xinetd)" ]; then xinetd fi echo "----------------------------------------" echo "-------Uninstalling Checkmk-Agent-------" echo "----------------------------------------" # Kill xinetd and remove plugin related files kill $(pidof xinetd) > /dev/null 2>&1 removepkg &name;-&version;.tgz removepkg &xinetd;.tgz rm -rf &plugin; rm -rf &emhttp; echo echo "----------------------------------------------------------" echo "---------------Checkmk-Agent uninstalled!-----------------" echo "----------------------------------------------------------" echo