Spaces in $SERVICEDESC$

nagios at mm.quex.org nagios at mm.quex.org
Fri Sep 10 16:49:59 CEST 2004


On Fri, Sep 10, 2004 at 08:23:46AM +0200, Elmar van Mourik wrote:
> Hi all,
> 
> For performance data I use the following command:
> 
>        command_line    /usr/bin/printf "%b" "$LASTCHECK$\t$SERVICEDESC$\t$OUTPUT$\t$PERFDATA$\r\n" >> /usr/local/nagios/var/perfdata/$HOSTNAME$-$SERVICEDESC$-perfdata.out
> 
> 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".

I suspect I'm missing something here, but is there any particular
reason you don't just put quotes around the output filename?


-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM. 
Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list