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