ajout des différents fichiers srv (ref #17290 @2h)

Esse commit está contido em:
Emmanuel Garette 2016-09-27 16:46:05 +02:00
commit 43cdf910f6
7 arquivos alterados com 74 adições e 0 exclusões

Ver arquivo

@ -0,0 +1,9 @@
# -*- coding: UTF-8 -*-
"""
Surveillance des services OpenNebula
"""
from zephir.monitor.agents.services import StatusService
AGENTS.append(StatusService('libvirt', {'libvirt-bin' : "Libvirt"}, period=115,
description="Etat du serveur Libvirt"))

Ver arquivo

@ -0,0 +1,9 @@
# -*- coding: UTF-8 -*-
"""
Surveillance des services OpenNebula
"""
from zephir.monitor.agents.services import StatusService
AGENTS.append(StatusService('opennebula', {'opennebula' : "OpenNebula"}, period=115,
description="Etat du serveur OpenNebula"))

9
zephir/srv/32_xmlrpc.srv Normal file
Ver arquivo

@ -0,0 +1,9 @@
# -*- coding: UTF-8 -*-
"""
Surveillance des services OpenNebula
"""
from zephir.monitor.agents.services import TCPServices
AGENTS.append(TCPServices('xmlrpc', {'localhost:2633': "XMLRPC"}, period=115,
description="Etat du serveur XMLRPC"))

Ver arquivo

@ -0,0 +1,12 @@
# -*- coding: UTF-8 -*-
"""
Surveillance des services OpenNebula
"""
from zephir.monitor.agents.services import TCPServices
from zephir.monitor.agentmanager.config import (IP_SUNSTONE,
PORT_SUNSTONE)
test = '{}:{}'.format(IP_SUNSTONE, PORT_SUNSTONE)
AGENTS.append(TCPServices('sunstone', {test : "Sunstone"}, period=115,
description="Etat du serveur Sunstone"))

Ver arquivo

@ -0,0 +1,12 @@
# -*- coding: UTF-8 -*-
"""
Surveillance des services OpenNebula
"""
from zephir.monitor.agents.services import TCPServices
from zephir.monitor.agentmanager.config import (IP_SUNSTONE,
VNC_PROXY_PORT_SUNSTONE)
test = '{}:{}'.format(IP_SUNSTONE, VNC_PROXY_PORT_SUNSTONE)
AGENTS.append(TCPServices('proxyvnc', {test: "Proxy VNC"}, period=115,
description="Etat du serveur Proxy VNC"))

14
zephir/srv/35_oneflow.srv Normal file
Ver arquivo

@ -0,0 +1,14 @@
# -*- coding: UTF-8 -*-
"""
Surveillance des services OpenNebula
"""
from zephir.monitor.agents.services import TCPServices
from zephir.monitor.agentmanager.config import (ACTIVER_ONEFLOW,
IP_ONEFLOW,
PORT_ONEFLOW)
if ACTIVER_ONEFLOW:
test = '{}:{}'.format(IP_ONEFLOW, PORT_ONEFLOW)
AGENTS.append(TCPServices('oneflow', {test: "oneFlow"}, period=115,
description="Etat du serveur oneFlow"))

Ver arquivo

@ -0,0 +1,9 @@
# -*- coding: UTF-8 -*-
"""
Surveillance des services OpenNebula
"""
from zephir.monitor.agents.services import StatusService
AGENTS.append(StatusService('openvswitch', {'openvswitch-switch' : "OpenVswitch"}, period=115,
description="Etat du serveur OpenVswitch"))