mutt
Posted: Fri Nov 08, 2013 1:20 pm
Hello!
if I'm sending from command line
if in my commands.cfg I have
but if i now pipi this messages to mutt like this
Any ideas ?
Thank you
if I'm sending from command line
I got this messageecho " TEST" | /usr/bin/mutt -s "test" my@gmail
if in my commands.cfg I have
I can read messages from services in tmp.mail.log# 'notify-service-by-email' command definition
define command{
command_name notify-service-by-email
command_line /usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$\n" >> tmp/tmp.mail.log 2>&1
but if i now pipi this messages to mutt like this
I'm not able to receive any messages on my emailcommand_line /usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$\n" | /usr/bin/mutt -s "sent by nagios" [email protected]
Any ideas ?
Thank you