Page 1 of 1

NRPE module on NSClient++ 0.4.3.1

Posted: Wed Sep 02, 2015 9:11 am
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.

Re: NRPE module on NSClient++ 0.4.3.1

Posted: Wed Sep 02, 2015 9:28 am
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 -

Re: NRPE module on NSClient++ 0.4.3.1

Posted: Wed Sep 02, 2015 7:37 pm
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