Convert NSClient to NRPE

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
AWS
Posts: 63
Joined: Fri May 13, 2011 4:33 pm
Location: Vancouver, WA

Convert NSClient to NRPE

Post by AWS »

Linux Distribution and version
CentOS release 5.7 (final)
32-bitManual Install of XI
no Gnome, no proxy, no SSL

So it's time to convert my existing check_nt calls to check_nrpe. It looks like, out of the box, NSCP-0.4.0.153.x64 (04/02/2012) is supporting NRPE but not NSClient (even though during install I select NSClient/check_nt). If I'm missing something here, I'm open for a correction there, too.

I had this server already working fine in NagiosXI using check_nt and port 12489. Migrated the server to new HW, installed latest NSClient++ and nothing responds. Boiled it down to NSClient++ not configured for check_nt but only for check_nrpe.

I'm looking at my config for XI and notice it's all set for check_nt commands. Is there a wizard for XI that will use NRPE instead of NSClient? I don't mind manually changing the config. Here is the command from within XI Configure Service:
Image
nsclient1

Below is the current config for CPU check using NSClient in Nagios Core Config Manager:
Image
nsclient2

I tried changing Check command* to check_nrpe and then shifted $ARG2$ and $ARG3$ to $ARG1$ and $ARG2$ respectively. The result at least "talked" to the remote server and I got a response but it was a bad config so I didn't get the response I wanted.

What do I need to do to convert my calls to NRPE? There has to be a wiki or sticky somewhere but I'm just not finding it.

Thanks.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Convert NSClient to NRPE

Post by scottwilkerson »

NRPE is available on nscp but you need to uncomment NRPEListener.dll in the NSC.ini

Then, yo need to realize that the commands are different, for example there is not CHECKLOAD on nrpe (unless you make an alias for it).
You can review the doc's here
http://www.nsclient.org/nscp/wiki/doc/usage/nagios/nrpe
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
AWS
Posts: 63
Joined: Fri May 13, 2011 4:33 pm
Location: Vancouver, WA

Re: Convert NSClient to NRPE

Post by AWS »

Thank you for your support.

I have changed the argument to "checkCPU", thx. I believe I have also created my argument list correctly:
$ARG1$ = CheckCPU
$ARG2$ = -a warn=80 crit=95 time=20m time=10s time=4

(ref: http://www.nsclient.org/nscp/wiki/CheckCPU)

Result in XI is:
Request contained arguments (not currently allowed, check the allow_arguments option).

So I open nsclient.ini (name also new in this version) and enter the setting:
; Section for NRPE (NRPEListener.dll) (check_nrpe) protocol options.
[/settings/NRPE/server]
allow arguments = 1

and it's all good.

Some notes to others. It looks like allow_arguments has been changed to allow arguments (no underscore, but a space) and nsc.ini has been changed to nsclient.ini
(ref: http://www.nsclient.org/nscp/wiki/doc/c ... tion/0.4.x)

Resolved.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Convert NSClient to NRPE

Post by scottwilkerson »

excellent
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked