It seems during a recent upgrade, my notifications broke! Well, I did digging and found notification themselves are working, but the macro variables are completely botched.
I took "notify-by-email", and changed it to this:
/usr/bin/printf "\"%b\" \"Notification Type: $NOTIFICATIONTYPE$ ($SERVICEACKAUTHOR$)\n\nService: $SERVICEDESC$\nHost: $HOSTNAME$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$\n\nComment: $SERVICEACKCOMMENT$\" | /bin/mail -s \"** $NOTIFICATIONTYPE$ alert - $HOSTNAME$/$SERVICEDESC$ is $SERVICESTATE$ **\" $CONTACTEMAIL$" >> /tmp/nagiosnotify.log
So, it will write the contents to a file instead of just directly piped to mail. Here is what I see:
"Notification Type: RECOVERY ($)
Date/Time: W Sp 4 10:18:11 EDT 2013
Comment: $" | /bin/mail -s "** RECOVERY alert - v-ww7b2/$ is $ **" bv
It seems like all of the variable are wrong. For instance, the host is v-windows7lab2.
The email address starts with "bv", but it ends with a whole lot more!
I'm not sure what would be causing this, and would appreciate any input.