tis-check_mkagent 1.4.0.2849-1

  • package : tis-check_mkagent
  • version : 1.4.0.2849-1
  • architecture : all
  • locale :
  • description : Agent Check_mk for windows
  • maintainer : Simon Fonteneau
  • date : 2018-02-27 18:57:41
  • min_wapt_version :
  • min_os_version :
  • max_os_version :
  • impacted_process :

setup.py

# -*- coding: utf-8 -*-
from setuphelpers import *
import socket
uninstallkey = []

def install():
    print('installing tis-check_mkagent')
    install_msi_if_needed('check_mk_agent.msi')

    dnsname = 'nagios'
    port = '6556'


    if windows_version() < Version('6') :
        #XP
        run('netsh.exe firewall add portopening name="check_mkagent" port=%s protocol=TCP profile=ALL' % port)
    else:
        run('netsh advfirewall firewall add rule name="check_mkagent %s" dir=in action=allow protocol=TCP localport=%s ' % (port,port))
"""
        ip_list = []
        ais = socket.getaddrinfo(dnsname,0,0,0,0)
        for result in ais:
          ip_list.append(result[-1][0])
        ip_list = list(set(ip_list))
        for ip in ip_list:
            print 'unlock %s:%s in firewall' % (ip,port)
            run('netsh advfirewall firewall add rule name="check_mkagent %ip " dir=in action=allow protocol=TCP localport=%s remoteip=%s' %(ip,port,ip))
"""
    

Changelog

No changelog
    

manifest.sha256

WAPT/icon.png 307728bfc5cd664c394ffe5c9ada3f30690ee72602edb1fab3954b62da252262
WAPT/certificate.crt 79e5388683c0b6cb03f4f81e4e58e3a11463b2b6cf169dd9c453098027dcfaa4
WAPT/wapt.psproj c5a1697bf6e134989a9870764995725626a8f5055b640e541b569d1a927363fc
check_mk_agent.msi 6221c6154ccb94cff596f5654722bf564744251b63e569532c6b167e032f8132
setup.py 1e8484b4081832a29d999fe048d55d296e840ac575ed378d9a5c735570ac63a4
WAPT/control 69ab993e3ef71ea8672ea1b0c17b900d49bc34468db47a2bdffe4da19fde39a6