-
-
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 file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:: | |
:: 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