# Path: collectors/lib/utils.py
# PY3 = sys.version_info[0] > 2
# USER = "nobody"
# def drop_privileges(user=USER):
# def is_sockfile(path):
# def err(msg):
#     def is_numeric(value):
#     def is_numeric(value):


import socket
import os
import sys
import time
from collectors.lib import utils
    from _thread import *
    from thread import *
    from collectors.etc import tcp_bridge_conf

from __future__ import print_function


try:
except ImportError:

try:
except ImportError:
    print('unable to import tcp_bridge_conf', file=sys.stderr)
    tcp_bridge_conf = None

HOST = '127.0.0.1'
PORT = 4243

# metrics
m_namespace = 'tcollector.tcp_bridge.'
m_lines = 0
m_connections = 0
m_delay = 15
m_last = 0
m_ptime = 0

# buffered stdout seems to break metrics
out = os.fdopen(sys.stdout.fileno(), 'w', 0)

def main():
    if not (tcp_bridge_conf and tcp_bridge_conf.enabled()):
        print('not enabled, or tcp_bridge_conf unavilable', file=sys.stderr)
        sys.exit(13)

# Path: collectors/lib/utils.py
# PY3 = sys.version_info[0] > 2
# USER = "nobody"
# def drop_privileges(user=USER):
# def is_sockfile(path):
# def err(msg):
#     def is_numeric(value):
#     def is_numeric(value):


# Path: collectors/0/tcp_bridge.py
import socket
import os
import sys
import time
from collectors.lib import utils
    from _thread import *
    from thread import *
    from collectors.etc import tcp_bridge_conf


from __future__ import print_function


try:
except ImportError:

try:
except ImportError:
    print('unable to import tcp_bridge_conf', file=sys.stderr)
    tcp_bridge_conf = None

HOST = '127.0.0.1'
PORT = 4243

# metrics
m_namespace = 'tcollector.tcp_bridge.'
m_lines = 0
m_connections = 0
m_delay = 15
m_last = 0
m_ptime = 0

# buffered stdout seems to break metrics
out = os.fdopen(sys.stdout.fileno(), 'w', 0)

def main():
    if not (tcp_bridge_conf and tcp_bridge_conf.enabled()):
        print('not enabled, or tcp_bridge_conf unavilable', file=sys.stderr)
        sys.exit(13)

    utils.drop_privileges()