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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)