Esempio n. 1
0
 def setupParser(self):
     p = NagiosNotification.setupParser(self)
     p.add_option('-d', '--dest-email', dest='emailAddr', 
                  help='email address to send to')
     p.add_option('-f', '--from-email', dest='fromEmail',
                  help='email address to send from')
     p.add_option('-n', '--from-name', dest='fromName',
                  help='name to send email from')
     p.add_option('-e', '--error-email', dest='errorEmail', 
                  default='root@localhost', 
                  help='email address to send errors to')
     return p
Esempio n. 2
0
 def setupParser(self):
     p = NagiosNotification.setupParser(self)
     p.add_option("-s", "--socket", dest="socket", help="path to kibot socket")
     p.add_option("-c", "--channel", dest="channel", help="channel to send notification on")
     p.add_option("-e", "--error", dest="errorEmail", help="email to send tracebacks to")
     return p