Passive checks sending empty outputs
Posted: Fri Jan 08, 2021 4:00 am
Dear,
We are running into the following issue with a passive check on one of our systems. There are 3 identical systems like this one that dont give this issue.
The system is using the following configuration for passive checks
----------------------------
[settings]
CONFIG_VERSION=1.6
CONFIG_OS=Windows (64-bit)
CONFIG_NAME=MANUALLY REMOVED
URL=https://MANUALLY REMOVED/nrdp/
TOKEN=MANUALLY REMOVED
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=1
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[System - CPU] = $PLUGIN_DIR$\check_cpu.ps1 -w 70 -c 90
command[System - HDD] = $PLUGIN_DIR$\check_pdm.exe --disk --drive C: -w 75 -c 90
command[System - RAM] = $PLUGIN_DIR$\check_pdm.exe --memory -w 90 -c 99
command[Services -DNS] = $PLUGIN_DIR$\service_nrpe_nt.exe "DNS Client"
[extensions]
vbs = cscript //nologo $CHECK_COMMAND$
ps1 = powershell -ExecutionPolicy Bypass -File $CHECK_COMMAND$
---------------------------
Now the HDD, RAM, and the Host checks give no output when sending this.
When we open a command prompt and manually do the tests they work fine and give a output, but when we check the log "NRDS_Debug" we see the following
1/8/2021 9:45:01 AM XML to be posted to NRDP : token=MANUALLY REMOVED&cmd=submitcheck&XMLDATA=<?xml version='1.0'?><checkresults><checkresult type='host' checktype='1'><hostname>MANUALLY REMOVED</hostname><state>1</state><output></output></checkresult><checkresult type='service' checktype='1'><hostname>MANUALLY REMOVED</hostname><servicename>System - CPU</servicename><state>0</state><output>OK+%2D+CPU+usage+is+at+8+%25%7C%25%3D8%3B70%3B90</output></checkresult><checkresult type='service' checktype='1'><hostname>MANUALLY REMOVED</hostname><servicename>System - HDD</servicename><state>1</state><output></output></checkresult><checkresult type='service' checktype='1'><hostname>MANUALLY REMOVED</hostname><servicename>System - RAM</servicename><state>1</state><output></output></checkresult><checkresult type='service' checktype='1'><hostname>MANUALLY REMOVED</hostname><servicename>Services -DNS</servicename><state>0</state><output>DNS+Client+OK+</output></checkresult></checkresults>
For some reason both the HDD and the RAM give no output in the XML
System - HDD</servicename><state>1</state><output></output>
System - RAM</servicename><state>1</state><output></output>
What we have already tried
1) Remove and do a reinstall of the Nagios agent
2) checked the file privilege's with a known working system to make sure they have the correct access rights.
3) checked the files on this systems with a known working one
4) checked this forum
Does anyone know how we can resolve this?
We are running into the following issue with a passive check on one of our systems. There are 3 identical systems like this one that dont give this issue.
The system is using the following configuration for passive checks
----------------------------
[settings]
CONFIG_VERSION=1.6
CONFIG_OS=Windows (64-bit)
CONFIG_NAME=MANUALLY REMOVED
URL=https://MANUALLY REMOVED/nrdp/
TOKEN=MANUALLY REMOVED
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=1
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[System - CPU] = $PLUGIN_DIR$\check_cpu.ps1 -w 70 -c 90
command[System - HDD] = $PLUGIN_DIR$\check_pdm.exe --disk --drive C: -w 75 -c 90
command[System - RAM] = $PLUGIN_DIR$\check_pdm.exe --memory -w 90 -c 99
command[Services -DNS] = $PLUGIN_DIR$\service_nrpe_nt.exe "DNS Client"
[extensions]
vbs = cscript //nologo $CHECK_COMMAND$
ps1 = powershell -ExecutionPolicy Bypass -File $CHECK_COMMAND$
---------------------------
Now the HDD, RAM, and the Host checks give no output when sending this.
When we open a command prompt and manually do the tests they work fine and give a output, but when we check the log "NRDS_Debug" we see the following
1/8/2021 9:45:01 AM XML to be posted to NRDP : token=MANUALLY REMOVED&cmd=submitcheck&XMLDATA=<?xml version='1.0'?><checkresults><checkresult type='host' checktype='1'><hostname>MANUALLY REMOVED</hostname><state>1</state><output></output></checkresult><checkresult type='service' checktype='1'><hostname>MANUALLY REMOVED</hostname><servicename>System - CPU</servicename><state>0</state><output>OK+%2D+CPU+usage+is+at+8+%25%7C%25%3D8%3B70%3B90</output></checkresult><checkresult type='service' checktype='1'><hostname>MANUALLY REMOVED</hostname><servicename>System - HDD</servicename><state>1</state><output></output></checkresult><checkresult type='service' checktype='1'><hostname>MANUALLY REMOVED</hostname><servicename>System - RAM</servicename><state>1</state><output></output></checkresult><checkresult type='service' checktype='1'><hostname>MANUALLY REMOVED</hostname><servicename>Services -DNS</servicename><state>0</state><output>DNS+Client+OK+</output></checkresult></checkresults>
For some reason both the HDD and the RAM give no output in the XML
System - HDD</servicename><state>1</state><output></output>
System - RAM</servicename><state>1</state><output></output>
What we have already tried
1) Remove and do a reinstall of the Nagios agent
2) checked the file privilege's with a known working system to make sure they have the correct access rights.
3) checked the files on this systems with a known working one
4) checked this forum
Does anyone know how we can resolve this?