[Nagiosplug-help] check_disk fails on line feed

Subhendu Ghosh sghosh at sghosh.org
Fri Nov 29 12:24:02 CET 2002


On Thu, 28 Nov 2002, Rasmus Plewe wrote:

> Hello,
> 
> please excuse me for being hasty. 
> 
> On Thu, Nov 28, 2002 at 08:01:02PM +0100, Rasmus Plewe wrote:
> > 
> > ./check_disk --warning=20% --critical=1%
> > Unable to read output:
> > /bin/df -Pk 
> > donner:/export/home/abcd
> > 
> > A "df -Pk" results in a 
> > [line feed]
> > 
> > So: df introduces a line feed check_disk is not able to handle. 
> > 
> > I can currently live with the workaround to do a 
> > ./check_disk -p "fs1 fs2 fs3" --warning=20% --critical=1% 
> 
> no, I can't live with this workaround. Since I do this from remote, the
> command would look something like 
> 
> ./check_by_ssh -H host -l user -C "/remote_path/check_disk -p "fs1 fs2"
> -w 20% - 1%"
> 

escape the inner quotes:  -p\"fs1 fs2\"

-sg


> No matter how I try to mask the inner pair of quotes and experiment
> with " and ' in different combinations, I always get (different) error
> messages. I need a possibility to pass a list of file systems. 
> Any ideas? 
> 
> I don't want to split the query into one query each for every file
> system. 
> 
> 
> Regards,
>          Rasmus
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: Get the new Palm Tungsten T 
> handheld. Power & Color in a compact size! 
> http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
> _______________________________________________
> Nagiosplug-help mailing list
> Nagiosplug-help at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagiosplug-help
> 

-- 






More information about the Help mailing list