Page 2 of 3

Re: NRDP Not Showing Unconfigured Objects

Posted: Wed Feb 22, 2017 1:05 am
by wilsonckk
There is no reason why I used version 5.2.9. I'm evaluating Nagios XI few months back, then stop for a couple of months to do other project. Then back to this evaluation as this project is about to kick start.

I'm doing an offline installation. I've already setup the whole monitoring for the project, though just about 50 nodes, once I got this issue resolve, I'm good to start.

Can you see where the issue lies with? If I need to do another offline installation, will all my current setup effected?

Re: NRDP Not Showing Unconfigured Objects

Posted: Wed Feb 22, 2017 5:17 pm
by tgriep
If you do another Offline install, you would run the upgrade instead and that should leave your current settings intact.

Can you login to the server as root, run the following commands and post the output?

Code: Select all

ls -l /usr/local/nagios/var/rw/
ls -l /usr/local/nagiosxi/
ls -l /usr/local/nagiosxi/tmp
ls -l /usr/local/nagiosxi/var
Can you post this file from the server?

Code: Select all

/usr/local/nrdp/server/config.inc.php
When you installed the server, was there any customization done to the system?
Directory paths changed, etc...?

Re: NRDP Not Showing Unconfigured Objects

Posted: Sun Feb 26, 2017 8:15 pm
by wilsonckk
ls -l /usr/local/nagios/var/rw/

Code: Select all

total 0
prw-rw---- 1 nagios nagios 0 Feb 20 17:54 nagios.cmd
srw-rw---- 1 nagios nagios 0 Feb 10 14:20 nagios.qh
ls -l /usr/local/nagiosxi/

Code: Select all

total 20
drwxr-xr-x.  2 nagios nagios 4096 Feb  7 10:54 cron
drwxr-xr-x.  3 nagios nagios   44 Oct 21 20:21 etc
drwxr-xr-x. 19 nagios nagios 4096 Oct 21 20:21 html
drwxr-xr-x.  3 nagios nagios   24 Oct 21 20:21 nom
drwxr-xr-x.  2 nagios nagios 4096 Feb 24 13:49 scripts
drwsrwsr-x.  2 apache nagios    6 Feb 15 11:06 tmp
drwxr-xr-x.  2 nagios nagios 4096 Jan 26 09:41 tools
drwxr-xr-x.  5 nagios nagios 4096 Feb 24 16:26 var
ls -l /usr/local/nagiosxi/tmp/

Code: Select all

total 0
ls -l /usr/local/nagiosxi/var/

Code: Select all

total 296
-rw-r--r--  1 nagios users    362 Feb 24 16:27 cleaner.log
-rw-r--r--  1 nagios users    362 Jan 20 07:59 cleaner.log-20170122
-rw-r--r--  1 nagios users    362 Feb  7 03:41 cleaner.log-20170207
-rw-r--r--  1 nagios users    362 Feb 12 03:31 cleaner.log-20170212
-rw-r--r--  1 nagios users    362 Feb 19 03:49 cleaner.log-20170219
-rw-r--r--  1 nagios users     79 Feb 24 16:27 cmdsubsys.log
-rw-r--r--  1 nagios users     80 Jan 20 08:00 cmdsubsys.log-20170122
-rw-r--r--  1 nagios users     81 Feb  7 03:42 cmdsubsys.log-20170207
-rw-r--r--  1 nagios users     80 Feb 12 03:32 cmdsubsys.log-20170212
-rw-r--r--  1 nagios users     81 Feb 19 03:50 cmdsubsys.log-20170219
drwsrwsr-x. 2 apache nagios     6 Feb 10 09:27 components
-rw-r--r--. 1 nagios users      7 Feb 24 16:27 corelog.data
-rw-r--r--. 1 nagios users    165 Feb 24 16:27 corelog.diff
-rwxrwxr-x  1 nagios nagios     6 Feb  3 13:35 corelog.newobjects
-rw-r--r--  1 nagios users  10451 Feb 24 16:26 dbmaint.log
-rw-r--r--  1 nagios users   2625 Jan 20 07:55 dbmaint.log-20170122
-rw-r--r--  1 nagios users   2625 Feb  7 03:40 dbmaint.log-20170207
-rw-r--r--  1 nagios users   2625 Feb 12 03:30 dbmaint.log-20170212
-rw-r--r--  1 nagios users   2625 Feb 19 03:45 dbmaint.log-20170219
-rw-r--r--  1 nagios users     75 Feb 24 16:25 deadpool.log
-rw-r--r--  1 nagios users     75 Jan 20 07:55 deadpool.log-20170122
-rw-r--r--  1 nagios users     75 Feb  7 03:40 deadpool.log-20170207
-rw-r--r--  1 nagios users     75 Feb 12 03:30 deadpool.log-20170212
-rw-r--r--  1 nagios users     75 Feb 19 03:45 deadpool.log-20170219
-rw-r--r--  1 nagios users  11959 Feb 24 16:27 eventman.log
-rw-r--r--  1 nagios users  19114 Jan 20 08:00 eventman.log-20170122
-rw-r--r--  1 nagios users  11969 Feb  7 03:42 eventman.log-20170207
-rw-r--r--  1 nagios users  11959 Feb 12 03:32 eventman.log-20170212
-rw-r--r--  1 nagios users   9574 Feb 19 03:50 eventman.log-20170219
-rw-r--r--  1 nagios users     25 Feb 24 16:27 feedproc.log
-rw-r--r--  1 nagios users     25 Jan 20 08:00 feedproc.log-20170122
-rw-r--r--  1 nagios users     25 Feb  7 03:42 feedproc.log-20170207
-rw-r--r--  1 nagios users     25 Feb 12 03:32 feedproc.log-20170212
-rw-r--r--  1 nagios users     25 Feb 19 03:50 feedproc.log-20170219
-rw-r--r--  1 nagios users    976 Feb 24 16:27 load_url.log
-rw-r--r--  1 nagios users   1014 Jan  6 19:56 load_url.log-20170108
-rw-r--r--  1 nagios users    978 Feb 11 03:36 load_url.log-20170211
-rw-r--r--  1 nagios users    976 Feb 12 03:31 load_url.log-20170212
-rw-r--r--  1 nagios users    978 Feb 19 03:49 load_url.log-20170219
-rw-r--r--. 1 nagios users      0 Feb 24 16:27 nom.log
-rw-r--r--  1 nagios users     81 Feb 24 16:27 perfdataproc.log
-rw-r--r--  1 nagios users     81 Jan 20 08:00 perfdataproc.log-20170122
-rw-r--r--  1 nagios users     81 Feb  7 03:42 perfdataproc.log-20170207
-rw-r--r--  1 nagios users     81 Feb 12 03:32 perfdataproc.log-20170212
-rw-r--r--  1 nagios users     81 Feb 19 03:50 perfdataproc.log-20170219
-rw-r--r--  1 nagios users    273 Feb 24 16:01 recurringdowntime.log
-rw-r--r--  1 nagios users    273 Jan 20 07:01 recurringdowntime.log-20170122
-rw-r--r--  1 nagios users    273 Feb  7 03:01 recurringdowntime.log-20170207
-rw-r--r--  1 nagios users    273 Feb 12 03:01 recurringdowntime.log-20170212
-rw-r--r--  1 nagios users    273 Feb 19 03:01 recurringdowntime.log-20170219
-rw-r--r--. 1 nagios users      0 Feb 24 16:27 reportengine.log
drwxr-xr-x. 2 nagios nagios    47 Feb 10 14:20 subsys
-rw-r--r--  1 nagios users   8083 Feb 24 16:27 sysstat.log
-rw-r--r--  1 nagios users   8075 Jan 20 08:00 sysstat.log-20170122
-rw-r--r--  1 nagios users   8071 Feb  7 03:42 sysstat.log-20170207
-rw-r--r--  1 nagios users   8078 Feb 12 03:32 sysstat.log-20170212
-rw-r--r--  1 nagios users   8041 Feb 19 03:50 sysstat.log-20170219
drwxr-xr-x. 2 nagios nagios     6 Oct 21 20:21 upgrades
-rw-r--r--. 1 nagios nagios  6572 Oct 21 20:21 xi-sys.cfg
-rw-r--r--. 1 nagios nagios   195 Oct 21 20:21 xiversion
/usr/local/nrdp/server/config.inc.php

Code: Select all

<?php
// NRDP Config File
// Copyright (c) 2010 Nagios Enterprises, LLC.
// License: Nagios Open Software License <http://www.nagios.com/legal/licenses>
//
// $Id$


// an array of one or more tokens that are valid for this NRDP install
// a client request must contain a valid token in order for the NRDP to response or honor the request
// NOTE: tokens are just alphanumeric strings - make them hard to guess!
$cfg['authorized_tokens']=array("xxxx",);

// do we require that HTTPS be used to access NRDP?
// set this value to 'false' to disable HTTPS requirement
$cfg["require_https"]=false;

// do we require that basic authentication be used to access NRDP?
// set this value to 'false' to disable basic auth requirement
$cfg["require_basic_auth"]=false;

// what basic authentication users are allowed to access NRDP?
// comment this variable out to allow all authenticated users access to the NRDP
$cfg["valid_basic_auth_users"]=array();

// the name of the system group that has write permissions to the external command file
// this group is also used to set file permissions when writing bulk commands or passive check results
// NOTE: both the Apache and Nagios users must be a member of this group
$cfg["nagios_command_group"]="nagcmd";

// full path to Nagios external command file
$cfg["command_file"]="/usr/local/nagios/var/rw/nagios.cmd";

// full path to check results spool directory
$cfg["check_results_dir"]="/usr/local/nagios/var/spool/checkresults";

// full path to directory where temp scratch files can be written
// NOTE: the Apache user need to be able create files here, and the Nagios user needs to read/delete those same files, so the /tmp system directory won't work (it has a sticky bit on it)
$cfg["tmp_dir"]="/usr/local/nagiosxi/tmp";

// Should we allow external commands? Set to TRUE or FALSE (Boolean, not a string)
$cfg["disable_external_commands"]=false;

///////// DONT MODIFY ANYTHING BELOW THIS LINE /////////

$cfg['product_name']='nrdp';
$cfg['product_version']='1.3.1';

The Nagios Server is installed with Redhat 7.1 with OS hardening. No other customization done to the system.

Re: NRDP Not Showing Unconfigured Objects

Posted: Mon Feb 27, 2017 10:21 am
by tgriep
The strange thing is that when you connected to the server and submitted a command, there was no log of it in the Apache log files. Normally you would see something in there.
Can you describe what was done for the OS hardening?
Was SSL enabled on the server?

Re: NRDP Not Showing Unconfigured Objects

Posted: Mon Feb 27, 2017 8:56 pm
by wilsonckk
The hardening script is passed to me from our customer, so wouldn't be able to get the details of what is being hardened.

Normally we will have to know what is the cause of the issue, then do the softening as necessary.

Can you guide me the process to see what could be wrong?

How to check SSL is being enabled?

Also, is only unable for Nagios XI to display as Unconfigured Objects, I can receive the status from the client using tcpdump. Where does it stored in the log files and from the log files, how does it display to Unconfigured Objects?

Re: NRDP Not Showing Unconfigured Objects

Posted: Tue Feb 28, 2017 1:07 am
by rkennedy
Well hardening will definetly affect an install. Hard to say what has happened once you've modified the XI install as there is nothing to review.

If your apache settings have been changed then that's pretty obvious as the logs aren't producing, and if other things are not working then it's probably permissions. Your best bet is starting from scratch and reviewing the hardening process, because changes to the system will affect the install.

Your other questions have articles @ https://support.nagios.com/kb/

Re: NRDP Not Showing Unconfigured Objects

Posted: Tue Feb 28, 2017 8:42 pm
by wilsonckk
Is it possible to let me know what settings are needed for Apache and what permissions needed for what files for Unconfigured Objects to appear so that I can verify on all these settings?

Re: NRDP Not Showing Unconfigured Objects

Posted: Wed Mar 01, 2017 3:55 pm
by mcapra
We would have to see the existing Apache configurations being leveraged. Most of the NRDP directives exist in /etc/httpd/conf.d/nrdp.conf, but this isn't accounting for any sort of additional hardening done against Apache itself.

If you can provide your entire apache configurations being used, we can take a look. But without knowing specifically what sort of hardening the script did, it's difficult to say definitively "we need X Y and Z to troubleshoot this".

The output of php -r 'phpinfo();' may also be helpful.

Re: NRDP Not Showing Unconfigured Objects

Posted: Wed Mar 01, 2017 8:50 pm
by wilsonckk

Code: Select all

/etc/httpd/conf.d/nrdp.conf
<Directory "/usr/local/nrdp">
#  SSLRequireSSL
   Options None
   AllowOverride None
   Order allow,deny
   Allow from all
#  Order deny,allow
#  Deny from all
#  Allow from 127.0.0.1
#   AuthName "NRDP"
#   AuthType Basic
#   AuthUserFile /usr/local/nrdp/htpasswd.users
#  Require valid-user
   Require all granted
   Require all granted
</Directory>

Alias /nrdp "/usr/local/nrdp/server"

Code: Select all

php -r 'phpinfo();'
phpinfo()
PHP Version => 5.4.16

Code: Select all

System => Linux NAGIOSSVR 3.10.0-327.el7.x86_64 #1 SMP Thu Oct 29 17:29:29 EDT 2015 x86_64
Build Date => Jun 10 2015 04:34:11
Server API => Command Line Interface
Virtual Directory Support => disabled
Configuration File (php.ini) Path => /etc
Loaded Configuration File => /etc/php.ini
Scan this dir for additional .ini files => /etc/php.d
Additional .ini files parsed => /etc/php.d/curl.ini,
/etc/php.d/dom.ini,
/etc/php.d/fileinfo.ini,
/etc/php.d/gd.ini,
/etc/php.d/json.ini,
/etc/php.d/ldap.ini,
/etc/php.d/mbstring.ini,
/etc/php.d/mcrypt.ini,
/etc/php.d/mssql.ini,
/etc/php.d/mysql.ini,
/etc/php.d/mysqli.ini,
/etc/php.d/pdo.ini,
/etc/php.d/pdo_dblib.ini,
/etc/php.d/pdo_mysql.ini,
/etc/php.d/pdo_pgsql.ini,
/etc/php.d/pdo_sqlite.ini,
/etc/php.d/pgsql.ini,
/etc/php.d/phar.ini,
/etc/php.d/posix.ini,
/etc/php.d/snmp.ini,
/etc/php.d/sourceguardian.ini,
/etc/php.d/sqlite3.ini,
/etc/php.d/ssh2.ini,
/etc/php.d/sysvmsg.ini,
/etc/php.d/sysvsem.ini,
/etc/php.d/sysvshm.ini,
/etc/php.d/wddx.ini,
/etc/php.d/xmlreader.ini,
/etc/php.d/xmlwriter.ini,
/etc/php.d/xsl.ini,
/etc/php.d/zip.ini

PHP API => 20100412
PHP Extension => 20100525
Zend Extension => 220100525
Zend Extension Build => API220100525,NTS
PHP Extension Build => API20100525,NTS
Debug Build => no
Thread Safety => disabled
Zend Signal Handling => disabled
Zend Memory Manager => enabled
Zend Multibyte Support => provided by mbstring
IPv6 Support => enabled
DTrace Support => disabled

Registered PHP Streams => https, ftps, compress.zlib, compress.bzip2, php, file, glob, data, http, ftp, phar, ssh2.shell, ssh2.exec, ssh2.tunnel, ssh2.scp, ssh2.sftp, zip
Registered Stream Socket Transports => tcp, udp, unix, udg, ssl, sslv3, sslv2, tls
Registered Stream Filters => zlib.*, bzip2.*, convert.iconv.*, string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, dechunk, mcrypt.*, mdecrypt.*

This program makes use of the Zend Scripting Language Engine:
Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies

_______________________________________________________________________


Configuration

Code: Select all

bz2

BZip2 Support => Enabled
Stream Wrapper support => compress.bzip2://
Stream Filter support => bzip2.decompress, bzip2.compress
BZip2 Version => 1.0.6, 6-Sept-2010

calendar

Calendar support => enabled

Core

PHP Version => 5.4.16

Directive => Local Value => Master Value
allow_url_fopen => On => On
allow_url_include => Off => Off
always_populate_raw_post_data => Off => Off
arg_separator.input => & => &
arg_separator.output => & => &
asp_tags => Off => Off
auto_append_file => no value => no value
auto_globals_jit => On => On
auto_prepend_file => no value => no value
browscap => no value => no value
default_charset => no value => no value
default_mimetype => text/html => text/html
disable_classes => no value => no value
disable_functions => no value => no value
display_errors => Off => Off
display_startup_errors => Off => Off
doc_root => no value => no value
docref_ext => no value => no value
docref_root => no value => no value
enable_dl => Off => Off
enable_post_data_reading => On => On
error_append_string => no value => no value
error_log => no value => no value
error_prepend_string => no value => no value
error_reporting => 22527 => 22527
exit_on_timeout => Off => Off
expose_php => On => On
extension_dir => /usr/lib64/php/modules => /usr/lib64/php/modules
file_uploads => On => On
highlight.comment => <font style="color: #FF8000">#FF8000</font> => <font style="color: #FF8000">#FF8000</font>
highlight.default => <font style="color: #0000BB">#0000BB</font> => <font style="color: #0000BB">#0000BB</font>
highlight.html => <font style="color: #000000">#000000</font> => <font style="color: #000000">#000000</font>
highlight.keyword => <font style="color: #007700">#007700</font> => <font style="color: #007700">#007700</font>
highlight.string => <font style="color: #DD0000">#DD0000</font> => <font style="color: #DD0000">#DD0000</font>
html_errors => Off => Off
ignore_repeated_errors => Off => Off
ignore_repeated_source => Off => Off
ignore_user_abort => Off => Off
implicit_flush => On => On
include_path => .:/usr/share/pear:/usr/share/php => .:/usr/share/pear:/usr/share/php
log_errors => On => On
log_errors_max_len => 1024 => 1024
mail.add_x_header => On => On
mail.force_extra_parameters => no value => no value
mail.log => no value => no value
max_execution_time => 0 => 0
max_file_uploads => 20 => 20
max_input_nesting_level => 64 => 64
max_input_time => -1 => -1
max_input_vars => 1000 => 1000
memory_limit => 128M => 128M
open_basedir => no value => no value
output_buffering => 0 => 0
output_handler => no value => no value
post_max_size => 8M => 8M
precision => 14 => 14
realpath_cache_size => 16K => 16K
realpath_cache_ttl => 120 => 120
register_argc_argv => On => On
report_memleaks => On => On
report_zend_debug => Off => Off
request_order => GP => GP
sendmail_from => no value => no value
sendmail_path => /usr/sbin/sendmail -t -i => /usr/sbin/sendmail -t -i
serialize_precision => 17 => 17
short_open_tag => Off => Off
SMTP => localhost => localhost
smtp_port => 25 => 25
sql.safe_mode => Off => Off
track_errors => Off => Off
unserialize_callback_func => no value => no value
upload_max_filesize => 2M => 2M
upload_tmp_dir => no value => no value
user_dir => no value => no value
user_ini.cache_ttl => 300 => 300
user_ini.filename => .user.ini => .user.ini
variables_order => GPCS => GPCS
xmlrpc_error_number => 0 => 0
xmlrpc_errors => Off => Off
zend.detect_unicode => On => On
zend.enable_gc => On => On
zend.multibyte => Off => Off
zend.script_encoding => no value => no value

ctype

ctype functions => enabled

curl

cURL support => enabled
cURL Information => 7.29.0
Age => 3
Features
AsynchDNS => Yes
Debug => No
GSS-Negotiate => Yes
IDN => Yes
IPv6 => Yes
Largefile => Yes
NTLM => Yes
SPNEGO => No
SSL => Yes
SSPI => No
krb4 => No
libz => Yes
CharConv => No
Protocols => dict, file, ftp, ftps, gopher, http, https, imap, imaps, ldap, ldaps, pop3, pop3s, rtsp, scp, sftp, smtp, smtps, telnet, tftp
Host => x86_64-redhat-linux-gnu
SSL Version => NSS/3.16.2.3 Basic ECC
ZLib Version => 1.2.7
libSSH Version => libssh2/1.4.3

date

date/time support => enabled
"Olson" Timezone Database Version => 0.system
Timezone Database => internal
Default timezone => Asia/Singapore

Directive => Local Value => Master Value
date.default_latitude => 31.7667 => 31.7667
date.default_longitude => 35.2333 => 35.2333
date.sunrise_zenith => 90.583333 => 90.583333
date.sunset_zenith => 90.583333 => 90.583333
date.timezone => Asia/Singapore => Asia/Singapore

dom

DOM/XML => enabled
DOM/XML API Version => 20031129
libxml Version => 2.9.1
HTML Support => enabled
XPath Support => enabled
XPointer Support => enabled
Schema Support => enabled
RelaxNG Support => enabled

ereg

Regex Library => Bundled library enabled

exif

EXIF Support => enabled
EXIF Version => 1.4 $Id$
Supported EXIF Version => 0220
Supported filetypes => JPEG,TIFF

Directive => Local Value => Master Value
exif.decode_jis_intel => JIS => JIS
exif.decode_jis_motorola => JIS => JIS
exif.decode_unicode_intel => UCS-2LE => UCS-2LE
exif.decode_unicode_motorola => UCS-2BE => UCS-2BE
exif.encode_jis => no value => no value
exif.encode_unicode => ISO-8859-15 => ISO-8859-15

fileinfo

fileinfo support => enabled
version => 1.0.5

filter

Input Validation and Filtering => enabled
Revision => $Id: 2aa8dd57d9c0c655cd45e6e5872bb95fa5ad76cf $

Directive => Local Value => Master Value
filter.default => unsafe_raw => unsafe_raw
filter.default_flags => no value => no value

ftp

FTP support => enabled

gd

GD Support => enabled
GD Version => bundled (2.1.0 compatible)
FreeType Support => enabled
FreeType Linkage => with freetype
FreeType Version => 2.4.11
T1Lib Support => enabled
GIF Read Support => enabled
GIF Create Support => enabled
JPEG Support => enabled
libJPEG Version => 6b
PNG Support => enabled
libPNG Version => 1.5.13
WBMP Support => enabled
XPM Support => enabled
libXpm Version => 30411
XBM Support => enabled

Directive => Local Value => Master Value
gd.jpeg_ignore_warning => 0 => 0

gettext

GetText Support => enabled

gmp

gmp support => enabled
GMP version => 6.0.0

hash

hash support => enabled
Hashing Engines => md2 md4 md5 sha1 sha224 sha256 sha384 sha512 ripemd128 ripemd160 ripemd256 ripemd320 whirlpool tiger128,3 tiger160,3 tiger192,3 tiger128,4 tiger160,4 tiger192,4 snefru snefru256 gost adler32 crc32 crc32b fnv132 fnv164 joaat haval128,3 haval160,3 haval192,3 haval224,3 haval256,3 haval128,4 haval160,4 haval192,4 haval224,4 haval256,4 haval128,5 haval160,5 haval192,5 haval224,5 haval256,5 

iconv

iconv support => enabled
iconv implementation => glibc
iconv library version => 2.17

Directive => Local Value => Master Value
iconv.input_encoding => ISO-8859-1 => ISO-8859-1
iconv.internal_encoding => ISO-8859-1 => ISO-8859-1
iconv.output_encoding => ISO-8859-1 => ISO-8859-1

json

json support => enabled
json version => 1.2.1

ldap

LDAP Support => enabled
RCS Version => $Id$
Total Links => 0/unlimited
API Version => 3001
Vendor Name => OpenLDAP
Vendor Version => 20439
SASL Support => Enabled

Directive => Local Value => Master Value
ldap.max_links => Unlimited => Unlimited

libxml

libXML support => active
libXML Compiled Version => 2.9.1
libXML Loaded Version => 20901
libXML streams => enabled

mbstring

Multibyte Support => enabled
Multibyte string engine => libmbfl
HTTP input encoding translation => disabled
libmbfl version => 1.3.2

mbstring extension makes use of "streamable kanji code filter and converter", which is distributed under the GNU Lesser General Public License version 2.1.

Multibyte (japanese) regex support => enabled
Multibyte regex (oniguruma) backtrack check => On
Multibyte regex (oniguruma) version => 4.7.1

Directive => Local Value => Master Value
mbstring.detect_order => no value => no value
mbstring.encoding_translation => Off => Off
mbstring.func_overload => 0 => 0
mbstring.http_input => pass => pass
mbstring.http_output => pass => pass
mbstring.http_output_conv_mimetypes => ^(text/|application/xhtml\+xml) => ^(text/|application/xhtml\+xml)
mbstring.internal_encoding => no value => no value
mbstring.language => neutral => neutral
mbstring.strict_detection => Off => Off
mbstring.substitute_character => no value => no value

mcrypt

mcrypt support => enabled
mcrypt_filter support => enabled
Version => 2.5.8
Api No => 20021217
Supported ciphers => cast-128 gost rijndael-128 twofish arcfour cast-256 loki97 rijndael-192 saferplus wake blowfish-compat des rijndael-256 serpent xtea blowfish enigma rc2 tripledes 
Supported modes => cbc cfb ctr ecb ncfb nofb ofb stream 

Directive => Local Value => Master Value
mcrypt.algorithms_dir => no value => no value
mcrypt.modes_dir => no value => no value

mhash

MHASH support => Enabled
MHASH API Version => Emulated Support

mssql

MSSQL Support => enabled
Active Persistent Links => 0
Active Links => 0
Library version => FreeTDS

Directive => Local Value => Master Value
mssql.allow_persistent => On => On
mssql.batchsize => 0 => 0
mssql.charset => no value => no value
mssql.compatability_mode => Off => Off
mssql.connect_timeout => 5 => 5
mssql.datetimeconvert => On => On
mssql.max_links => Unlimited => Unlimited
mssql.max_persistent => Unlimited => Unlimited
mssql.max_procs => Unlimited => Unlimited
mssql.min_error_severity => 10 => 10
mssql.min_message_severity => 10 => 10
mssql.secure_connection => Off => Off
mssql.textlimit => Server default => Server default
mssql.textsize => Server default => Server default
mssql.timeout => 60 => 60

mysql

MySQL Support => enabled
Active Persistent Links => 0
Active Links => 0
Client API version => 5.5.44-MariaDB
MYSQL_MODULE_TYPE => external
MYSQL_SOCKET => /var/lib/mysql/mysql.sock
MYSQL_INCLUDE => -I/usr/include/mysql
MYSQL_LIBS => -L/usr/lib64/mysql -lmysqlclient 

Directive => Local Value => Master Value
mysql.allow_local_infile => On => On
mysql.allow_persistent => On => On
mysql.connect_timeout => 60 => 60
mysql.default_host => no value => no value
mysql.default_password => no value => no value
mysql.default_port => no value => no value
mysql.default_socket => /var/lib/mysql/mysql.sock => /var/lib/mysql/mysql.sock
mysql.default_user => no value => no value
mysql.max_links => Unlimited => Unlimited
mysql.max_persistent => Unlimited => Unlimited
mysql.trace_mode => Off => Off

mysqli

MysqlI Support => enabled
Client API library version => 5.5.44-MariaDB
Active Persistent Links => 0
Inactive Persistent Links => 0
Active Links => 0
Client API header version => 5.5.41-MariaDB
MYSQLI_SOCKET => /var/lib/mysql/mysql.sock

Directive => Local Value => Master Value
mysqli.allow_local_infile => On => On
mysqli.allow_persistent => On => On
mysqli.default_host => no value => no value
mysqli.default_port => 3306 => 3306
mysqli.default_pw => no value => no value
mysqli.default_socket => no value => no value
mysqli.default_user => no value => no value
mysqli.max_links => Unlimited => Unlimited
mysqli.max_persistent => Unlimited => Unlimited
mysqli.reconnect => Off => Off

openssl

OpenSSL support => enabled
OpenSSL Library Version => OpenSSL 1.0.1e-fips 11 Feb 2013
OpenSSL Header Version => OpenSSL 1.0.1e-fips 11 Feb 2013

pcntl

pcntl support => enabled

pcre

PCRE (Perl Compatible Regular Expressions) Support => enabled
PCRE Library Version => 8.32 2012-11-30

Directive => Local Value => Master Value
pcre.backtrack_limit => 1000000 => 1000000
pcre.recursion_limit => 100000 => 100000

PDO

PDO support => enabled
PDO drivers => dblib, mysql, pgsql, sqlite

pdo_dblib

PDO Driver for FreeTDS/Sybase DB-lib => enabled
Flavour => freetds

pdo_mysql

PDO Driver for MySQL => enabled
Client API version => 5.5.44-MariaDB

Directive => Local Value => Master Value
pdo_mysql.default_socket => /var/lib/mysql/mysql.sock => /var/lib/mysql/mysql.sock

pdo_pgsql

PDO Driver for PostgreSQL => enabled
PostgreSQL(libpq) Version => 9.2.10
Module version => 1.0.2
Revision =>  $Id$ 

pdo_sqlite

PDO Driver for SQLite 3.x => enabled
SQLite Library => 3.7.17

pgsql

PostgreSQL Support => enabled
PostgreSQL(libpq) Version => 9.2.10
PostgreSQL(libpq)  => PostgreSQL 9.2.10 on x86_64-redhat-linux-gnu, compiled by gcc (GCC) 4.8.3 20140911 (Red Hat 4.8.3-9), 64-bit
Multibyte character support => enabled
SSL support => enabled
Active Persistent Links => 0
Active Links => 0

Directive => Local Value => Master Value
pgsql.allow_persistent => On => On
pgsql.auto_reset_persistent => Off => Off
pgsql.ignore_notice => Off => Off
pgsql.log_notice => Off => Off
pgsql.max_links => Unlimited => Unlimited
pgsql.max_persistent => Unlimited => Unlimited

Phar

Phar: PHP Archive support => enabled
Phar EXT version => 2.0.1
Phar API version => 1.1.1
SVN revision => $Id: c5042cc34acebcc0926625b57dff03deebbe6472 $
Phar-based phar archives => enabled
Tar-based phar archives => enabled
ZIP-based phar archives => enabled
gzip compression => enabled
bzip2 compression => enabled
Native OpenSSL support => enabled


Phar based on pear/PHP_Archive, original concept by Davey Shafik.
Phar fully realized by Gregory Beaver and Marcus Boerger.
Portions of tar implementation Copyright (c) 2003-2009 Tim Kientzle.
Directive => Local Value => Master Value
phar.cache_list => no value => no value
phar.readonly => On => On
phar.require_hash => On => On

posix

Revision => $Id: 32db6705f5b617967a546be3114e178a4138c1ca $

readline

Readline Support => enabled
Readline library => EditLine wrapper

Directive => Local Value => Master Value
cli.pager => no value => no value
cli.prompt => \b \>  => \b \> 

Reflection

Reflection => enabled
Version => $Id: 6c4d8062369898a397e4b128348042f5c01b4427 $

session

Session Support => enabled
Registered save handlers => files user 
Registered serializer handlers => php php_binary wddx 

Directive => Local Value => Master Value
session.auto_start => Off => Off
session.cache_expire => 180 => 180
session.cache_limiter => nocache => nocache
session.cookie_domain => no value => no value
session.cookie_httponly => Off => Off
session.cookie_lifetime => 0 => 0
session.cookie_path => / => /
session.cookie_secure => Off => Off
session.entropy_file => /dev/urandom => /dev/urandom
session.entropy_length => 32 => 32
session.gc_divisor => 1000 => 1000
session.gc_maxlifetime => 1440 => 1440
session.gc_probability => 1 => 1
session.hash_bits_per_character => 5 => 5
session.hash_function => 0 => 0
session.name => PHPSESSID => PHPSESSID
session.referer_check => no value => no value
session.save_handler => files => files
session.save_path => no value => no value
session.serialize_handler => php => php
session.upload_progress.cleanup => On => On
session.upload_progress.enabled => On => On
session.upload_progress.freq => 1% => 1%
session.upload_progress.min_freq => 1 => 1
session.upload_progress.name => PHP_SESSION_UPLOAD_PROGRESS => PHP_SESSION_UPLOAD_PROGRESS
session.upload_progress.prefix => upload_progress_ => upload_progress_
session.use_cookies => On => On
session.use_only_cookies => On => On
session.use_trans_sid => 0 => 0

shmop

shmop support => enabled

SimpleXML

Simplexml support => enabled
Revision => $Id: 692516840b2d7d6e7aedb0bedded1f53b764a99f $
Schema support => enabled

snmp

NET-SNMP Support => enabled
NET-SNMP Version => 5.7.2
PHP SNMP Version => 0.1

sockets

Sockets Support => enabled

SourceGuardian

SourceGuardian Loader Support => enabled
SourceGuardian Loader Version => 10.1.5
SourceGuardian Loader Build Number => 0x00000016
phpSHIELD Support => enabled

Directive => Local Value => Master Value
sourceguardian.restrict_unencoded => 0 => 0

SPL

SPL support => enabled
Interfaces => Countable, OuterIterator, RecursiveIterator, SeekableIterator, SplObserver, SplSubject
Classes => AppendIterator, ArrayIterator, ArrayObject, BadFunctionCallException, BadMethodCallException, CachingIterator, CallbackFilterIterator, DirectoryIterator, DomainException, EmptyIterator, FilesystemIterator, FilterIterator, GlobIterator, InfiniteIterator, InvalidArgumentException, IteratorIterator, LengthException, LimitIterator, LogicException, MultipleIterator, NoRewindIterator, OutOfBoundsException, OutOfRangeException, OverflowException, ParentIterator, RangeException, RecursiveArrayIterator, RecursiveCachingIterator, RecursiveCallbackFilterIterator, RecursiveDirectoryIterator, RecursiveFilterIterator, RecursiveIteratorIterator, RecursiveRegexIterator, RecursiveTreeIterator, RegexIterator, RuntimeException, SplDoublyLinkedList, SplFileInfo, SplFileObject, SplFixedArray, SplHeap, SplMinHeap, SplMaxHeap, SplObjectStorage, SplPriorityQueue, SplQueue, SplStack, SplTempFileObject, UnderflowException, UnexpectedValueException

sqlite3

SQLite3 support => enabled
SQLite3 module version => 0.7
SQLite Library => 3.7.17

Directive => Local Value => Master Value
sqlite3.extension_dir => no value => no value

ssh2

SSH2 support => enabled
extension version => 0.12
libssh2 version => 1.4.3
banner => SSH-2.0-libssh2_1.4.3

standard

Dynamic Library Support => enabled
Path to sendmail => /usr/sbin/sendmail -t -i

Directive => Local Value => Master Value
assert.active => 1 => 1
assert.bail => 0 => 0
assert.callback => no value => no value
assert.quiet_eval => 0 => 0
assert.warning => 1 => 1
auto_detect_line_endings => 0 => 0
default_socket_timeout => 60 => 60
from => no value => no value
url_rewriter.tags => a=href,area=href,frame=src,input=src,form=fakeentry => a=href,area=href,frame=src,input=src,form=fakeentry
user_agent => no value => no value

sysvmsg

sysvmsg support => enabled
Revision => $Id: e268047b695fe9a43cdf415c429729252347becd $

tokenizer

Tokenizer Support => enabled

wddx

WDDX Support => enabled
WDDX Session Serializer => enabled

xml

XML Support => active
XML Namespace Support => active
libxml2 Version => 2.9.1

xmlreader

XMLReader => enabled

xmlwriter

XMLWriter => enabled

xsl

XSL => enabled
libxslt Version => 1.1.28
libxslt compiled against libxml Version => 2.9.1
EXSLT => enabled
libexslt Version => 1.1.28

zip

Zip => enabled
Extension Version => $Id: 0c033d4e4613d577409950ed7bf8da4b68286d15 $
Zip version => 1.11.0
Compiled against libzip version => 0.10.1

zlib

ZLib Support => enabled
Stream Wrapper => compress.zlib://
Stream Filter => zlib.inflate, zlib.deflate
Compiled Version => 1.2.7
Linked Version => 1.2.7

Directive => Local Value => Master Value
zlib.output_compression => Off => Off
zlib.output_compression_level => -1 => -1
zlib.output_handler => no value => no value

Additional Modules

Module Name
sysvsem
sysvshm

Environment

Variable => Value
XDG_VTNR => 1
XDG_SESSION_ID => 1
SSH_AGENT_PID => 18751
HOSTNAME => NAGIOSSVR
IMSETTINGS_INTEGRATE_DESKTOP => yes
GPG_AGENT_INFO => /root/.cache/keyring-YISVVY/gpg:0:1
VTE_VERSION => 3803
XDG_MENU_PREFIX => gnome-
SHELL => /bin/bash
TERM => xterm-256color
HISTSIZE => 1000
WINDOWID => 33555700
GNOME_KEYRING_CONTROL => /root/.cache/keyring-YISVVY
IMSETTINGS_MODULE => none
USER => root
LS_COLORS => rs=0:di=38;5;27:ln=38;5;51:mh=44;38;5;15:pi=40;38;5;11:so=38;5;13:do=38;5;5:bd=48;5;232;38;5;11:cd=48;5;232;38;5;3:or=48;5;232;38;5;9:mi=05;48;5;232;38;5;15:su=48;5;196;38;5;15:sg=48;5;11;38;5;16:ca=48;5;196;38;5;226:tw=48;5;10;38;5;16:ow=48;5;10;38;5;21:st=48;5;21;38;5;15:ex=38;5;34:*.tar=38;5;9:*.tgz=38;5;9:*.arc=38;5;9:*.arj=38;5;9:*.taz=38;5;9:*.lha=38;5;9:*.lz4=38;5;9:*.lzh=38;5;9:*.lzma=38;5;9:*.tlz=38;5;9:*.txz=38;5;9:*.tzo=38;5;9:*.t7z=38;5;9:*.zip=38;5;9:*.z=38;5;9:*.Z=38;5;9:*.dz=38;5;9:*.gz=38;5;9:*.lrz=38;5;9:*.lz=38;5;9:*.lzo=38;5;9:*.xz=38;5;9:*.bz2=38;5;9:*.bz=38;5;9:*.tbz=38;5;9:*.tbz2=38;5;9:*.tz=38;5;9:*.deb=38;5;9:*.rpm=38;5;9:*.jar=38;5;9:*.war=38;5;9:*.ear=38;5;9:*.sar=38;5;9:*.rar=38;5;9:*.alz=38;5;9:*.ace=38;5;9:*.zoo=38;5;9:*.cpio=38;5;9:*.7z=38;5;9:*.rz=38;5;9:*.cab=38;5;9:*.jpg=38;5;13:*.jpeg=38;5;13:*.gif=38;5;13:*.bmp=38;5;13:*.pbm=38;5;13:*.pgm=38;5;13:*.ppm=38;5;13:*.tga=38;5;13:*.xbm=38;5;13:*.xpm=38;5;13:*.tif=38;5;13:*.tiff=38;5;13:*.png=38;5;13:*.svg=38;5;13:*.svgz=38;5;13:*.mng=38;5;13:*.pcx=38;5;13:*.mov=38;5;13:*.mpg=38;5;13:*.mpeg=38;5;13:*.m2v=38;5;13:*.mkv=38;5;13:*.webm=38;5;13:*.ogm=38;5;13:*.mp4=38;5;13:*.m4v=38;5;13:*.mp4v=38;5;13:*.vob=38;5;13:*.qt=38;5;13:*.nuv=38;5;13:*.wmv=38;5;13:*.asf=38;5;13:*.rm=38;5;13:*.rmvb=38;5;13:*.flc=38;5;13:*.avi=38;5;13:*.fli=38;5;13:*.flv=38;5;13:*.gl=38;5;13:*.dl=38;5;13:*.xcf=38;5;13:*.xwd=38;5;13:*.yuv=38;5;13:*.cgm=38;5;13:*.emf=38;5;13:*.axv=38;5;13:*.anx=38;5;13:*.ogv=38;5;13:*.ogx=38;5;13:*.aac=38;5;45:*.au=38;5;45:*.flac=38;5;45:*.mid=38;5;45:*.midi=38;5;45:*.mka=38;5;45:*.mp3=38;5;45:*.mpc=38;5;45:*.ogg=38;5;45:*.ra=38;5;45:*.wav=38;5;45:*.axa=38;5;45:*.oga=38;5;45:*.spx=38;5;45:*.xspf=38;5;45:
SSH_AUTH_SOCK => /root/.cache/keyring-YISVVY/ssh
SESSION_MANAGER => local/unix:@/tmp/.ICE-unix/18625,unix/unix:/tmp/.ICE-unix/18625
GNOME_SHELL_SESSION_MODE => classic
MAIL => /var/spool/mail/root
PATH => /usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin
QT_IM_MODULE => ibus
PWD => /etc
XMODIFIERS => @im=ibus
LANG => en_SG.UTF-8
HISTCONTROL => ignoredups
SHLVL => 3
HOME => /root
XDG_SEAT => seat0
GNOME_DESKTOP_SESSION_ID => this-is-deprecated
LOGNAME => root
DBUS_SESSION_BUS_ADDRESS => unix:abstract=/tmp/dbus-NUuCuz18nw,guid=97f9235fc8ee739ca28eec5358a10e66
LESSOPEN => ||/usr/bin/lesspipe.sh %s
WINDOWPATH => 1
DISPLAY => :0
GTK_IM_MODULE => gtk-im-context-simple
XDG_CURRENT_DESKTOP => GNOME
XAUTHORITY => /root/.Xauthority
_ => /bin/php

PHP Variables

Variable => Value
_SERVER["XDG_VTNR"] => 1
_SERVER["XDG_SESSION_ID"] => 1
_SERVER["SSH_AGENT_PID"] => 18751
_SERVER["HOSTNAME"] => NAGIOSSVR
_SERVER["IMSETTINGS_INTEGRATE_DESKTOP"] => yes
_SERVER["GPG_AGENT_INFO"] => /root/.cache/keyring-YISVVY/gpg:0:1
_SERVER["VTE_VERSION"] => 3803
_SERVER["XDG_MENU_PREFIX"] => gnome-
_SERVER["SHELL"] => /bin/bash
_SERVER["TERM"] => xterm-256color
_SERVER["HISTSIZE"] => 1000
_SERVER["WINDOWID"] => 33555700
_SERVER["GNOME_KEYRING_CONTROL"] => /root/.cache/keyring-YISVVY
_SERVER["IMSETTINGS_MODULE"] => none
_SERVER["USER"] => root
_SERVER["LS_COLORS"] => rs=0:di=38;5;27:ln=38;5;51:mh=44;38;5;15:pi=40;38;5;11:so=38;5;13:do=38;5;5:bd=48;5;232;38;5;11:cd=48;5;232;38;5;3:or=48;5;232;38;5;9:mi=05;48;5;232;38;5;15:su=48;5;196;38;5;15:sg=48;5;11;38;5;16:ca=48;5;196;38;5;226:tw=48;5;10;38;5;16:ow=48;5;10;38;5;21:st=48;5;21;38;5;15:ex=38;5;34:*.tar=38;5;9:*.tgz=38;5;9:*.arc=38;5;9:*.arj=38;5;9:*.taz=38;5;9:*.lha=38;5;9:*.lz4=38;5;9:*.lzh=38;5;9:*.lzma=38;5;9:*.tlz=38;5;9:*.txz=38;5;9:*.tzo=38;5;9:*.t7z=38;5;9:*.zip=38;5;9:*.z=38;5;9:*.Z=38;5;9:*.dz=38;5;9:*.gz=38;5;9:*.lrz=38;5;9:*.lz=38;5;9:*.lzo=38;5;9:*.xz=38;5;9:*.bz2=38;5;9:*.bz=38;5;9:*.tbz=38;5;9:*.tbz2=38;5;9:*.tz=38;5;9:*.deb=38;5;9:*.rpm=38;5;9:*.jar=38;5;9:*.war=38;5;9:*.ear=38;5;9:*.sar=38;5;9:*.rar=38;5;9:*.alz=38;5;9:*.ace=38;5;9:*.zoo=38;5;9:*.cpio=38;5;9:*.7z=38;5;9:*.rz=38;5;9:*.cab=38;5;9:*.jpg=38;5;13:*.jpeg=38;5;13:*.gif=38;5;13:*.bmp=38;5;13:*.pbm=38;5;13:*.pgm=38;5;13:*.ppm=38;5;13:*.tga=38;5;13:*.xbm=38;5;13:*.xpm=38;5;13:*.tif=38;5;13:*.tiff=38;5;13:*.png=38;5;13:*.svg=38;5;13:*.svgz=38;5;13:*.mng=38;5;13:*.pcx=38;5;13:*.mov=38;5;13:*.mpg=38;5;13:*.mpeg=38;5;13:*.m2v=38;5;13:*.mkv=38;5;13:*.webm=38;5;13:*.ogm=38;5;13:*.mp4=38;5;13:*.m4v=38;5;13:*.mp4v=38;5;13:*.vob=38;5;13:*.qt=38;5;13:*.nuv=38;5;13:*.wmv=38;5;13:*.asf=38;5;13:*.rm=38;5;13:*.rmvb=38;5;13:*.flc=38;5;13:*.avi=38;5;13:*.fli=38;5;13:*.flv=38;5;13:*.gl=38;5;13:*.dl=38;5;13:*.xcf=38;5;13:*.xwd=38;5;13:*.yuv=38;5;13:*.cgm=38;5;13:*.emf=38;5;13:*.axv=38;5;13:*.anx=38;5;13:*.ogv=38;5;13:*.ogx=38;5;13:*.aac=38;5;45:*.au=38;5;45:*.flac=38;5;45:*.mid=38;5;45:*.midi=38;5;45:*.mka=38;5;45:*.mp3=38;5;45:*.mpc=38;5;45:*.ogg=38;5;45:*.ra=38;5;45:*.wav=38;5;45:*.axa=38;5;45:*.oga=38;5;45:*.spx=38;5;45:*.xspf=38;5;45:
_SERVER["SSH_AUTH_SOCK"] => /root/.cache/keyring-YISVVY/ssh
_SERVER["SESSION_MANAGER"] => local/unix:@/tmp/.ICE-unix/18625,unix/unix:/tmp/.ICE-unix/18625
_SERVER["GNOME_SHELL_SESSION_MODE"] => classic
_SERVER["MAIL"] => /var/spool/mail/root
_SERVER["PATH"] => /usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin
_SERVER["QT_IM_MODULE"] => ibus
_SERVER["PWD"] => /etc
_SERVER["XMODIFIERS"] => @im=ibus
_SERVER["LANG"] => en_SG.UTF-8
_SERVER["HISTCONTROL"] => ignoredups
_SERVER["SHLVL"] => 3
_SERVER["HOME"] => /root
_SERVER["XDG_SEAT"] => seat0
_SERVER["GNOME_DESKTOP_SESSION_ID"] => this-is-deprecated
_SERVER["LOGNAME"] => root
_SERVER["DBUS_SESSION_BUS_ADDRESS"] => unix:abstract=/tmp/dbus-NUuCuz18nw,guid=97f9235fc8ee739ca28eec5358a10e66
_SERVER["LESSOPEN"] => ||/usr/bin/lesspipe.sh %s
_SERVER["WINDOWPATH"] => 1
_SERVER["DISPLAY"] => :0
_SERVER["GTK_IM_MODULE"] => gtk-im-context-simple
_SERVER["XDG_CURRENT_DESKTOP"] => GNOME
_SERVER["XAUTHORITY"] => /root/.Xauthority
_SERVER["_"] => /bin/php
_SERVER["PHP_SELF"] => -
_SERVER["SCRIPT_NAME"] => -
_SERVER["SCRIPT_FILENAME"] => 
_SERVER["PATH_TRANSLATED"] => 
_SERVER["DOCUMENT_ROOT"] => 
_SERVER["REQUEST_TIME_FLOAT"] => 1488418109.4807
_SERVER["REQUEST_TIME"] => 1488418109
_SERVER["argv"] => Array
(
    [0] => -
)

_SERVER["argc"] => 1

PHP License
This program is free software; you can redistribute it and/or modify
it under the terms of the PHP License as published by the PHP Group
and included in the distribution in the file:  LICENSE

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

If you did not receive a copy of the PHP license, or have any
questions about PHP licensing, please contact [email protected].

Re: NRDP Not Showing Unconfigured Objects

Posted: Thu Mar 02, 2017 3:26 pm
by mcapra
I think it'd be best to start with a fresh, minimal installation of RHEL using the latest version of Nagios XI then get things working from there.

Troubleshooting without knowing the specific hardening steps taken makes things difficult. If you can get the passive checks coming in without the hardening in place, then there's probably some steps of the hardening script that need to be evaluated or worked around.