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

This commit is contained in:
Emmanuel Garette 2016-09-27 16:46:05 +02:00
parent 33209a8fae
commit 43cdf910f6
7 changed files with 74 additions and 0 deletions

View File

@ -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"))

View File

@ -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
View File

@ -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"))

View File

@ -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"))

View File

@ -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
View File

@ -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"))

View File

@ -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"))