# -*- coding: UTF-8 -*-
"""
Surveillance du service Squid (deuxième instance)
"""
from zephir.monitor.agentmanager.config import ACTIVER_SQUID2, \
                                               PROXY2_PORT, \
                                               CONTAINER_IP_PROXY, \
                                               ACTIVER_SQUID_AUTH


if ACTIVER_SQUID_AUTH and ACTIVER_SQUID2:
    squid2_port = PROXY2_PORT
    desc = 'Proxy et cache web (Squid instance 2)'
    from zephir.monitor.agents.services import TCPServices
    AGENTS.append(TCPServices('squid2', {'localhost:%s' % squid2_port:desc},
                                           period=115,
                                           container_ip=CONTAINER_IP_PROXY,
                                           description=desc))
