Skip to content

Instantly share code, notes, and snippets.

@imweijh
Forked from Ham5ter/install_check_mk_agent.bat
Created April 23, 2021 03:44
Show Gist options
  • Save imweijh/ff6efd607d39cd723723077143d0fe87 to your computer and use it in GitHub Desktop.
Save imweijh/ff6efd607d39cd723723077143d0fe87 to your computer and use it in GitHub Desktop.
This Script install the check-mk-agent and adds a Firewall Rule to the local Windows Firewall to allow Access to it!
::
:: This Script install the check-mk-agent and adds a Firewall Rule to the local Windows Firewall to allow Access to it!
:: https://gist.github.com/Ham5ter/2a8526e843c72ff9343bc3a38cdac97e
::
:: Allow ICMP Echo (Ping)
netsh advfirewall firewall delete rule name="ICMP Allow incoming V4 echo request"
netsh advfirewall firewall add rule name="ICMP Allow incoming V4 echo request" protocol=icmpv4:8,any dir=in action=allow
:: Allow TCP Port 6556 (check-mk-agent)
netsh advfirewall firewall delete rule name="CheckMK" dir=in protocol=TCP localport=6556
netsh advfirewall firewall add rule name="CheckMK" dir=in action=allow protocol=TCP localport=6556
:: Install the check-mk-agent from the "check_mk_agent.msi" without interaction
msiexec.exe /i check_mk_agent.msi /quiet /qn /norestart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment