Example #1
0
 def __init__(self, logpath, debug=False):
     self._logpath = logpath
     self._debug = debug
     self._java_path = which("java")
     self._cmdclient_jar = get_realpath(
     ) + "/" + "cmdline-jmxclient-0.10.3.jar"
     self._logger = slog(self._logpath, debug=debug, size=5, count=5)
Example #2
0
 def __init__(self, logpath, password=None, port=6379, debug=False):
     self._logpath = logpath
     self._password = password
     self._port = port if port else 6379
     self._debug = debug
     self._file_cache_path = "/tmp/.zabbix_redis_%s.log" % (port)
     self._file_cache = filecache(self._file_cache_path)
     self._logger = slog(self._logpath, debug=debug, size=5, count=5)
Example #3
0
 def __init__(self, logpath,  password=None, port=6379, debug=False):
     self._logpath = logpath
     self._password = password
     self._port = port if port else 6379
     self._debug = debug
     self._file_cache_path = "/tmp/.zabbix_memcache_%s.log" % (port)
     self._file_cache = filecache(self._file_cache_path)
     self._logger = slog(self._logpath, debug=debug, size=5, count=5)
Example #4
0
 def __init__(self, iphost="127.0.0.1", port=11211, force=False, debug=True):
     self._iphost = iphost
     self._port = port
     self._force = force
     self._logpath = "/tmp/zabbix_memcached.log"
     self._cache_file = "/tmp/zabbix_memcached_cache_%s.txt" %(port)
     if not port:
         self._cache_file = "/tmp/zabbix_memcached_cache.txt"
     self._logger = slog(self._logpath, debug=debug, size=5, count=5)
Example #5
0
 def __init__(self, iphost="127.0.0.1", port=11211, force=False, debug=True):
     self._iphost = iphost
     self._port = port
     self._force = force
     self._logpath = "/tmp/zabbix_memcached.log"
     self._cache_file = "/tmp/zabbix_memcached_cache_%s.txt" %(port)
     if not port:
         self._cache_file = "/tmp/zabbix_memcached_cache.txt"
     self._logger = slog(self._logpath, debug=debug, size=5, count=2)
Example #6
0
 def __init__(self, logpath,  password=None, port=6379, debug=False, force=False):
     self._logpath = logpath
     self._password = password
     self._port = port if port else 6379
     self._debug = debug
     self._force = force
     self._file_cache_path = "/tmp/.zabbix_redis_%s_by_%s.txt" % (port, getpass.getuser())
     self._file_cache = filecache(self._file_cache_path)
     self._logger = slog(self._logpath, debug=debug, size=5, count=2)
Example #7
0
 def __init__(self, iphost="localhost", username="******", password="******", port=3306, force=False, debug=True):
     self._iphost = iphost
     self._username = username
     self._password = password
     self._port = port
     self._force = force
     self._logpath = "/tmp/zabbix_mysql_perf.log"
     self._file_cache_path = "/tmp/.zabbix_mysql_status_%s.txt" % (port)
     self._file_cache = filecache(self._file_cache_path)
     self._logger = slog(self._logpath, debug=debug, size=5, count=5)
Example #8
0
 def __init__(self, uri, port=80, iphost="localhost", force=False, debug=True):
     self._uri = uri
     self._iphost = iphost
     self._port = port
     self._force = force
     curuser = getpass.getuser()
     self._logpath = "/tmp/nginx_perf_by_%s.log" % (curuser)
     self._file_cache_path = "/tmp/.nginx_perf_cache_%s_by_%s.txt" % (port, curuser)
     self._file_cache = filecache(self._file_cache_path)
     self._logger = slog(self._logpath, debug=debug, size=5, count=5)
Example #9
0
 def __init__(self, iphost="localhost", username="******", password="******", port=3306, force=False, debug=True):
     self._iphost = iphost
     self._username = username
     self._password = password
     self._port = port
     self._force = force
     curuser = getpass.getuser()
     self._logpath = "/tmp/zabbix_mysql_perf_by_%s.log" % (curuser)
     self._file_cache_path = "/tmp/.zabbix_mysql_status_%s_by_%s.txt" % (port, curuser)
     self._file_cache = filecache(self._file_cache_path)
     self._logger = slog(self._logpath, debug=debug, size=5, count=5)
Example #10
0
 def __init__(self, iphost="localhost", username="******", password="******", port=3306, force=False, debug=True):
     self._iphost = iphost
     self._username = username
     self._password = password
     self._port = port
     self._force = force
     curuser = getpass.getuser()
     self._logpath = "/tmp/zabbix_mysql_status_by_%s.log" % (curuser)
     self._file_cache_path = "/tmp/.zabbix_mysql_status_%s_by_%s.txt" % (port, curuser)
     self._file_cache = filecache(self._file_cache_path)
     self._logger = slog(self._logpath, debug=debug, size=5, count=5)
Example #11
0
 def __init__(self, iphost, username="******", password="******", port=3306, force=False, debug=True):
     self._iphost = iphost
     self._username = username
     self._password = password
     self._port = port
     self._force = force
     curuser = getpass.getuser()
     self._logpath = "/tmp/zabbix_mysql_variables_slave_status_by_%s.log" % (curuser)
     self._file_cache_path = "/tmp/.zabbix_mysql_variables_slave_status_%s_by_%s.txt" % (port, curuser)
     self._file_cache = filecache(self._file_cache_path)
     self._logger = slog(self._logpath, debug=debug, size=5, count=5)
Example #12
0
 def __init__(self,
              uri,
              port=80,
              iphost="localhost",
              force=False,
              debug=True):
     self._uri = uri
     self._iphost = iphost
     self._port = port
     self._force = force
     self._logpath = "/tmp/nginx_perf.log"
     self._file_cache_path = "/tmp/.nginx_perf_cache_%s.txt" % (port)
     self._file_cache = filecache(self._file_cache_path)
     self._logger = slog(self._logpath, debug=debug, size=5, count=5)
Example #13
0
    def __init__(self, iphost="127.0.0.1", port=27017, username=None, password=None, force=False, debug=True):
        self._iphost = iphost
        self._port = port
        self._username = username
        self._password = password
        self._force = force

        curuser = getpass.getuser()
        self._logpath = "/tmp/zabbix_mongodb_by_%s.log" % (curuser)
        self._cache_file_path = "/tmp/.zabbix_mongodb_cache_%s_by_%s.txt" % (port, curuser)
        if not port:
            self._cache_file_path = "/tmp/.zabbix_mongodb_cache_by_%s.txt" % (curuser)

        self._file_cache = filecache(self._cache_file_path)
        self._logger = slog(self._logpath, debug=debug, size=5, count=2)
Example #14
0
 def __init__(self, iphost="127.0.0.1", port=27017, username=None, password=None, force=False, debug=True):
     self._iphost = iphost
     self._port = port
     self._username = username
     self._password = password
     self._force = force
     
     curuser = getpass.getuser()
     self._logpath = "/tmp/zabbix_mongodb_by_%s.log" % (curuser)
     self._cache_file_path = "/tmp/.zabbix_mongodb_cache_%s_by_%s.txt" % (port,curuser)
     if not port:
         self._cache_file_path = "/tmp/.zabbix_mongodb_cache_by_%s.txt" % (curuser)
 
     self._file_cache = filecache(self._cache_file_path)
     self._logger = slog(self._logpath, debug=debug, size=5, count=2)
Example #15
0
 def __init__(self,
              iphost="127.0.0.1",
              port=11211,
              force=False,
              debug=True):
     self._iphost = iphost
     self._port = port
     self._force = force
     curuser = getpass.getuser()
     self._logpath = "/tmp/zabbix_memcached_by_%s.log" % (curuser)
     self._cache_file = "/tmp/zabbix_memcached_cache_%s_by_%s.txt" % (
         port, curuser)
     if not port:
         self._cache_file = "/tmp/zabbix_memcached_cache_by_%s.txt" % (
             curuser)
     self._logger = slog(self._logpath, debug=debug, size=5, count=2)
Example #16
0
 def __init__(self,
              iphost,
              username="******",
              password="******",
              port=3306,
              force=False,
              debug=True):
     self._iphost = iphost
     self._username = username
     self._password = password
     self._port = port
     self._force = force
     self._logpath = "/tmp/zabbix_mysql_variables_slave_status.log"
     self._file_cache_path = "/tmp/.zabbix_mysql_variables_slave_status_%s.txt" % (
         port)
     self._file_cache = filecache(self._file_cache_path)
     self._logger = slog(self._logpath, debug=debug, size=5, count=5)
Example #17
0
 def __init__(self,
              iphost,
              username,
              password,
              port,
              force=False,
              debug=True):
     self._iphost = iphost
     self._username = username
     self._password = password
     self._port = port
     self._force = force
     curuser = getpass.getuser()
     self._logpath = "/tmp/zabbix_mysql_variables_slave_status_by_%s.log" % curuser
     self._file_cache_path = "/tmp/.zabbix_mysql_variables_slave_status_%s_by_%s.txt" % (
         port, curuser)
     self._file_cache = filecache(self._file_cache_path)
     self._logger = slog(self._logpath, debug=debug, size=5, count=5)
Example #18
0
 def __init__(self, logpath, debug=False):
     self._logpath = logpath
     self._debug = debug
     self._java_path = which("java")
     self._cmdclient_jar = get_realpath()+"/" +"cmdline-jmxclient-0.10.3.jar"
     self._logger = slog(self._logpath, debug=debug, size=5, count=2)