NRDP Not Showing Unconfigured Objects

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
wilsonckk
Posts: 11
Joined: Thu Jan 07, 2016 1:08 am

NRDP Not Showing Unconfigured Objects

Post by wilsonckk »

I'm having problem to show NRDP in Unconfigured Objects.

When I submit a test via the http://<server_address>/nrdp/ page, it shows:
Submit Nagios Command:
This XML file does not appear to have any style information associated with it. The document tree is shown below.
<result>
<status>0</status>
<message>OK</message>
</result>

Submit Check Data:
This XML file does not appear to have any style information associated with it. The document tree is shown below.
<result>
<status>0</status>
<message>OK</message>
<meta>
<output>2 checks processed</output>
</meta>
</result>

I've done the following:
1. ll -d /usr/local/nagios/var/spool/checkresults
drwsrwxr-x

2. ps -ef | grep feedproc
nagios 18818 18802 0 11:05 ? 00:00:00 /bin/sh -c /usr/bin/php -q /usr/local/nagiosxi/cron/freedproc.php > /usr/local/nagiosxi/var/feedproc.log 2 >& 1
nagios 18830 18819 0 11:05 ? 00:00:00 /usr/bin/php -q /usr/local/nagiosxi/cron/feedproc.php
root 19175 14791 0 11:05 pts/0 00:00:00 grep -- color=auto feedproc

3. tail -f /usr/local/nagiosxi/var/feedproc.log
tail: /usr/local/nagiosxi/var/feedproc.log: file truncated
.
PROCESSED 0 COMMANDS

4. Admin->System Config->Performance Settings->Subsystem tab->"Enabled Listener For Unconfigured Objects" - check-box enabled.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: NRDP Not Showing Unconfigured Objects

Post by rkennedy »

Please run a tail -f /var/log/httpd/*_log and attempt to submit again - post this for us to review. Do you notice any errors?

Next - what version of XI are you running?

Lastly, can you PM over a profile to myself, and dwhitfield for us to review? It could be something small affecting it here.
Former Nagios Employee
wilsonckk
Posts: 11
Joined: Thu Jan 07, 2016 1:08 am

Re: NRDP Not Showing Unconfigured Objects

Post by wilsonckk »

Here are some of the log after running tail -f /var/log/httpd/*_log:

Code: Select all

==> /var/log/httpd/access_log <==
::1 - - [08/Feb/2017:17:28:52 +0800] "POST /nagiosxi/backend/ HTTP/1.1" 200 1590 "-" "BinGet/1.00.A (http://www.bin-co.com/php/scripts/load/)"
192.168.10.200 - - [08/Feb/2017:17:28:52 +0800] "GET /nagiosxi/ajaxhelper.php?cmd=getxicoreajax&opts=%7B%22func%22%3A%22get_pagetop_alert_content_html%22%2C%22args%22%3A%22%22%7D&nsp=85eeb7b4cfe4297459ab2b698249f3e0e06979f1be3e3022eb408c0fb25b529e HTTP/1.1" 200 1152 "http://192.168.10.200/nagiosxi/admin/" "Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Firefox/38.0"
::1 - - [08/Feb/2017:17:28:52 +0800] "POST /nagiosxi/backend/ HTTP/1.1" 200 1590 "-" "BinGet/1.00.A (http://www.bin-co.com/php/scripts/load/)"
192.168.10.200 - - [08/Feb/2017:17:28:52 +0800] "GET /nagiosxi/ajaxhelper.php?cmd=getxicoreajax&opts=%7B%22func%22%3A%22get_tray_alert_html%22%2C%22args%22%3A%22%22%7D&nsp=85eeb7b4cfe4297459ab2b698249f3e0e06979f1be3e3022eb408c0fb25b529e HTTP/1.1" 200 752 "http://192.168.10.200/nagiosxi/admin/" "Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Firefox/38.0"
::1 - - [08/Feb/2017:17:29:01 +0800] "POST /nagiosxi/backend/ HTTP/1.1" 200 805 "-" "BinGet/1.00.A (http://www.bin-co.com/php/scripts/load/)"
::1 - - [08/Feb/2017:17:29:22 +0800] "POST /nagiosxi/backend/ HTTP/1.1" 200 805 "-" "BinGet/1.00.A (http://www.bin-co.com/php/scripts/load/)"
::1 - - [08/Feb/2017:17:29:22 +0800] "POST /nagiosxi/backend/ HTTP/1.1" 200 1590 "-" "BinGet/1.00.A (http://www.bin-co.com/php/scripts/load/)"
192.168.10.200 - - [08/Feb/2017:17:29:22 +0800] "GET /nagiosxi/ajaxhelper.php?cmd=getxicoreajax&opts=%7B%22func%22%3A%22get_tray_alert_html%22%2C%22args%22%3A%22%22%7D&nsp=85eeb7b4cfe4297459ab2b698249f3e0e06979f1be3e3022eb408c0fb25b529e HTTP/1.1" 200 752 "http://192.168.10.200/nagiosxi/admin/" "Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Firefox/38.0"
::1 - - [08/Feb/2017:17:29:22 +0800] "POST /nagiosxi/backend/ HTTP/1.1" 200 1590 "-" "BinGet/1.00.A (http://www.bin-co.com/php/scripts/load/)"
192.168.10.200 - - [08/Feb/2017:17:29:22 +0800] "GET /nagiosxi/ajaxhelper.php?cmd=getxicoreajax&opts=%7B%22func%22%3A%22get_pagetop_alert_content_html%22%2C%22args%22%3A%22%22%7D&nsp=85eeb7b4cfe4297459ab2b698249f3e0e06979f1be3e3022eb408c0fb25b529e HTTP/1.1" 200 1152 "http://192.168.10.200/nagiosxi/admin/" "Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Firefox/38.0"

==> /var/log/httpd/error_log <==
[Tue Feb 07 13:37:44.421048 2017] [mpm_prefork:notice] [pid 9635] AH00163: Apache/2.4.6 (Red Hat Enterprise Linux) OpenSSL/1.0.1e-fips PHP/5.4.16 configured -- resuming normal operations
[Tue Feb 07 13:37:44.421078 2017] [core:notice] [pid 9635] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
[Wed Feb 08 17:18:09.708361 2017] [mpm_prefork:notice] [pid 9635] AH00170: caught SIGWINCH, shutting down gracefully
[Wed Feb 08 17:18:11.193789 2017] [suexec:notice] [pid 25815] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
AH00557: httpd: apr_sockaddr_info_get() failed for NAGIOSSVR
AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1. Set the 'ServerName' directive globally to suppress this message
[Wed Feb 08 17:18:11.290862 2017] [auth_digest:notice] [pid 25815] AH01757: generating secret for digest authentication ...
[Wed Feb 08 17:18:11.291260 2017] [lbmethod_heartbeat:notice] [pid 25815] AH02282: No slotmem from mod_heartmonitor
[Wed Feb 08 17:18:11.363260 2017] [mpm_prefork:notice] [pid 25815] AH00163: Apache/2.4.6 (Red Hat Enterprise Linux) OpenSSL/1.0.1e-fips PHP/5.4.16 configured -- resuming normal operations
[Wed Feb 08 17:18:11.363287 2017] [core:notice] [pid 25815] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'

==> /var/log/httpd/ssl_access_log <==

==> /var/log/httpd/ssl_error_log <==
[Sun Feb 05 03:07:01.580512 2017] [ssl:warn] [pid 1027] AH01909: RSA certificate configured for 127.0.0.1:443 does NOT include an ID which matches the server name
[Mon Feb 06 14:26:06.756191 2017] [ssl:warn] [pid 1147] AH01909: RSA certificate configured for 127.0.0.1:443 does NOT include an ID which matches the server name
[Mon Feb 06 14:26:06.804196 2017] [ssl:warn] [pid 1147] AH01909: RSA certificate configured for 127.0.0.1:443 does NOT include an ID which matches the server name
[Tue Feb 07 13:37:44.374088 2017] [ssl:warn] [pid 9635] AH01909: RSA certificate configured for 127.0.0.1:443 does NOT include an ID which matches the server name
[Tue Feb 07 13:37:44.391021 2017] [ssl:warn] [pid 9635] AH01909: RSA certificate configured for 127.0.0.1:443 does NOT include an ID which matches the server name
[Wed Feb 08 17:18:11.251757 2017] [ssl:warn] [pid 25815] AH01909: RSA certificate configured for 127.0.0.1:443 does NOT include an ID which matches the server name
[Wed Feb 08 17:18:11.291640 2017] [ssl:warn] [pid 25815] AH01909: RSA certificate configured for 127.0.0.1:443 does NOT include an ID which matches the server name

==> /var/log/httpd/ssl_request_log <==

==> /var/log/httpd/access_log <==
::1 - - [08/Feb/2017:17:29:42 +0800] "POST /nagiosxi/backend/ HTTP/1.1" 200 806 "-" "BinGet/1.00.A (http://www.bin-co.com/php/scripts/load/)"
::1 - - [08/Feb/2017:17:29:52 +0800] "POST /nagiosxi/backend/ HTTP/1.1" 200 1590 "-" "BinGet/1.00.A (http://www.bin-co.com/php/scripts/load/)"
192.168.10.200 - - [08/Feb/2017:17:29:52 +0800] "GET /nagiosxi/ajaxhelper.php?cmd=getxicoreajax&opts=%7B%22func%22%3A%22get_pagetop_alert_content_html%22%2C%22args%22%3A%22%22%7D&nsp=85eeb7b4cfe4297459ab2b698249f3e0e06979f1be3e3022eb408c0fb25b529e HTTP/1.1" 200 1152 "http://192.168.10.200/nagiosxi/admin/" "Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Firefox/38.0"
Version is XI is 5.2.9 - trial version

As to last question, please show me how to do it? Sorry I'm new to Nagios as I'm assessing Nagios XI for my company network monitoring projects.
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: NRDP Not Showing Unconfigured Objects

Post by mcapra »

To obtain a system profile, from the Nagios XI GUI you can navigate to Admin -> System Profile -> Download Profile.
2017_02_09_12_22_01_Administration_Nagios_XI.png
Your GUI may look a little different, but the basic process is the same.
You do not have the required permissions to view the files attached to this post.
Former Nagios employee
https://www.mcapra.com/
wilsonckk
Posts: 11
Joined: Thu Jan 07, 2016 1:08 am

Re: NRDP Not Showing Unconfigured Objects

Post by wilsonckk »

I do a tcpdump on port 80 and use Wireshark to open the pcap. I can see that Nagios Server Workstation is able to receive the results send by client, but it did not appear on "Unconfigured Objects".

The results are as follow:
POST /nrdp// HTTP/1.1
User-Agent: curl/7.29.0
Host: xxx.xxx.xx.xxx
Accept: */*
Content-Length: 1905
Content-Type: application/x-www-form-urlencoded
Expect: 100-continue

HTTP/1.1 100 Continue

token=xxx&cmd=submitcheck&XMLDATA=<?xml version='1.0'?><checkresults><checkresult type='host' checktype='1'>
<hostname>xxx</hostname>
<state>0</state>
<output>PING OK - Packet loss = 0%, RTA = 0.02 ms|rta=0.018000ms;200.000000;400.000000;0.000000 pl=0%;40;80;0</output></checkresult><checkresult type='service' checktype='1'>
<servicename>Check Users</servicename>
<hostname>xxx</hostname>
<state>0</state>
<output>USERS OK - 2 users currently logged in |users=2;5;10;0</output></checkresult><checkresult type='service' checktype='1'>
<servicename>Check Load</servicename>
<hostname>xxx</hostname>
<state>0</state>
<output>OK - load average: 0.01, 0.03, 0.05|load1=0.010;15.000;30.000;0; load5=0.030;10.000;25.000;0; load15=0.050;5.000;20.000;0; </output></checkresult><checkresult type='service' checktype='1'>
<servicename>Check Disk</servicename>
<hostname>xxx</hostname>
<state>0</state>
<output>DISK OK - free space: / 1501236 MB (99% inode=99%);| /=6607MB;1206274;1357058;0;1507843</output></checkresult><checkresult type='service' checktype='1'>
<servicename>Check Zombie Procs</servicename>
<hostname>xxx</hostname>
<state>0</state>
<output>PROCS OK: 0 processes with STATE = Z</output></checkresult><checkresult type='service' checktype='1'>
<servicename>Check Total Procs</servicename>
<hostname>xxx</hostname>
<state>2</state>
<output>PROCS CRITICAL: 254 processes</output></checkresult></checkresults>HTTP/1.1 200 OK
Date: Mon, 13 Feb 2017 01:41:32 GMT
Server: Apache/2.4.6 (Red Hat Enterprise Linux) OpenSSL/1.0.1e-fips PHP/5.4.16
X-Powered-By: PHP/5.4.16
Content-Length: 170
Content-Type: text/xml

<?xml version="1.0" encoding="utf-8"?>
<result>
<status>0</status>
<message>OK</message>
<meta>
<output>6 checks processed.</output>
</meta>
</result>

Mod Edit: Profile received and shared with technicians.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: NRDP Not Showing Unconfigured Objects

Post by tgriep »

When you went to the NRDP page, did you put in a valid token in the Submit Check Data section when you were testing this?
You may want to reset the token and try running the test again.
Can you run the following as root on the server and post the output?

Code: Select all

ls -l /usr/local/nagiosxi/var
cat /usr/local/nagiosxi/var/corelog.newobjects
Be sure to check out our Knowledgebase for helpful articles and solutions!
wilsonckk
Posts: 11
Joined: Thu Jan 07, 2016 1:08 am

Re: NRDP Not Showing Unconfigured Objects

Post by wilsonckk »

When doing Submit Check Data, the results are as follows:
<result>
<status>0</status>
<message>OK</message>
<meta>
<output>2 checks processed.</output>
</meta>
</result>

I've tried resetting the tokens a few times already.

ls -l /usr/local/nagiosxi/var

[root@NAGIOSSVR tmp]# ls -l /usr/local/nagios/var/
total 880
drwxrwxr-x. 2 nagios nagios 4096 Feb 14 00:00 archives
-rw-r--r-- 1 nagios nagios 0 Feb 14 09:33 host-perfdata
-rw-r--r--. 1 nagios nagios 34 Feb 13 13:40 nagios.configtest
-rw-r----- 1 nagios nagios 5 Feb 10 14:20 nagios.lock
-rw-r--r-- 1 nagios nagios 424615 Feb 14 09:33 nagios.log
-rw-r----- 1 nagios nagios 5 Feb 10 14:20 ndo2db.lock
-rw-r--r-- 1 nagios nagios 0 Feb 10 14:19 ndomod.tmp
srwxr-x--- 1 nagios nagios 0 Feb 10 14:20 ndo.sock
-rw-r--r--. 1 nagios nagios 40920 Feb 10 14:21 npcd.log
-rw-r--r--. 1 nagios nagios 84965 Feb 10 14:20 objects.cache
-rw-r--r--. 1 nagios nagios 84965 Feb 13 13:40 objects.precache
-rw-rw-r-- 1 nagios nagios 12315 Feb 10 14:21 perfdata.log
-rw------- 1 nagios nagios 107702 Feb 14 09:20 retention.dat
drwsr-xr-x. 2 nagios nagios 39 Feb 10 14:20 rw
-rw-r--r-- 1 nagios nagios 0 Feb 14 09:33 service-perfdata
drwxrwxr-x. 5 nagios nagios 52 Oct 21 20:20 spool
drwxrwxr-x. 2 nagios nagios 21 Feb 14 09:33 stats
-rw-rw-r-- 1 nagios nagios 108303 Feb 14 09:33 status.dat

cat /usr/local/nagiosxi/var/corelog.newobjects

a:0:{}
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: NRDP Not Showing Unconfigured Objects

Post by dwhitfield »

Can you post your /usr/local/nrdp/server/plugins/nrdsconfigupdate/nrdsconfigupdate.inc.php? You can PM it if necessary.

You've got errors in your profile starting and ending on Feb 6. Did you do something to correct these errors? Line 270 is the line of interest.

UPDATE: nrdsconfigupdate.inc.php received.
wilsonckk
Posts: 11
Joined: Thu Jan 07, 2016 1:08 am

Re: NRDP Not Showing Unconfigured Objects

Post by wilsonckk »

I've not done anything to the error as I've no idea how to do it.
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: NRDP Not Showing Unconfigured Objects

Post by dwhitfield »

wilsonckk wrote: Version is XI is 5.2.9 - trial version

Sorry I'm new to Nagios as I'm assessing Nagios XI for my company network monitoring projects.
We generally don't tell people to upgrade unless there's a specific bug that will resolve their issue, but considering you are currently just evaluating, is there a reason you are using 5.2.9? The current version is https://assets.nagios.com/downloads/nag ... 4.2.tar.gz

If you need an offline installed, I would suggest 5.3.3: http://repo.nagios.com/ Not every version has an offline installer. 5.4 does come with an offline installer, but there is a bug that while it doesn't hit everyone, does cause a segfault. That was fixed in 5.4.2, but I don't think there will be an offline for 5.4.2. Right now, I'd suspect 5.4.3 and while I don't have a release date for either version of 5.4.3, I suspect the regular installer should be out sooner rather than later.
Locked