[Nagiosplug-help] check_disk fails on line feed

Rasmus Plewe rplewe at ess.nec.de
Thu Nov 28 11:26:02 CET 2002


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%"

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




More information about the Help mailing list