NCPA: NRDP connect returns "NO TOKENS" result
Posted: Thu Nov 07, 2019 7:09 pm
Ahoy folks,
I have a RHEL6 node with NCPA installed and appears to be configured correctly (including a valid token).
I am attempting to leverage "passive checks" using rules defined within the NCPA config structure (EG: /usr/local/ncpa/etc/ncpa.cfg.d/nrdp.cfg).
While I see the NCPA appears to recognize / process my rules just fine, my nodes never seem to get any data through to the XI (via NRDP).
In tailing the logs on the monitored node, I see a "NO TOKENS" result passed back from NRDP.
I also get this when I try to use the XI NRDP interface directly (via a browser).
The monitored node exists as a host record on XI, and I have successful "active checks" (EG: PING) working just fine.
Also, nothing is showing up in the "XI: ADMIN > Unconfigured Objects" interface, which I understand is where I would perform the next step of work.
I am most keen to figure this out, as at present it would appear my ORG (who is on-boarding Nagios) is unable to make use of passive checks.
Is this something that has manifest before?
If so, how might I proceed to fix the matter?
Happy to collect further information as needed to support any efforts to figure this out.
# monitored node
OS: Red Hat Enterprise Linux Server release 6.10 (Santiago) (monitored node)
BITS: 64
NCPA: 2.1.6-1
# application node
OS: Red Hat Enterprise Linux Server release 7.7 (Maipo)
BITS: 64
XI: 5.6.6
Install type: Manual install
SSL: enabled (https://assets.nagios.com/downloads/nag ... s%20XI.pdf)
NOTE: XI is behind a software defined load-balancer (VMWare level as I recall), LB has the same SSL cert as what is setup in XI.
# /usr/local/ncpa/etc/ncpa.cfg.d/nrdp.cfg
# /usr/local/ncpa/var/log/ncpa_passive.log
I have a RHEL6 node with NCPA installed and appears to be configured correctly (including a valid token).
I am attempting to leverage "passive checks" using rules defined within the NCPA config structure (EG: /usr/local/ncpa/etc/ncpa.cfg.d/nrdp.cfg).
While I see the NCPA appears to recognize / process my rules just fine, my nodes never seem to get any data through to the XI (via NRDP).
In tailing the logs on the monitored node, I see a "NO TOKENS" result passed back from NRDP.
I also get this when I try to use the XI NRDP interface directly (via a browser).
The monitored node exists as a host record on XI, and I have successful "active checks" (EG: PING) working just fine.
Also, nothing is showing up in the "XI: ADMIN > Unconfigured Objects" interface, which I understand is where I would perform the next step of work.
I am most keen to figure this out, as at present it would appear my ORG (who is on-boarding Nagios) is unable to make use of passive checks.
Is this something that has manifest before?
If so, how might I proceed to fix the matter?
Happy to collect further information as needed to support any efforts to figure this out.
# monitored node
OS: Red Hat Enterprise Linux Server release 6.10 (Santiago) (monitored node)
BITS: 64
NCPA: 2.1.6-1
# application node
OS: Red Hat Enterprise Linux Server release 7.7 (Maipo)
BITS: 64
XI: 5.6.6
Install type: Manual install
SSL: enabled (https://assets.nagios.com/downloads/nag ... s%20XI.pdf)
NOTE: XI is behind a software defined load-balancer (VMWare level as I recall), LB has the same SSL cert as what is setup in XI.
# /usr/local/ncpa/etc/ncpa.cfg.d/nrdp.cfg
Code: Select all
[passive checks]
%HOSTNAME%|__HOST__ = system/agent_version
#%HOSTNAME%|Disk Usage = disk/logical/C:|/used_percent --warning 80 --critical 90 --units Gi
%HOSTNAME%|CPU Usage = cpu/percent --warning 60 --critical 80 --aggregate avg
%HOSTNAME%|Swap Usage = memory/swap --warning 60 --critical 80 --units Gi
#%HOSTNAME%|NCPA Passive Service Check = services?service=ncpa_passive&status=running&check=1
%HOSTNAME%|/opt Percentage Utilization = disk/logical/|opt/used_percent --warning 90 --critical 95
#%HOSTNAME%|Memory Usage = memory/virtual --warning 80 --critical 90 --units Gi
#%HOSTNAME%|Process Count = processes --warning 300 --critical 400
Code: Select all
2019-11-07 23:58:46,552 19711 DEBUG Starting new HTTPS connection (1): nagios.domain.tld
2019-11-07 23:58:46,634 19711 DEBUG https://nagios.domain.tld:443 "POST /nrdp/ HTTP/1.1" 200 115
2019-11-07 23:58:46,636 19711 DEBUG Content response from URL: <?xml version="1.0" encoding="utf-8"?>
<result>
<status>-1</status>
<message>NO TOKENS</message>
</result>
2019-11-07 23:58:46,636 19711 WARNING XML returned did not contain a message, or was malformed.
2019-11-07 23:58:46,637 19711 INFO Message from NRDP server: NO TOKENS
2019-11-07 23:58:46,637 19711 INFO Meta output from NRDP server: Nonexistent