Skip to content

Instantly share code, notes, and snippets.

@Ham5ter
Last active April 23, 2021 03:44
Show Gist options
  • Save Ham5ter/2a8526e843c72ff9343bc3a38cdac97e to your computer and use it in GitHub Desktop.
Save Ham5ter/2a8526e843c72ff9343bc3a38cdac97e 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