[Nagiosplug-help] PB with arguments of check_disk used with check_nrpe

carole verdon verdon at cict.fr
Tue May 11 06:07:04 CEST 2004


Hi,

In first, in my nrpe.cfg, i define check_disk as following:
command[check_disk]=/usr/local/nagios/libexec/check_disk -w $ARG1$ -c
$ARG2$ -X $ARG3$ -X $ARG4$

and then i execute ./check_nrpe -H x.x.x.x -c check_disk -a 20% 10% lofs nfs

I have a display problem, the output is truncated.

So I decided to pass the different paths in nrpe.cfg:
command[check_disk]=/usr/local/nagios/libexec/check_disk -w $ARG1$ -c
$ARG2$ -p $ARG3$ -p $ARG4$ -p $ARG5$ -p $ARG6$ -p $ARG7$ -p $ARG8$ -p
$ARG9$ -p $ARG10$ -p $ARG11$

When i execute ./check_nrpe -H x.x.x.x -c check_disk -a 20% 10% / /tmp
/var/mail /usr/local, i obtain the following message:
check_disk: unrecognized option

The problem occurs from the argument $ARG6$ because of the return to the
line. How must i write this command line correctly in nrpe.cfg?

Can you help me, please?

Carole.







More information about the Help mailing list