Ejemplo n.º 1
0
 def notify(self):
     NagiosNotification.notify(self)
     msg = []
     for line in (self.template % self.vars).split("\n"):
         if not line == "" and not line.strip().endswith(":"):
             msg.append(line)
     self.bot.inchan(self.channel, "say %s" % ", ".join(msg))
Ejemplo n.º 2
0
 def notify(self):
     NagiosNotification.notify(self)
     subject = self.subject_template % self.vars
     body = self.template % self.vars
     self.send(subject, body)