[Nagiosplug-help] check_disk fails on line feed

Rasmus Plewe rplewe at ess.nec.de
Fri Nov 29 12:49:03 CET 2002


Hello,

On Fri, Nov 29, 2002 at 03:22:51PM -0500, Subhendu Ghosh wrote:
> On Thu, 28 Nov 2002, Rasmus Plewe wrote:
> > > 
> > > 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\"

About the first thing I did:

./check_by_ssh -H cs17 -C "/remote/nagios_plugins/check_disk -p \"/ /tmp\" -w 20% -c 1%" 
Unable to open pipe: /usr/bin/ssh cs17 '/remote/nagios_plugins/check_disk -p "/ /tmp" -w 20% -c 1%'tts:/usr/local/nagios/libexec # 


Regards,
         Rasmus




More information about the Help mailing list