]> git.pld-linux.org Git - packages/nagios-alert-jabber.git/blobdiff - nagios-jabber.alert
Warn about missing message body.
[packages/nagios-alert-jabber.git] / nagios-jabber.alert
index 1ec627a9f796c6380195c838005adbdec1b2766e..3e033a54fcea8a184e4990f2be52c7c1e0c36141 100644 (file)
@@ -71,6 +71,9 @@ for line in sys.stdin.readlines():
 
 body += stdin_body
 
+if len(body.strip()) == 0:
+       body = "(nagios-jabber.alert warning: missing message body)";
+
 message_type = 'chat'
 
 jid = JID(jid)
This page took 0.095012 seconds and 4 git commands to generate.