Ubunut: nrpe not accepting arguments

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
RIDS_I2MP
Posts: 751
Joined: Thu Mar 13, 2014 9:25 am

Ubunut: nrpe not accepting arguments

Post 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.
Thanks & Regards,
I2MP Team.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Ubunut: nrpe not accepting arguments

Post 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!
RIDS_I2MP
Posts: 751
Joined: Thu Mar 13, 2014 9:25 am

Re: Ubunut: nrpe not accepting arguments

Post by RIDS_I2MP »

Yes we have restarted the nrpe post the changes. Please find the attached nrpe.cfg file.


Regards,
I2MP Team.
You do not have the required permissions to view the files attached to this post.
Thanks & Regards,
I2MP Team.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Ubunut: nrpe not accepting arguments

Post 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'
RIDS_I2MP
Posts: 751
Joined: Thu Mar 13, 2014 9:25 am

Re: Ubunut: nrpe not accepting arguments

Post by RIDS_I2MP »

We are able to send command line argument, thank you for the support. You can close this.


Regards,
I2MP Team.
Thanks & Regards,
I2MP Team.
Locked