PB with arguments of check_disk used with check_nrpe
carole verdon
verdon at cict.fr
Tue May 11 15:05:45 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.
-------------------------------------------------------
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to deliver
higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
_______________________________________________
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