Package ZenRRD :: Module zencommand
[hide private]
[frames] | no frames]

Module zencommand

source code

ZenCommand

Run Command pluggins periodically.

$Id$


Version:  

Classes [hide private]
  CommandConfig
  TimeoutError
Error for a defered call taking too long to complete
  ProcessRunner
Provide deferred process execution
  MySshClient
Connection to SSH server at the remote device
  SshPool
Cache all the Ssh connections so they can be managed
  SshRunner
Run a single command across a cached Ssh connection
  Cmd
Holds the config of every command to be run
  Options
  zencommand
Functions [hide private]
 
Timeout(deferred, seconds, obj)
Cause an error on a deferred when it is taking too long to complete
source code
Variables [hide private]
  __doc__ = ''' ZenComm...
  log = logging.getLogger("zen.zencommand")
  NagParser = re.compile(r'([^ =\']+|\'(.*)\'+)=([-0-9\.]+)([^;]...
  CacParser = re.compile(r'([^ :\']+|\'(.*)\'+):([-0-9\.]+)')
  MAX_CONNECTIONS = 256
  EXIT_CODE_MAPPING = {0: 'Success', 1: 'General error', 2: 'Mis...
Variables Details [hide private]

__doc__

Value:
''' ZenCommand

Run Command pluggins periodically.

$Id$'''

NagParser

Value:
re.compile(r'([^ =\']+|\'(.*)\'+)=([-0-9\.]+)([^;]*;?){,5}')

EXIT_CODE_MAPPING

Value:
{0: 'Success',
 1: 'General error',
 2: 'Misuse of shell builtins',
 126: 'Command invoked cannot execute, permissions problem or command \
is not an executable',
 127: 'Command not found',
 128: 'Invalid argument to exit, exit takes only integers in the range\
 0-255',
...