Maxwell,Brady wrote: > > My nrpe.cfg on the remote host contains these commands > > command[check_disk]=/usr/local/nagios/libexec/check_disk -w $ARG1$ -c > $ARG2$ -p $ARG3$ > > command[check_disk1]=/usr/local/nagios/libexec/check_disk -w 20 -c 10 > -p /dev/vga/root > > running a check_nrpe from the command line has the following results. > > [EMAIL PROTECTED] ~]# /usr/local/nagios/libexec/check_nrpe -H hostname -c > check_disk –a 10 5 /dev/vga/root > > check_disk: Warning threshold must be integer or percentage! > > [EMAIL PROTECTED] ~]# /usr/local/nagios/libexec/check_nrpe -H hostname -c > check_disk1 > > DISK OK - free space: / 801 MB (12% inode=81%);| > /=5625MB;6405;6415;80;6425 > > I would like to be able to pass arguments to the remote system, > allowing me to set threshold values at the service level. > > Can anyone tell me why I get the error “Warning threshold must be > integer or percentage!” ? > > Or suggest another method of passing the args to the remote nrpe process? > > Thanks > > Brady > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > ------------------------------------------------------------------------ > > _______________________________________________ > Nagios-users mailing list > Nagios-users@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 Make sure that you set dont_blame_nrpe to 1 in nrpe.cfg to allow nrpe to accept client arguments. This is set to 0 by default as it is deemed a security risk
Aidan ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Nagios-users mailing list Nagios-users@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