tis-check_mkagent 1.5.0.3264-2

  • package : tis-check_mkagent
  • version : 1.5.0.3264-2
  • architecture : all
  • locale :
  • description : Agent Check_mk for windows
  • maintainer : Simon Fonteneau
  • date : 2018-08-16 15:57:01
  • 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 13fb474c5c23c135a77aba592eb8821b9ecbcc463f5b7312312b87b20eac6779
WAPT/wapt.psproj e306ae088b4ffc91364d6f53a3933bffa75f4bc4f8a3d6ff422209e90760feb0
check_mk_agent.msi 15328e1292af9f7cf1146233cbc545d2fe31e2cd5e8c45614627c7a1de3526b0
setup.py 1e8484b4081832a29d999fe048d55d296e840ac575ed378d9a5c735570ac63a4
WAPT/control a6025f48250b12670fb8858ee843b2a89720890564fe9accda1f378b359e475a