# 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 socket
import subprocess
import sys
import time
import errno
from collectors.lib import utils
  from collectors.etc import ntpstat_conf
# 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/>.
"""ntp offset stats for TSDB """
#
# ntpstat.py
#
# ntp.offset             estimated offset

from __future__ import print_function



try:
except ImportError:
  ntpstat_conf = None

DEFAULT_COLLECTION_INTERVAL=60

def main():
    """ntpstats main loop"""

    collection_interval=DEFAULT_COLLECTION_INTERVAL
    if(ntpstat_conf):
        config = ntpstat_conf.get_config()
        collection_interval=config['collection_interval']


# 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/ntpstat.py
import os
import socket
import subprocess
import sys
import time
import errno
from collectors.lib import utils
  from collectors.etc import ntpstat_conf

# 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/>.
"""ntp offset stats for TSDB """
#
# ntpstat.py
#
# ntp.offset             estimated offset

from __future__ import print_function



try:
except ImportError:
  ntpstat_conf = None

DEFAULT_COLLECTION_INTERVAL=60

def main():
    """ntpstats main loop"""

    collection_interval=DEFAULT_COLLECTION_INTERVAL
    if(ntpstat_conf):
        config = ntpstat_conf.get_config()
        collection_interval=config['collection_interval']


    utils.drop_privileges()