NRPE module on NSClient++ 0.4.3.1

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
MSPk
Posts: 317
Joined: Fri Aug 24, 2012 12:03 am

NRPE module on NSClient++ 0.4.3.1

Post by MSPk »

Hi Team,

We have upgraded to the nsclient 0.4.3.1 from 0.3.9 as we wanted real time event log monitoring. we were using couple of external scripts like check_winfile & check_logfiles amongst others to perform few checks. After we have upgraded to 0.4.3.1 I don't see the section external scripts in the new nsclient.ini file, when I add them under external scripts/alias section the checks fail with a message saying the commands are not defined. Please let me know the settings to enable external script checks and also how we can perform real time event log monitoring. I did go through some posts in the forum and the documentation but it is very confusing.
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: NRPE module on NSClient++ 0.4.3.1

Post by hsmith »

MSPk wrote:Hi Team,

We have upgraded to the nsclient 0.4.3.1 from 0.3.9 as we wanted real time event log monitoring. we were using couple of external scripts like check_winfile & check_logfiles amongst others to perform few checks. After we have upgraded to 0.4.3.1 I don't see the section external scripts in the new nsclient.ini file, when I add them under external scripts/alias section the checks fail with a message saying the commands are not defined. Please let me know the settings to enable external script checks and also how we can perform real time event log monitoring. I did go through some posts in the forum and the documentation but it is very confusing.
It may help to post your file so we can take a look at it.

Here's a few clippings from mine:

Code: Select all

[/modules]

; NRPEServer - A server that listens for incoming NRPE connection and processes incoming requests.
NRPEServer = 1



; CheckExternalScripts - Execute external scripts
CheckExternalScripts = 1

Code: Select all

[/settings/NRPE/server]
allow arguments = true
allow nasty characters = true

[/settings/external scripts]
allow nasty characters=true

Code: Select all

[/settings/external scripts/scripts]
delta_install = cmd /c echo scripts\check_windows_app_installs.ps1; exit($lastexitcode) | powershell.exe -command -
Former Nagios Employee.
me.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: NRPE module on NSClient++ 0.4.3.1

Post by Box293 »

MSPk wrote:After we have upgraded to 0.4.3.1 I don't see the section external scripts in the new nsclient.ini file, when I add them under external scripts/alias section the checks fail with a message saying the commands are not defined. Please let me know the settings to enable external script checks and also how we can perform real time event log monitoring.
I have a guide here that explains how to create the ini file with all the default settings:

http://sites.box293.com/nagios/guides/n ... t-ini-file
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked