<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.6944.0">
<TITLE>Spaces in $SERVICEDESC$</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->

<P><FONT SIZE=2 FACE="Arial">Hi all,</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">For performance data I use the following command:</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">       command_line    /usr/bin/printf "%b" "$LASTCHECK$\t$SERVICEDESC$\t$OUTPUT$\t$PERFDATA$\r\n" >> /usr/local/nagios/var/perfdata/$HOSTNAME$-$SERVICEDESC$-perfdata.out</FONT></P>

<P><FONT SIZE=2 FACE="Arial">This is not a problem when the $SERVICEDESC$ is just a single word like "PING" or "HTTP". But when it's more than one word eg. "CPU Load" the file with the performance data is called "venus-CPU" and the first part of every line in the file is "Load-perfdata.out".</FONT></P>

<P><FONT SIZE=2 FACE="Arial">I can change every Service Description in all the config files but that's no solution.</FONT>

<BR><FONT SIZE=2 FACE="Arial">Changing the $SERVICEDESC$ with a command like "sed y/" "/-/" in a new variable $SERVICE-DESC$ would be the best option for me.</FONT></P>

<P><FONT SIZE=2 FACE="Arial">Where can I add this variable?</FONT>
</P>
<BR>
<BR>

<P><FONT SIZE=2 FACE="Arial">Elmar van Mourik</FONT>

<BR><FONT SIZE=2 FACE="Arial">System- & Networkadministrator ZHEW</FONT>
</P>


<DIV><P><HR>
Door de electronische verzending van het bericht kunnen er geen rechten<BR>
ontleend worden aan de informatie. Als u deze e-mail onterecht heeft<BR>
ontvangen, waarschuwt u dan de afzender via postmaster@zhew.nl en verwijder<BR>
de gegevens van de computer. <BR>
<BR>
ZHEW wordt opgeheven. Vanaf 1 januari 2005 zijn de watertaken van het zuiveringsschap<BR>
ondergebracht bij drie ‘all-in’ waterschappen. Meer informatie:<BR>
<BR>
Zuiveringsschap Hollandse Eilanden en Waarden, Dordrecht <BR>
tel: +31 (0)78 6397100 <BR>
fax: +31 (0)78 6311871 <BR>
web: http://www.zhew.nl
</P></DIV>
</BODY>
</HTML>