NCPA - error - Unable to run check on non-child node
Posted: Thu Jan 14, 2016 7:21 am
Hi All
I'm trying to run the plugin "check_windows_updates.ps1" using NCPA in passiv mode.
After having configured everything and restarted the NCPA services on the Windows Server, I get the correct message over NRDP to our Nagios XI Server.
But after 5 minutes the passive service on the Nagiox XI reports "Unknown" with the "Status Information" Unable to run check on non-child node. Revise your query.
Further below my ncpa.cfg file.
Why does it after a manual restart of the NCPA services work, but after the scheduled "sleep of 300" gives me an error?
[listener]
uid = nagios
certificate = adhoc
loglevel = info
ip = 0.0.0.0
gid = nagcmd
logfile = var/ncpa_listener.log
port = 5693
pidfile = var/ncpa_listener.pid
# Available versions: PROTOCOL SSLv2, SSLv3, TLSv1
ssl_version = TLSv1
[passive]
uid = nagios
handlers = nrdp
loglevel = info
gid = nagcmd
sleep = 300
logfile = var/ncpa_passive.log
pidfile = var/ncpa_passive.pid
[nrdp]
token =******
hostname =csvit111
parent =http://10.20.98.21/nrdp/
[nrds]
URL =None
CONFIG_VERSION = None
TOKEN = None
CONFIG_NAME = None
CONFIG_OS = None
PLUGIN_DIR=plugins/
UPDATE_CONFIG=0
UPDATE_PLUGINS=1
[api]
community_string =****
[plugin directives]
plugin_path = plugins/
.sh = /bin/sh $plugin_name $plugin_args
# .ps1 = powershell -ExecutionPolicy Bypass -File $plugin_name $plugin_args
.ps1 = powershell -ExecutionPolicy Bypass -File $plugin_name
.vbs = cscript $plugin_name $plugin_args //NoLogo
[passive checks]
%HOSTNAME%|WinUpdates = /agent/plugin/check_windows_updates.ps1
#%HOSTNAME%|cpu usage = /cpu/percent --warning 20 --critical 30
#%HOSTNAME%|swap usage = /memory/swap/percent --warning 40 --critical 80
#%HOSTNAME%|memory usage = /memory/virtual/percent --warning 60 --critical 80
I'm trying to run the plugin "check_windows_updates.ps1" using NCPA in passiv mode.
After having configured everything and restarted the NCPA services on the Windows Server, I get the correct message over NRDP to our Nagios XI Server.
But after 5 minutes the passive service on the Nagiox XI reports "Unknown" with the "Status Information" Unable to run check on non-child node. Revise your query.
Further below my ncpa.cfg file.
Why does it after a manual restart of the NCPA services work, but after the scheduled "sleep of 300" gives me an error?
[listener]
uid = nagios
certificate = adhoc
loglevel = info
ip = 0.0.0.0
gid = nagcmd
logfile = var/ncpa_listener.log
port = 5693
pidfile = var/ncpa_listener.pid
# Available versions: PROTOCOL SSLv2, SSLv3, TLSv1
ssl_version = TLSv1
[passive]
uid = nagios
handlers = nrdp
loglevel = info
gid = nagcmd
sleep = 300
logfile = var/ncpa_passive.log
pidfile = var/ncpa_passive.pid
[nrdp]
token =******
hostname =csvit111
parent =http://10.20.98.21/nrdp/
[nrds]
URL =None
CONFIG_VERSION = None
TOKEN = None
CONFIG_NAME = None
CONFIG_OS = None
PLUGIN_DIR=plugins/
UPDATE_CONFIG=0
UPDATE_PLUGINS=1
[api]
community_string =****
[plugin directives]
plugin_path = plugins/
.sh = /bin/sh $plugin_name $plugin_args
# .ps1 = powershell -ExecutionPolicy Bypass -File $plugin_name $plugin_args
.ps1 = powershell -ExecutionPolicy Bypass -File $plugin_name
.vbs = cscript $plugin_name $plugin_args //NoLogo
[passive checks]
%HOSTNAME%|WinUpdates = /agent/plugin/check_windows_updates.ps1
#%HOSTNAME%|cpu usage = /cpu/percent --warning 20 --critical 30
#%HOSTNAME%|swap usage = /memory/swap/percent --warning 40 --critical 80
#%HOSTNAME%|memory usage = /memory/virtual/percent --warning 60 --critical 80