# Path: collectors/etc/couchbase_conf.py
# def get_config():
# 
# 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 sys
import time
import subprocess
import re
from collectors.etc import couchbase_conf
from collectors.lib import utils
                  'ep_queue_size',
                  'ep_num_value_ejects',
                  'ep_num_eject_failures',
                  'ep_oom_errors',
                  'ep_tmp_oom_errors',
                  'get_hits',
                  'get_misses',
                  'mem_used',
                  'total_connections',
                  'total_heap_bytes',
                  'total_free_bytes',
                  'total_allocated_bytes',
                  'total_fragmentation_bytes',
                  'tcmalloc_current_thread_cache_bytes',
                  'tcmalloc_max_thread_cache_bytes',
                  'tcmalloc_unmapped_bytes',
                  ] )

def find_couchbase_pid():
  """Find out the pid of couchbase"""
  if not os.path.isfile(COUCHBASE_INITFILE):
    return

  try:
    fd = open(COUCHBASE_INITFILE)
    for line in fd:
      if line.startswith("exec"):
        init_script = line.split()[1]
    fd.close()
  except IOError:

# Path: collectors/etc/couchbase_conf.py
# def get_config():
# 
# 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/couchbase.py
import os
import sys
import time
import subprocess
import re
from collectors.etc import couchbase_conf
from collectors.lib import utils

                  'ep_queue_size',
                  'ep_num_value_ejects',
                  'ep_num_eject_failures',
                  'ep_oom_errors',
                  'ep_tmp_oom_errors',
                  'get_hits',
                  'get_misses',
                  'mem_used',
                  'total_connections',
                  'total_heap_bytes',
                  'total_free_bytes',
                  'total_allocated_bytes',
                  'total_fragmentation_bytes',
                  'tcmalloc_current_thread_cache_bytes',
                  'tcmalloc_max_thread_cache_bytes',
                  'tcmalloc_unmapped_bytes',
                  ] )

def find_couchbase_pid():
  """Find out the pid of couchbase"""
  if not os.path.isfile(COUCHBASE_INITFILE):
    return

  try:
    fd = open(COUCHBASE_INITFILE)
    for line in fd:
      if line.startswith("exec"):
        init_script = line.split()[1]
    fd.close()
  except IOError:

    utils.err("Check permission of file (%s)" % COUCHBASE_INITFILE)