[Pkg-nagios-changes] [SCM] UNNAMED PROJECT branch, master, updated. 016db4e7560fc8ef5ccdb6357745ef691650d94a

david hannequin david.hannequin at gmail.com
Wed Nov 16 10:03:38 UTC 2011


The following commit has been merged in the master branch:
commit 016db4e7560fc8ef5ccdb6357745ef691650d94a
Author: david hannequin <david.hannequin at gmail.com>
Date:   Wed Nov 16 09:49:33 2011 +0100

    Fix sender options

diff --git a/libexec/sendmailservice.py b/libexec/sendmailservice.py
index 43787f6..fce221b 100644
--- a/libexec/sendmailservice.py
+++ b/libexec/sendmailservice.py
@@ -70,6 +70,7 @@ if __name__ == "__main__":
     parser.add_argument('-i', '--shortdatetime')
     parser.add_argument('-o', '--output')
     parser.add_argument('-t', '--to')
+    parser.add_argument('-S', '--sender')
     args = parser.parse_args()
 
     notify = args.notification
@@ -80,8 +81,7 @@ if __name__ == "__main__":
     datetime = args.shortdatetime 
     output = args.output
     to = args.to
-
-    sender = 'shinken at localhost'   
+    sender = args.sender
 
     subject = "** " + notify + " alert - " + hostname + "/" + desc + " is " + state + " **"
 

-- 
UNNAMED PROJECT



More information about the Pkg-nagios-changes mailing list