def __init__(self): BaseCheck.__init__(self) self.configvars['hosts']=None self.configvars["zone"]=None self.helpstrings['hosts']="Space separated list of DNS Server that should be queried" self.helpstrings['zone']="Zonename whose SOA should be checked"
def __init__(self): BaseCheck.__init__(self) self.configvars['host']=None self.configvars['port']=25 self.configvars['timeout']=20 self.configvars['helo']='monsta.local' self.configvars['sender']=None self.configvars['recipient']=None
def __init__(self): BaseCheck.__init__(self) self.configvars['timeout']=10 self.configvars['command']=None self.configvars['expect']='' self.helpstrings['timeout']="command timeout in seconds" self.helpstrings['command']="command to run with arguments" self.helpstrings['expect']='string that must be in the script output. leave empty to just check exit status'
def __init__(self): BaseCheck.__init__(self) self.configvars['hosts']='' self.configvars["record"]=None self.configvars["recordtype"]="A" self.configvars["requiredanswers"]=None self.helpstrings['hosts']="Space separated list of DNS Server that should be queried. Leave empty to use the default system resolver" self.helpstrings["recordtype"]="Type of the record (A,NS,MX,SOA,... )" self.helpstrings["requiredanswers"]="Space separated list of required return values" self.helpstrings["record"]="Name of the record that should be queried"
def __init__(self): BaseCheck.__init__(self) self.configvars['timeout']=10 self.configvars['host']=None self.configvars['port']=None self.configvars['expect']='' self.helpstrings['timeout']="Connection timeout in seconds" self.helpstrings['host']="Hostname or ip address" self.helpstrings['port']="Port that should be connected to" self.helpstrings['expect']='string that must be in the first line read from a server banner. Leave empty to just test the successful port connect'
def __init__(self): BaseCheck.__init__(self) self.configvars['smtp_host']='localhost' self.configvars['smtp_port']=25 self.configvars['smtp_timeout']=20 self.configvars['smtp_helo']='monsta.local' self.configvars['smtp_username']='' self.configvars['smtp_password']='' self.configvars['smtp_starttls']='no' self.configvars['mailbox_type']='imap' self.configvars['sender']=None self.configvars['recipient']=None self.configvars['timeout']=60 self.configvars['mailbox_username']=None self.configvars['mailbox_host']=None self.configvars['mailbox_password']=None self.configvars['mailbox_folder']='INBOX' self.configvars['mailbox_ssl']='no' self.helpstrings['smtp_host']="Send Mail to this host" self.helpstrings['smtp_port']="Send Mail to this port" self.helpstrings["smtp_timeout"]="SMTP Network timeout in seconds" self.helpstrings["smtp_helo"]="HELO string to use in the smtp dialog" self.helpstrings["smtp_username"]="******" self.helpstrings["smtp_password"]="******" self.helpstrings["smtp_starttls"]="encrypt smtp session with starttls" self.helpstrings["mailbox_type"]="Type of the mailbox. currently, only 'imap' is supported" self.helpstrings["sender"]="Sender email address of the test message" self.helpstrings["recipient"]="Recipient email address of the test message" self.helpstrings["timeout"]="Time to wait for the test message to show up in the target mailbox" self.helpstrings["mailbox_username"]="******" self.helpstrings["mailbox_host"]="Target mailbox hostname" self.helpstrings["mailbox_password"]="******" self.helpstrings["mailbox_folder"]="Folder in the target mailbox where the message should show up" self.logger=logging.getLogger('SMTP2MAILBOX')