<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Is there anything special (say, in the nagios config) that I need to do in order to use environment variables in my notification scripts? From the documentation, it looks like the various macros should be made available as enviroment variables, such as NAGIOS_HOSTNAME. However, when I do the following in my shell script:<div><br></div><div>ADDRESS=$NAGIOS_HOSTADDRESS<div>NAME=$NAGIOS_HOSTNAME</div><div>STATE=$NAGIOS_SERVICESTATE</div><div>TYPE=$NAGIOS_NOTIFICATIONTYPE</div><div>TIME=$NAGIOS_LONGDATETIME</div><div>DESC=$NAGIOS_SERVICEDESC</div><div>INFO=$NAGIOS_SERVICEOUTPUT </div><div><br></div><div>I get nothing in the notification email that uses the above set variables. Additionally, if I dump the output of the env command into the e-mail, it doesn't show any NAGIOS_ variables. What am I missing here? The goal is for the script to be able to query the appropriate environment variables directly, rather than having to have a huge long (hard to read) command string that passes in everything from the macros as arguments. Thanks.</div><div><br></div><div apple-content-edited="true"> <span class="Apple-style-span" style="font-family: 'Times New Roman', fantasy; font-size: 16px; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><span class="Apple-style-span" style="font-family: Helvetica, sans-serif; font-size: 12px; "><div><div><div style="margin-top: 0in; margin-right: 0in; margin-bottom: 0.0001pt; margin-left: 0in; font-size: 12pt; font-family: 'Times New Roman', serif; "><span style="font-size: 9pt; font-family: Helvetica, sans-serif; color: black; ">-----------------------------------------------<o:p></o:p></span></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-bottom: 0.0001pt; margin-left: 0in; font-size: 12pt; font-family: 'Times New Roman', serif; "><span style="font-size: 9pt; font-family: Helvetica, sans-serif; color: black; ">Israel Brewster<o:p></o:p></span></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-bottom: 0.0001pt; margin-left: 0in; font-size: 12pt; font-family: 'Times New Roman', serif; "><span style="font-size: 9pt; font-family: Helvetica, sans-serif; color: black; ">Computer Support Technician II<o:p></o:p></span></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-bottom: 0.0001pt; margin-left: 0in; font-size: 12pt; font-family: 'Times New Roman', serif; "><span style="font-size: 9pt; font-family: Helvetica, sans-serif; color: black; ">Frontier Flying Service Inc.<o:p></o:p></span></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-bottom: 0.0001pt; margin-left: 0in; font-size: 12pt; font-family: 'Times New Roman', serif; "><span style="font-size: 9pt; font-family: Helvetica, sans-serif; color: black; ">5245 Airport Industrial Rd<o:p></o:p></span></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-bottom: 0.0001pt; margin-left: 0in; font-size: 12pt; font-family: 'Times New Roman', serif; "><span style="font-size: 9pt; font-family: Helvetica, sans-serif; color: black; ">Fairbanks, AK 99709<o:p></o:p></span></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-bottom: 0.0001pt; margin-left: 0in; font-size: 12pt; font-family: 'Times New Roman', serif; "><span style="font-size: 9pt; font-family: Helvetica, sans-serif; color: black; ">(907) 450-7250 x293<o:p></o:p></span></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-bottom: 0.0001pt; margin-left: 0in; font-size: 12pt; font-family: 'Times New Roman', serif; "><span style="font-size: 9pt; font-family: Helvetica, sans-serif; color: black; ">-----------------------------------------------</span></div><div style="margin-top: 0in; margin-right: 0in; margin-bottom: 0.0001pt; margin-left: 0in; font-size: 12pt; font-family: 'Times New Roman', serif; "><span style="font-size: 9pt; font-family: Helvetica, sans-serif; color: black; "><span class="Apple-style-span" style="font-family: Helvetica; font-size: medium; "></span></span><span></span><br class="Apple-interchange-newline"><span></span></div></div></div></span></span></span></div></div></body></html>