From 43cdf910f674f3f4b18feabd0c4c6dcf1a51a7f7 Mon Sep 17 00:00:00 2001 From: Garette Emmanuel Date: Tue, 27 Sep 2016 16:46:05 +0200 Subject: [PATCH] =?UTF-8?q?ajout=20des=20diff=C3=A9rents=20fichiers=20srv?= =?UTF-8?q?=20(ref=20#17290=20@2h)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- zephir/srv/30_libvirt.srv | 9 +++++++++ zephir/srv/31_opennebula.srv | 9 +++++++++ zephir/srv/32_xmlrpc.srv | 9 +++++++++ zephir/srv/33_sunstone.srv | 12 ++++++++++++ zephir/srv/34_proxyvnc.srv | 12 ++++++++++++ zephir/srv/35_oneflow.srv | 14 ++++++++++++++ zephir/srv/36_openvswitch.srv | 9 +++++++++ 7 files changed, 74 insertions(+) create mode 100644 zephir/srv/30_libvirt.srv create mode 100644 zephir/srv/31_opennebula.srv create mode 100644 zephir/srv/32_xmlrpc.srv create mode 100644 zephir/srv/33_sunstone.srv create mode 100644 zephir/srv/34_proxyvnc.srv create mode 100644 zephir/srv/35_oneflow.srv create mode 100644 zephir/srv/36_openvswitch.srv diff --git a/zephir/srv/30_libvirt.srv b/zephir/srv/30_libvirt.srv new file mode 100644 index 0000000..291eb0d --- /dev/null +++ b/zephir/srv/30_libvirt.srv @@ -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")) diff --git a/zephir/srv/31_opennebula.srv b/zephir/srv/31_opennebula.srv new file mode 100644 index 0000000..234cef5 --- /dev/null +++ b/zephir/srv/31_opennebula.srv @@ -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")) diff --git a/zephir/srv/32_xmlrpc.srv b/zephir/srv/32_xmlrpc.srv new file mode 100644 index 0000000..fd94cb0 --- /dev/null +++ b/zephir/srv/32_xmlrpc.srv @@ -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")) diff --git a/zephir/srv/33_sunstone.srv b/zephir/srv/33_sunstone.srv new file mode 100644 index 0000000..8d9340b --- /dev/null +++ b/zephir/srv/33_sunstone.srv @@ -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")) diff --git a/zephir/srv/34_proxyvnc.srv b/zephir/srv/34_proxyvnc.srv new file mode 100644 index 0000000..daa9ba2 --- /dev/null +++ b/zephir/srv/34_proxyvnc.srv @@ -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")) diff --git a/zephir/srv/35_oneflow.srv b/zephir/srv/35_oneflow.srv new file mode 100644 index 0000000..d61d55c --- /dev/null +++ b/zephir/srv/35_oneflow.srv @@ -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")) diff --git a/zephir/srv/36_openvswitch.srv b/zephir/srv/36_openvswitch.srv new file mode 100644 index 0000000..fa29943 --- /dev/null +++ b/zephir/srv/36_openvswitch.srv @@ -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"))