<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="color: rgb(51, 51, 51); font-family: 'Lucida Grande'; font-size: 13px; line-height: 18px; ">Hi,<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">I have nagios3 running (installed via apt-get on Debian). Everything worked pretty well until I tried to add graphing support. <br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">As described in numerous how-tos, I added the following to nagios.cfg:<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><dl class="codebox" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 3px; padding-right: 3px; padding-bottom: 3px; padding-left: 3px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; font-size: 1em; background-color: rgb(255, 255, 255); border-top-color: rgb(201, 210, 216); border-right-color: rgb(201, 210, 216); border-bottom-color: rgb(201, 210, 216); border-left-color: rgb(201, 210, 216); "><dt style="margin-top: 0px; margin-right: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; text-transform: uppercase; border-bottom-width: 1px; border-bottom-style: solid; margin-bottom: 3px; font-size: 0.8em; font-weight: bold; display: block; border-bottom-color: rgb(204, 204, 204); ">CODE: <a href="http://forums.meulie.net/viewtopic.php?f=60&t=4645#" onclick="selectCode(this); return false;" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; text-decoration: none; color: rgb(0, 0, 0); ">SELECT ALL</a></dt><dd style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><code style="padding-right: 0px; padding-bottom: 0px; padding-left: 0px; overflow-x: auto; overflow-y: auto; display: block; height: auto; max-height: 200px; white-space: normal; padding-top: 5px; font: normal normal normal 0.9em/normal Monaco, 'Andale Mono', 'Courier New', Courier, mono; line-height: 1.3em; margin-top: 2px; margin-right: 0px; margin-bottom: 2px; margin-left: 0px; color: rgb(46, 139, 87); ">process_performance_data=1<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">service_perfdata_file=/usr/local/nagios/var/service-perfdata<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">service_perfdata_file_template=$LASTSERVICECHECK$\t$HOSTNAME$\t$SERVICEDESC$\t$SERVICESTATE$\t$SERVICEATTEMPT$\t$SERVICESTATETYPE$\t$SERVICEEXECUTIONTIME$\t$SERVICELATENCY$\t$SERVICEOUTPUT$\t$SERVICEPERFDATA$\n<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">service_perfdata_file_mode=a<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">service_perfdata_file_processing_interval=30<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">service_perfdata_file_processing_command=process-service-perfdata<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "></code></dd></dl><br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">and kept the default value for the service-perfdata in commands.cfg:<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><dl class="codebox" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 3px; padding-right: 3px; padding-bottom: 3px; padding-left: 3px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; font-size: 1em; background-color: rgb(255, 255, 255); border-top-color: rgb(201, 210, 216); border-right-color: rgb(201, 210, 216); border-bottom-color: rgb(201, 210, 216); border-left-color: rgb(201, 210, 216); "><dt style="margin-top: 0px; margin-right: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; text-transform: uppercase; border-bottom-width: 1px; border-bottom-style: solid; margin-bottom: 3px; font-size: 0.8em; font-weight: bold; display: block; border-bottom-color: rgb(204, 204, 204); ">CODE: <a href="http://forums.meulie.net/viewtopic.php?f=60&t=4645#" onclick="selectCode(this); return false;" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; text-decoration: none; color: rgb(0, 0, 0); ">SELECT ALL</a></dt><dd style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><code style="padding-right: 0px; padding-bottom: 0px; padding-left: 0px; overflow-x: auto; overflow-y: auto; display: block; height: auto; max-height: 200px; white-space: normal; padding-top: 5px; font: normal normal normal 0.9em/normal Monaco, 'Andale Mono', 'Courier New', Courier, mono; line-height: 1.3em; margin-top: 2px; margin-right: 0px; margin-bottom: 2px; margin-left: 0px; color: rgb(46, 139, 87); ">define command{<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">   command_name    process-service-perfdata<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">   command_line   /usr/bin/printf "%b" "$LASTSERVICECHECK$\t$HOSTNAME$\t$SERVICEDESC$\t$SERVICESTATE$\t$SERVICEATTEMPT$\t$SERVICESTATETYPE$\t$SERVICEEXECUTIONTIME$\t$SERVICELATENCY$\t$SERVICEOUTPUT$\t$SERVICEPERFDATA$\n" >> /var/lib/nagios3/service-perfdata.out<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">   }</code></dd></dl><br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">The trouble is that file /usr/local/nagios/var/service-perfdata remains blank (but it does get created), while /var/lib/nagios3/service-perfdata.out gets filled with:<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><dl class="codebox" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 3px; padding-right: 3px; padding-bottom: 3px; padding-left: 3px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; font-size: 1em; background-color: rgb(255, 255, 255); border-top-color: rgb(201, 210, 216); border-right-color: rgb(201, 210, 216); border-bottom-color: rgb(201, 210, 216); border-left-color: rgb(201, 210, 216); "><dt style="margin-top: 0px; margin-right: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; text-transform: uppercase; border-bottom-width: 1px; border-bottom-style: solid; margin-bottom: 3px; font-size: 0.8em; font-weight: bold; display: block; border-bottom-color: rgb(204, 204, 204); ">CODE: <a href="http://forums.meulie.net/viewtopic.php?f=60&t=4645#" onclick="selectCode(this); return false;" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; text-decoration: none; color: rgb(0, 0, 0); ">SELECT ALL</a></dt><dd style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><code style="padding-right: 0px; padding-bottom: 0px; padding-left: 0px; overflow-x: auto; overflow-y: auto; display: block; height: auto; max-height: 200px; white-space: normal; padding-top: 5px; font: normal normal normal 0.9em/normal Monaco, 'Andale Mono', 'Courier New', Courier, mono; line-height: 1.3em; margin-top: 2px; margin-right: 0px; margin-bottom: 2px; margin-left: 0px; color: rgb(46, 139, 87); ">$   glass$   $   $   $   $   $   $   $   $</code></dd></dl><br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">Glass is the name of localhost. There is a dozen other servers that nagios monitors, yet they don't show up in the service-perfdata.out file at all. It looks like macros ($LASTSERVICECHECK$, $SERVICEOUTPUT$) do not get recognized, but there may be other things going on that I have not identified. <br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">All other features of nagios seem to be working fine. Macros definitely work in other commands.<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">Any help is greatly appreciated. If you need any other diagnostic info, I will provide it promptly.</span><div><font class="Apple-style-span" color="#333333" face="'Lucida Grande'" size="3"><span class="Apple-style-span" style="font-size: 13px; line-height: 18px;"><br></span></font></div><div><font class="Apple-style-span" color="#333333" face="'Lucida Grande'" size="3"><span class="Apple-style-span" style="font-size: 13px; line-height: 18px;"><br></span></font></div><div><font class="Apple-style-span" color="#333333" face="'Lucida Grande'" size="3"><span class="Apple-style-span" style="font-size: 13px; line-height: 18px;">Thanks,</span></font></div><div><font class="Apple-style-span" color="#333333" face="'Lucida Grande'" size="3"><span class="Apple-style-span" style="font-size: 13px; line-height: 18px;"><br></span></font></div><div><font class="Apple-style-span" color="#333333" face="'Lucida Grande'" size="3"><span class="Apple-style-span" style="font-size: 13px; line-height: 18px;"><br></span></font></div><div><font class="Apple-style-span" color="#333333" face="'Lucida Grande'" size="3"><span class="Apple-style-span" style="font-size: 13px; line-height: 18px;">M</span></font></div><div><font class="Apple-style-span" color="#333333" face="'Lucida Grande'" size="3"><span class="Apple-style-span" style="font-size: 13px; line-height: 18px;">---</span></font></div><div><font class="Apple-style-span" color="#333333" face="'Lucida Grande'" size="3"><span class="Apple-style-span" style="font-size: 13px; line-height: 18px;"><a href="mailto:reg@eyesopen.org">reg@eyesopen.org</a></span></font></div></body></html>