def __init__(self, pidfile='/tmp/test-monitor.pid', stdin='/dev/stdin', stdout='/dev/stdout', stderr='/dev/stderr', intvl=10, logfile='/opt/monitor.log'): Daemon.__init__(self, pidfile=pidfile, stdin=stdin, stdout=stdout, stderr=stderr) TestMonitor.intvl = intvl self._logfile = logfile
def __init__(self, pidfile, stdin='/dev/stdin', stdout='/dev/stdout', stderr='/dev/stderr', intvl=10, wait=5, reboot=10, logfile='/tmp/test.log'): Daemon.__init__(self, pidfile, stdin, stdout, stderr) self.intvl = intvl self.wait = wait self.reboot = reboot self.logfile = logfile
def __init__(self, stdin='/dev/stdin', stdout='/dev/stdout', stderr='/dev/stderr', configfile='/home/cnic/vmrebirth_sj/vmmonitor/vmmonitor.config'): self._params = utils.readParameters(configfile) # utils.printDict(self._params) if self._params != None: Daemon.__init__(self, self._params['pidfile'], stdin, stdout, stderr) self._rc = RunCommand() self._host_list = {} self._vm_list = {} self._report = {} else: print 'Read parameters error!!!' exit(2)
def __init__(self, pidfile='/tmp/daemon-example.pid', stdin='/dev/null', stdout='/dev/null', stderr='/dev/null', intvl=10, reboot=10, logfile='/tmp/vmhost.log'): Daemon.__init__(self, pidfile, stdin, stdout, stderr) self._rc = RunCommand() self._host_list = {} self._vm_list = {} self._report = {} self._reboot_threshold = reboot self._check_interval = intvl self.logfile = logfile
def __init__(self, pidfile='/tmp/example.pid', stdin='/dev/stdin', stdout='/dev/stdout', stderr='/dev/stderr', intvl=10, reboot=10, logfile='ECCP_Monitor.log'): Daemon.__init__(self, pidfile, stdin, stdout, stderr) self._rc = RunCommand() # self._dbUtil = DbUtil() self._host_list = {} self._vm_list = {} self._report = {} self._reboot_threshold = reboot self._check_interval = intvl self.logfile = logfile