NRDS_Win no plugin output

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
cbeattie-unitrends
Posts: 84
Joined: Mon Oct 10, 2016 2:51 pm

NRDS_Win no plugin output

Post by cbeattie-unitrends »

Hello,

I have one host on which the NRDS_Win plugins appear to produce no output. I have tried reinstalling NRDS_Win. The installation goes fine, and NRDS_Win is able to download its configuration and plugins from Nagios just fine. However, when the plugins are executed by the scheduled task, there is no output:

Code: Select all

4/20/2020 3:54:51 PM command to be run : C:\PROGRA~1\Nagios\NRDS_Win\plugins\check_pdm.exe --memory pagefile -w 80 -c 95
4/20/2020 3:54:51 PM command line executing : cmd /c C:\PROGRA~1\Nagios\NRDS_Win\plugins\check_pdm.exe --memory pagefile -w 80 -c 95 > %temp%\output.txt
4/20/2020 3:54:51 PM return results from plugin : 
4/20/2020 3:54:51 PM return code from plugin : 1
4/20/2020 3:54:51 PM command to be run : C:\PROGRA~1\Nagios\NRDS_Win\plugins\check_pdm.exe --memory virtual -w 80 -c 95
4/20/2020 3:54:51 PM command line executing : cmd /c C:\PROGRA~1\Nagios\NRDS_Win\plugins\check_pdm.exe --memory virtual -w 80 -c 95 > %temp%\output.txt
4/20/2020 3:54:51 PM return results from plugin : 
4/20/2020 3:54:51 PM return code from plugin : 1
4/20/2020 3:54:51 PM command to be run : C:\PROGRA~1\Nagios\NRDS_Win\plugins\check_winprocess.exe --warning 300 --critical 400
4/20/2020 3:54:51 PM command line executing : cmd /c C:\PROGRA~1\Nagios\NRDS_Win\plugins\check_winprocess.exe --warning 300 --critical 400 > %temp%\output.txt
4/20/2020 3:54:51 PM return results from plugin : 
4/20/2020 3:54:51 PM return code from plugin : 1
If I run a plugin manually, it produces the expected output:

Code: Select all

PS C:\Program Files> cmd /c C:\PROGRA~1\Nagios\NRDS_Win\plugins\check_winprocess.exe --warning 300 --critical 400
PROCESS OK - 55 process(es)|processes=55;300;400;
PS C:\Program Files>
I'm not sure when it stopped working. It used to work, and the same config works fine on other hosts. It's just this one that's not cooperating.

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

Re: NRDS_Win no plugin output

Post by scottwilkerson »

If you look at the command line in the config does it contain the following?

Code: Select all

 > %temp%\output.txt
I believe that is the problem
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
cbeattie-unitrends
Posts: 84
Joined: Mon Oct 10, 2016 2:51 pm

Re: NRDS_Win no plugin output

Post by cbeattie-unitrends »

TL;DR:
Rebooted problem host and the plugins started working again.

The config files for the non-working host and a working host are identical:

Code: Select all

[settings]
CONFIG_VERSION=0.6
CONFIG_OS=Windows (64-bit)
CONFIG_NAME=basic
URL=https://************/nrdp/
TOKEN=**************
PLUGIN_DIR=C:\Program Files\Nagios\NRDS_Win\plugins
SEND_NRDP=
TMPDIR=
COMMAND_PREFIX=
LOG_FILE=C:\Program Files\Nagios\NRDS_Win\logs\NRDS_Debug.log
IGNORE_SSL_CERTIFICATE_ERRORS=0
UPDATE_CONFIG=1
UPDATE_PLUGINS=1


[services]
command[__HOST__] = $PLUGIN_DIR$\check_winping.exe -H 127.0.0.1 --warning 200,40% --critical 400,80%
command[cpu] = $PLUGIN_DIR$\check_cpu.ps1 -w 80 -c 90
command[disk c] = $PLUGIN_DIR$\check_pdm.exe --disk --drive C: -w 80 -c 90
command[mem] = $PLUGIN_DIR$\check_pdm.exe --memory -w 90 -c 99
command[mem - pagefile] = $PLUGIN_DIR$\check_pdm.exe --memory pagefile -w 80 -c 95
command[mem - virtual] = $PLUGIN_DIR$\check_pdm.exe --memory virtual -w 80 -c 95
command[process count] = $PLUGIN_DIR$\check_winprocess.exe --warning 300 --critical 400


[extensions]
vbs = cscript //nologo $CHECK_COMMAND$
ps1 = powershell -ExecutionPolicy Bypass -File $CHECK_COMMAND$
The NRDS_Debug.log files are the same, too, except for the missing output. However, it turned out to be just a symptom of some other problem, not a problem with the plugins. A maintenance window presented itself so I was able to reboot the problem host. After the reboot, the plugins started returning output as expected.

Please feel free to lock this one as solved!
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: NRDS_Win no plugin output

Post by scottwilkerson »

cbeattie-unitrends wrote:TL;DR:
Rebooted problem host and the plugins started working again.

The config files for the non-working host and a working host are identical:

Code: Select all

[settings]
CONFIG_VERSION=0.6
CONFIG_OS=Windows (64-bit)
CONFIG_NAME=basic
URL=https://************/nrdp/
TOKEN=**************
PLUGIN_DIR=C:\Program Files\Nagios\NRDS_Win\plugins
SEND_NRDP=
TMPDIR=
COMMAND_PREFIX=
LOG_FILE=C:\Program Files\Nagios\NRDS_Win\logs\NRDS_Debug.log
IGNORE_SSL_CERTIFICATE_ERRORS=0
UPDATE_CONFIG=1
UPDATE_PLUGINS=1


[services]
command[__HOST__] = $PLUGIN_DIR$\check_winping.exe -H 127.0.0.1 --warning 200,40% --critical 400,80%
command[cpu] = $PLUGIN_DIR$\check_cpu.ps1 -w 80 -c 90
command[disk c] = $PLUGIN_DIR$\check_pdm.exe --disk --drive C: -w 80 -c 90
command[mem] = $PLUGIN_DIR$\check_pdm.exe --memory -w 90 -c 99
command[mem - pagefile] = $PLUGIN_DIR$\check_pdm.exe --memory pagefile -w 80 -c 95
command[mem - virtual] = $PLUGIN_DIR$\check_pdm.exe --memory virtual -w 80 -c 95
command[process count] = $PLUGIN_DIR$\check_winprocess.exe --warning 300 --critical 400


[extensions]
vbs = cscript //nologo $CHECK_COMMAND$
ps1 = powershell -ExecutionPolicy Bypass -File $CHECK_COMMAND$
The NRDS_Debug.log files are the same, too, except for the missing output. However, it turned out to be just a symptom of some other problem, not a problem with the plugins. A maintenance window presented itself so I was able to reboot the problem host. After the reboot, the plugins started returning output as expected.

Please feel free to lock this one as solved!
Great!

Glad it is resolved!

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