# 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 time
import sys
import copy
    import simplejson as json
    import json
from collectors.lib import utils
    from pyjolokia import Jolokia, JolokiaError
    from collectors.etc import jolokia_conf
#!/usr/bin/env python
# This file is part of tcollector.
# Copyright (C) 2013 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/>.

"""
# Script to use with tcollector and OpenTSDB
# to grab metrics from a java process using
# jolokia.
#
# Requires pyjolokia > 0.3.1
"""

try:
except ImportError:


try:
except ImportError:

# 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/jolokia.py
import time
import sys
import copy
    import simplejson as json
    import json
from collectors.lib import utils
    from pyjolokia import Jolokia, JolokiaError
    from collectors.etc import jolokia_conf

#!/usr/bin/env python
# This file is part of tcollector.
# Copyright (C) 2013 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/>.

"""
# Script to use with tcollector and OpenTSDB
# to grab metrics from a java process using
# jolokia.
#
# Requires pyjolokia > 0.3.1
"""

try:
except ImportError:


try:
except ImportError:

    utils.err('requires pyjolokia python module > 0.3.1')