Vous êtes sur la page 1sur 2

Nagios XI - Enabling The NRPE Listener In

NSClient++ 0.3.x
The Industry Standard in IT Infrastructure Monitoring
Purpose
This document describes how to configure NRPE Listener in NSClient++ 0.3.x for Nagios XI on a remote windows machine. This
allows you to execute check_NRPE as well as check_NT. Some reasons you may want to use check_NRPE instead of check_NT are:
NSClient++ can be extended in several ways:

The CheckExternalScripts module can execute various user written script (as of now vb/batch/exe/perl/python/power shell/*).
The LUAScript scripting module can execute Lua scripts inside NSClient++.
Check_nrpe can be used to call custom plugins

NRPE also uses Secure Socket Layers.

Target Audience
This document is intended for use by Nagios XI Administrators using NRPE and NSClient++.

Requirements

A running Nagios XI server.


NSClient++ 0.3.x installed on the Windows Client

Note: This document is for version 0.3.x of NSClient++. For version 0.4.x of NSClient++ see:
http://assets.nagios.com/downloads/nagiosxi/docs/Enabling_the_NRPE_Listener_in_NSClient_0.4.x.pdf

Editing The nsc.ini File


1.

Log onto your remote windows machine as an


administrator. Open the configuration file (NSC.ini) in a text
editor for editing. By default the file is located in:
C:\Program Files\NSClient++\NSC.ini.

2.

Uncomment (or add) the following:

NRPEListener.dll

CheckExternalScripts.dll

3. Uncomment the allow_arguments option and set its


value to 1 (around line 125) with a text editor.
4.

Check over the edits you have made, and save the
modified nsc.ini file.

Nagios Enterprises, LLC US: 1-888-NAGIOS-1


P.O. Box 8154
Int'l: +1 651-204-9102
Saint Paul, MN 55108
Fax: +1 651-204-9103
USA

Web: www.nagios.com
Email:sales@nagios.com

Page 1
Copyright 2010 - 2014 Nagios Enterprises, LLC
Revision 1.0 July, 2014

Nagios XI - Enabling The NRPE Listener In


NSClient++ 0.3.x
Restarting The Windows Agent
Restart NSClient++ from a DOS command prompt with the following
commands on the Windows system, you may need to run this as an
administrator:
net stop nsclientpp
net start nsclientpp

Testing On The Nagios XI Server


Log in as root to the Nagios XI Server and enter the following:
cd /usr/local/nagios/libexec/
./check_nrpe -H [IP of the CLIENT system]

You now should see the I seem to be doing fine... output, verifying
the test is successful.

Finishing Up
You should now have successfully configured the NRPE Listener on the target system running NSClient++. For any other support
related questions, please visit the Nagios Support Forums at:
http://support.nagios.com/forum/
Additional References
Installing NSClient++
http://assets.nagios.com/downloads/nagiosxi/docs/Installing_The_XI_Windows_Agent.pdf
http://www.nsclient.org/nscp/wiki

Nagios Enterprises, LLC US: 1-888-NAGIOS-1


P.O. Box 8154
Int'l: +1 651-204-9102
Saint Paul, MN 55108
Fax: +1 651-204-9103
USA

Web: www.nagios.com
Email:sales@nagios.com

Page 2
Copyright 2010 - 2014 Nagios Enterprises, LLC
Revision 1.0 July, 2014

Vous aimerez peut-être aussi