Browse Source

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

tags/pkg/dev/eole-2.7.0/0.0.1-0
Emmanuel Garette 2 years ago
parent
commit
43cdf910f6

+ 9
- 0
zephir/srv/30_libvirt.srv View File

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

+ 9
- 0
zephir/srv/31_opennebula.srv View File

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

+ 9
- 0
zephir/srv/32_xmlrpc.srv View File

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

+ 12
- 0
zephir/srv/33_sunstone.srv View File

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

+ 12
- 0
zephir/srv/34_proxyvnc.srv View File

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

+ 14
- 0
zephir/srv/35_oneflow.srv View File

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

+ 9
- 0
zephir/srv/36_openvswitch.srv View File

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

Loading…
Cancel
Save