mkdir -p /opt/bin
curl "http://git.mathias-kettner.de/git/?p=check_mk.git;a=blob_plain;f=agents/check_mk_agent.freebsd;hb=HEAD" -o /opt/bin/check_mk_agent
chmod +x /opt/bin/check_mk_agent
pkg install libstatgrab bash
check_mk stream tcp nowait root /opt/bin/check_mk_agent check_mk_agent
check_mk 6556/tcp #check_mk agent
# Allow nagios server to access uscheck_mk_agent : monitoring.server.ip.address : allowcheck_mk_agent : ALL : deny
/etc/rc.d/inetd onestart
ssh-keygen -b 4096 -t rsa && chown check_mk-user * && chmod 400 *
command="bash /opt/bin/check_mk_agent.freebsd"
# ssh -v -p 22 -l opnsense-check_mk -i /etc/check_mk/check_mk 10.10.10.1
datasource_programs = [ ( "ssh -p 22 -i /etc/check_mk/check_mk -l opnsense-check_mk 10.10.10.1 check_mk_agent", [ 'opnsense' ] ),]
To Do: Make it start on boot, investigate a potential plugin to make it survive (major?) upgrades
inetd_enable="YES"
2. Download the agent:Code: [Select]curl "http://git.mathias-kettner.de/git/?p=check_mk.git;a=blob_plain;f=agents/check_mk_agent.freebsd;hb=HEAD" -o /opt/bin/check_mk_agent
just tried to setup up check_mk_agent but it is not working.Check_mk reports by full scan the following error:Agent output is encrypted but encryption is disabled by configuration
2. the is no rc.conf file in my /etc folderI was using the instruction from the first postAre there any hints for me?I'm runing 21.1.2
fetch -o /usr/local/etc/rc.syshook.d/start/99-checkmk_agent https://github.com/bashclub/check-opnsense/raw/main/opnsense_checkmk_agent.pychmod +x /usr/local/etc/rc.syshook.d/start/99-checkmk_agent/usr/local/etc/rc.syshook.d/start/99-checkmk_agent