Search found 12 matches
- Thu Aug 04, 2011 12:47 pm
- Forum: Open Source Nagios Projects
- Topic: Unable to get $CONTACTEMAIL$ to expand
- Replies: 20
- Views: 6940
Re: Unable to get $CONTACTEMAIL$ to expand
Just a followup, that was exactly what the issue was. In the mail command was Details:\n\ n$OUTPUT$" $OUTPUT$ has html in it. With /usr/bin/printf %b and a field that has html (including "'s) we were getting extra quotes and breaking the mail command. We were ending up with this /usr/bin/p...
- Wed Aug 03, 2011 4:46 pm
- Forum: Open Source Nagios Projects
- Topic: Unable to get $CONTACTEMAIL$ to expand
- Replies: 20
- Views: 6940
Re: Unable to get $CONTACTEMAIL$ to expand
What if one of the macros previous to $CONTACTEMAIL$ had unescaped HTML? (which for this service they do) Quotes in there would cause this, wouldn't they?
- Wed Aug 03, 2011 12:49 pm
- Forum: Open Source Nagios Projects
- Topic: Unable to get $CONTACTEMAIL$ to expand
- Replies: 20
- Views: 6940
Re: Unable to get $CONTACTEMAIL$ to expand
Same here. I'm looking over the original again, and I don't see any quotes that are escaped. That would do I think, but I don't see one.
- Wed Aug 03, 2011 12:36 pm
- Forum: Open Source Nagios Projects
- Topic: Unable to get $CONTACTEMAIL$ to expand
- Replies: 20
- Views: 6940
Re: Unable to get $CONTACTEMAIL$ to expand
I FOUND IT! using the macro like this /usr/bin/printf "%b" "Notification:\t$NOTIFICATIONTYPE$\n\nOccurred:\t$DATETIME$\nHostname:\t$HOSTALIAS$ ($HOSTADDRESS$)\nService:\t$SERVICEDESC$\nState:\t\t$SERVICESTATE$\nDetails:\n\n $OUTPUT$" | /usr/bin/mail -s "$NOTIFICATIONTYPE$: $...
- Wed Aug 03, 2011 12:18 pm
- Forum: Open Source Nagios Projects
- Topic: Unable to get $CONTACTEMAIL$ to expand
- Replies: 20
- Views: 6940
Re: Unable to get $CONTACTEMAIL$ to expand
I turned on debugging with the original contact command /usr/bin/printf "%b" "Notification:\t$NOTIFICATIONTYPE$\n\nOccurred:\t$DATETIME$\nHostname:\t$HOSTALIAS$ ($HOSTADDRESS$)\nService:\t$SERVICEDESC$\nState:\t\t$SERVICESTATE$\nDetails:\n\n $OUTPUT$" | /usr/bin/mail -s "$NO...
- Wed Aug 03, 2011 11:31 am
- Forum: Open Source Nagios Projects
- Topic: Unable to get $CONTACTEMAIL$ to expand
- Replies: 20
- Views: 6940
Re: Unable to get $CONTACTEMAIL$ to expand
Good morning! Yes, I did. I'm pretty darn sure I have everything configured properly. Everything works, it just doesn't send email. I set debug to -1 and found that it's telling me that the macro is failing. I'll grab a capture of that log in just a bit. Seems it rotated out over the night. Someone ...
- Tue Aug 02, 2011 6:52 pm
- Forum: Open Source Nagios Projects
- Topic: Unable to get $CONTACTEMAIL$ to expand
- Replies: 20
- Views: 6940
Re: Unable to get $CONTACTEMAIL$ to expand
No Joy. I updated to 3.2.3 by removing the debs, hand building it from source, and dropping my configs in.
I also removed the n in the commands config service_notification_options w,u,c,r,s,n
Still sending email to $@.
I also removed the n in the commands config service_notification_options w,u,c,r,s,n
Still sending email to $@.
- Tue Aug 02, 2011 4:32 pm
- Forum: Open Source Nagios Projects
- Topic: Unable to get $CONTACTEMAIL$ to expand
- Replies: 20
- Views: 6940
Re: Unable to get $CONTACTEMAIL$ to expand
Oh, good idea. Let me try that.
- Tue Aug 02, 2011 4:02 pm
- Forum: Open Source Nagios Projects
- Topic: Unable to get $CONTACTEMAIL$ to expand
- Replies: 20
- Views: 6940
Re: Unable to get $CONTACTEMAIL$ to expand
Yes, and mail is working properly on this server. I'm sorry, but the focus here is not whether mail sends or not, it does. The focus is that the command works perfectly with my email hardcoded on the end of the command instead of $CONTACTEMAIL$ macro. This works, run manually or by nagios /usr/bin/p...
- Tue Aug 02, 2011 3:17 pm
- Forum: Open Source Nagios Projects
- Topic: Unable to get $CONTACTEMAIL$ to expand
- Replies: 20
- Views: 6940
Re: Unable to get $CONTACTEMAIL$ to expand
No typos that I am able to see.
I fixed commands.cfg back to $CONTACTEMAIL$ from my hardcoded email address, I added another contact, shut a service down and watched the mail log. Same result, it sent mail to $ @ the nagios server's host name.
I fixed commands.cfg back to $CONTACTEMAIL$ from my hardcoded email address, I added another contact, shut a service down and watched the mail log. Same result, it sent mail to $ @ the nagios server's host name.