What command do you use to give the notification email a subject. Right now, if a box is down, it just sends an email with no subject at all. It would be nice to put a subject in there that has the Host’s IP for instance.
Currently, here’s what we have:
‘host-notify-by-email’ command definition
command_line /usr/bin/printf “%b” “\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n” | /usr/lib/sendmail “Host $HOSTSTATE$ alert for $HOSTNAME$” $CONTACTEMAIL$
I take it the part after ‘| /usr/lib/senmail’ is the subject of the email. Anyone know why it does not process it? We currently usq qmail server.
Thank you for the help!