# Path: networking_vsphere/_i18n.py
# _LE = _translators.log_error
# 
# _LI = _translators.log_info


import logging
import os
import signal
import subprocess
import sys
import time
from networking_vsphere._i18n import _LE, _LI
from neutron.common import config as common_config
            f = open(LOG_FILE_PATH)
            for line in f:
                pass
            status = line
            sf = open(JSON_FILE_PATH, 'w')
            if 'broken' in status or 'pending' in status:
                sf.write('{"ovs": "BAD"}')
            else:
                sf.write('{"ovs": "OK"}')
            sf.close()
            f.close()
            time.sleep(2)
    except Exception as e:
        LOG.exception(_LE("Error in start_monitor method %(err)s."),
                      {'err': e})


def main():

    signal.signal(signal.SIGTERM, stop)
    signal.signal(signal.SIGINT, stop)
    common_config.setup_logging()
    FORMAT = '%(asctime)-15s %(message)s'
    logging.basicConfig(format=FORMAT,
                        filename=LOG_FILE_PATH,
                        level=logging.DEBUG)
    try:
        LOG.info(_LI("Starting ovsvapp-agent-monitor."))
        start_monitor()
    except Exception as e:

# Path: networking_vsphere/_i18n.py
# _LE = _translators.log_error
# 
# _LI = _translators.log_info


# Path: networking_vsphere/monitor/monitor.py
import logging
import os
import signal
import subprocess
import sys
import time
from networking_vsphere._i18n import _LE, _LI
from neutron.common import config as common_config

            f = open(LOG_FILE_PATH)
            for line in f:
                pass
            status = line
            sf = open(JSON_FILE_PATH, 'w')
            if 'broken' in status or 'pending' in status:
                sf.write('{"ovs": "BAD"}')
            else:
                sf.write('{"ovs": "OK"}')
            sf.close()
            f.close()
            time.sleep(2)
    except Exception as e:
        LOG.exception(_LE("Error in start_monitor method %(err)s."),
                      {'err': e})


def main():

    signal.signal(signal.SIGTERM, stop)
    signal.signal(signal.SIGINT, stop)
    common_config.setup_logging()
    FORMAT = '%(asctime)-15s %(message)s'
    logging.basicConfig(format=FORMAT,
                        filename=LOG_FILE_PATH,
                        level=logging.DEBUG)
    try:
        LOG.info(_LI("Starting ovsvapp-agent-monitor."))
        start_monitor()
    except Exception as e:

        LOG.exception(_LE("Failed to start ovsvapp-agent-monitor "