tis-check-mkagent

1.5.0.3264-6
Agent Check_mk for windows. WARNING: Add a rule to open incoming connections on TCP port 6556 WARNING: If left unconfigured, this can generate WMI cpu load
596 downloads
Download

  Description 

  • package : tis-check-mkagent
  • version : 1.5.0.3264-6
  • architecture : all
  • categories :
  • maintainer : Simon Fonteneau
  • description : Agent Check_mk for windows. WARNING: Add a rule to open incoming connections on TCP port 6556 WARNING: If left unconfigured, this can generate WMI cpu load
  • locale :
  • target_os :
  • min_wapt_version :
  • sources :
  • installed_size :
  • impacted_process :
  • description_fr : Agent Check_mk pour windows. ATTENTION: Crée une règle de parefeu pour ouvrir les connections entrantes sur le port TCP 6556
  • description_pl :
  • description_de :
  • description_es :
  • description_pt :
  • description_it :
  • description_nl :
  • description_ru :
  • editor :
  • licence :
  • signature_date : 2020-02-27T21:29:05.078403

  Setup.py 

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

port = '6556'

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

    print('Open firewall for incoming TCP connections on port %s' % port)
    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))

def uninstall():
    if windows_version() < Version('6') :
        #XP
        run('netsh.exe firewall del portopening  port=%s protocol=TCP profile=ALL' % port)
    else:
        run('netsh advfirewall firewall del rule name="check_mkagent %s"' % (port,))


										

  Changelog 



07/12/2018
----------

* ajout procédure uninstall qui enlève ls ouvertures de firewall...
									
  manifest.sha256