Page 1 of 1

Ubunut: nrpe not accepting arguments

Posted: Wed Jun 25, 2014 5:36 am
by RIDS_I2MP
Hi Team,

We have installed npre 2.15 on our Ubuntu server. We have added nagiosxi server name and changed do not blame npre to 1 in Nagios.cfg file. We observe that nrpe agent is not accepting any arguments coming from Nagiosxi server. Can you please let us know what needs to be done to fix this.

$ /usr/local/nagios/libexec/check_nrpe -H <ip address>
NRPE v2.15
$/usr/local/nagios/libexec/check_nrpe -H <ip address>-c check_load -a '-w 1,1,1 -c 2,2,2'
Usage:
check_load [-r] -w WLOAD1,WLOAD5,WLOAD15 -c CLOAD1,CLOAD5,CLOAD15

when we execute on the server
$/usr/local/nagios/etc# /usr/local/nagios/libexec/check_load -w 1,2,3 -c 2,3,4
OK - load average: 0.00, 0.01, 0.05|load1=0.000;1.000;2.000;0; load5=0.010;2.000;3.000;0; load15=0.050;3.000;4.000;0;

Regards,
I2MP Team.

Re: Ubunut: nrpe not accepting arguments

Posted: Wed Jun 25, 2014 9:49 am
by slansing
Did you restart NRPE using the binary after making that change? Also, please share the nrpe.cfg file from that Ubuntu server so we can take a look at it, thanks!

Re: Ubunut: nrpe not accepting arguments

Posted: Wed Jun 25, 2014 10:03 am
by RIDS_I2MP
Yes we have restarted the nrpe post the changes. Please find the attached nrpe.cfg file.


Regards,
I2MP Team.

Re: Ubunut: nrpe not accepting arguments

Posted: Wed Jun 25, 2014 10:50 am
by slansing
You already have ARG's defined in the nrpe.cfg with -w and -c, try this one:

Code: Select all

/usr/local/nagios/libexec/check_nrpe -H <ip address>-c check_load -a '1,1,1' '2,2,2'

Re: Ubunut: nrpe not accepting arguments

Posted: Mon Jun 30, 2014 2:23 am
by RIDS_I2MP
We are able to send command line argument, thank you for the support. You can close this.


Regards,
I2MP Team.