Exemple #1
0
    def __init__(self):
        Messenger.__init__(self)
        self.configvars['api_id']=None
        self.configvars['sender']=''
        self.configvars['password']=None
        self.configvars['username']=None

        self.helpstrings['api_id']="clickatell API id"
        self.helpstrings['sender']="optional number that should appear as sender(must be authorized)"
        self.helpstrings['password']="******"
        self.helpstrings["username"]="******"
        self.helpstrings['recipient']='alert recipient phone number'
Exemple #2
0
 def __init__(self):
     Messenger.__init__(self)
     self.configvars['host']='127.0.0.1'
     self.configvars['port']=25
     self.configvars['helo']='${myhostname}'
     self.configvars['sender']=None
     self.configvars['username']=''
     self.configvars['password']=''
     self.configvars['starttls']='no'
     
     self.helpstrings['host']="SMTP Relay Hostname"
     self.helpstrings['port']="SMTP Port"
     self.helpstrings['helo']="The HELO string to use when connecting to the host. '${myhostname}' uses the current hostname as helo"
     self.helpstrings['sender']="Sender address for the notification email messages"
     self.helpstrings['username']="******"
     self.helpstrings['password']="******"
     self.helpstrings['recipient']='alert recipient email address'
     self.helpstrings['starttls']='use starttls to encrypt the smtp traffic'
Exemple #3
0
    def __init__(self):
        Messenger.__init__(self)
        self.configvars['api_id']=None
        self.configvars['sender']=''
        self.configvars['password']=None
        self.configvars['username']=None

        self.helpstrings['api_id']="clickatell API id"
        self.helpstrings['sender']="optional number that should appear as sender(must be authorized)"
        self.helpstrings['password']="******"
        self.helpstrings["username"]="******"
        self.helpstrings['recipient']='alert recipient phone number'

        try:
            import xmpp
        except ImportError:
            import sys
            logging.error("You are trying to use the jabber messenger, but the python xmpp lib (xmpppy) is not installed.")
            sys.exit(1)