# Path: collectors/etc/zabbix_bridge_conf.py
# def get_settings():
# 
# 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 os
import re
import sqlite3
import sys
import time
    import pymysql
from collectors.etc import zabbix_bridge_conf
from collectors.lib import utils
#!/usr/bin/env python
#
# Copyright (C) 2014  The tcollector Authors.
#
# This program is free software: you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or (at your
# option) any later version.  This program is distributed in the hope that it
# will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty
# of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser
# General Public License for more details.  You should have received a copy
# of the GNU Lesser General Public License along with this program.  If not,
# see <http://www.gnu.org/licenses/>.
#
# Dump all replication item/metric insert events from a zabbix mysql server
#  to a local sqlite cache (that can also be shared).
#

try:
except ImportError:
    pymysql = None # This is handled gracefully in main()



def main():
    utils.drop_privileges()
    if pymysql is None:

# Path: collectors/etc/zabbix_bridge_conf.py
# def get_settings():
# 
# 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/900/zabbix_bridge_cache.py
import os
import re
import sqlite3
import sys
import time
    import pymysql
from collectors.etc import zabbix_bridge_conf
from collectors.lib import utils

#!/usr/bin/env python
#
# Copyright (C) 2014  The tcollector Authors.
#
# This program is free software: you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or (at your
# option) any later version.  This program is distributed in the hope that it
# will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty
# of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser
# General Public License for more details.  You should have received a copy
# of the GNU Lesser General Public License along with this program.  If not,
# see <http://www.gnu.org/licenses/>.
#
# Dump all replication item/metric insert events from a zabbix mysql server
#  to a local sqlite cache (that can also be shared).
#

try:
except ImportError:
    pymysql = None # This is handled gracefully in main()



def main():
    utils.drop_privileges()
    if pymysql is None:

        utils.err("error: Python module `pymysql' is missing")