eole-one-master/zephir/srv/35_oneflow.srv

15 lines
527 B
Plaintext
Raw Permalink Normal View History

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