Page 1 of 2
nrdp objects not in Unconfigured Objects
Posted: Thu May 28, 2015 6:05 pm
by grenley
Hi,
We're starting to build our production test environment and have a new XI server.
Our checks are all passive.
They're sending through nrds but nothing is showing up in "Unconfigured Objects".
Here's the XML transaction data that indicates XI successfully processed the data (from the remote nrds agent)
Code: Select all
<?xml version='1.0'?>
<checkresults>
<checkresult type='service' checktype='1'>
<hostname>mytest1.att.com</hostname>
<servicename>Proc_PLATMON-cron</servicename>
<state>0</state>
<output><![CDATA[PROCESS OK - no errors found]]></output>
</checkresult>
</checkresults>
1
200 OK
<?xml version="1.0" encoding="utf-8"?>
<result>
<status>0</status>
<message>OK</message>
<meta>
<output>1 checks processed.</output>
</meta>
</result>
We've never had this issue with our dev XI servers, so it must be something we missed in the XI configuration.
Rick
Re: nrdp objects not in Unconfigured Objects
Posted: Thu May 28, 2015 7:51 pm
by Box293
Just checking some basics, have you configured the NRDP Token in XI?
Admin > Check Transfers > Inbound Transfers
NRDP tab
Try a test from the NRDP webpage:
[url]http://nagiosxi_ip/nrdp/[/url]
When you do this, what is logged in:
Re: nrdp objects not in Unconfigured Objects
Posted: Fri May 29, 2015 12:00 am
by grenley
The tokens match.
Besides, if they didn't, you'd get this:
Code: Select all
1
200 OK
<?xml version="1.0" encoding="utf-8"?>
<result>
<status>-1</status>
<message>BAD TOKEN</message>
</result>
I submitted the sample xml (using the proper token) on the http://nagiosxi_ip/nrdp/ page and it returned this:
Code: Select all
<result>
<status>0</status>
<message>OK</message>
<meta>
<output>2 checks processed.</output>
</meta>
</result>
But nothing was written to nagios.log
Re: nrdp objects not in Unconfigured Objects
Posted: Fri May 29, 2015 11:06 am
by lmiltchev
Let's check one thing - go to Admin->Performance Settings->Subsystem tab and see if the "Enable Listener For Unconfigured Objects" check-box is selected.
Re: nrdp objects not in Unconfigured Objects
Posted: Fri May 29, 2015 11:47 am
by grenley
yes. "Enable Listener For Unconfigured Objects" is checked
Re: nrdp objects not in Unconfigured Objects
Posted: Fri May 29, 2015 12:18 pm
by abrist
Is the feedproc cron running on the XI server?
If so, are you getting any errors when tailing this log (when receiving checks through nrdp):
Code: Select all
tail -f /usr/local/nagiosxi/var/feedproc.log
Re: nrdp objects not in Unconfigured Objects
Posted: Fri May 29, 2015 12:39 pm
by grenley
yes, it's running.
and yes, we are getting php errors...
Code: Select all
PROCESSED 0 COMMANDS
tail: /usr/local/nagiosxi/var/feedproc.log: file truncated
PHP Warning: PHP Startup: Unable to load dynamic library '//opt/app/php/lib64/php/modules/curl.so' - //opt/app/php/lib64/php/modul0
PHP Warning: PHP Startup: Unable to load dynamic library '//opt/app/php/lib64/php/modules/fileinfo.so' - //opt/app/php/lib64/php/m0
PHP Warning: PHP Startup: Unable to load dynamic library '//opt/app/php/lib64/php/modules/json.so' - //opt/app/php/lib64/php/modul0
PHP Warning: PHP Startup: Unable to load dynamic library '//opt/app/php/lib64/php/modules/phar.so' - //opt/app/php/lib64/php/modul0
PHP Warning: PHP Startup: Unable to load dynamic library '//opt/app/php/lib64/php/modules/zip.so' - //opt/app/php/lib64/php/module0
PHP Warning: PHP Startup: Unable to load dynamic library '//opt/app/php/lib64/php/modules/curl.so' - //opt/app/php/lib64/php/modul0
PHP Warning: PHP Startup: Unable to load dynamic library '//opt/app/php/lib64/php/modules/fileinfo.so' - //opt/app/php/lib64/php/m0
PHP Warning: PHP Startup: Unable to load dynamic library '//opt/app/php/lib64/php/modules/json.so' - //opt/app/php/lib64/php/modul0
PHP Warning: PHP Startup: Unable to load dynamic library '//opt/app/php/lib64/php/modules/phar.so' - //opt/app/php/lib64/php/modul0
PHP Warning: PHP Startup: Unable to load dynamic library '//opt/app/php/lib64/php/modules/zip.so' - //opt/app/php/lib64/php/module0
Re: nrdp objects not in Unconfigured Objects
Posted: Fri May 29, 2015 12:43 pm
by abrist
What is the output of:
Code: Select all
cat /etc/php.d/mcrypt.ini
yum list installed | grep php
Re: nrdp objects not in Unconfigured Objects
Posted: Fri May 29, 2015 12:44 pm
by tmcdonald
Also, what OS and version is this server?
Is it a clean, minimal CentOS/RHEL install? It almost looks like a non-standard PHP installation is present.
Re: nrdp objects not in Unconfigured Objects
Posted: Fri May 29, 2015 12:51 pm
by grenley
cat /etc/php.d/mcrypt.ini
Code: Select all
; Enable mcrypt extension module
extension=mcrypt.so
yum list installed | grep php
Code: Select all
php-common.x86_64 5.3.3-40.el6_6 @prod-x86_64-server-6
php-ldap.x86_64 5.3.3-40.el6_6 @prod-x86_64-server-6
It's RHEL:
uname -r