Nagios Access tied to single computer from same IP Issue
Nagios Access tied to single computer from same IP Issue
Howdy,
I have a annoying issue which I have been banging my head trying to fix. Basically, we work from the office which we have over 30 computers, but it goes out on the single IP on the router. The issue is that when other techs try to access the Nagios XI while one is already logged in, it times out for them.
I got around it by adding few more IPs to the server and they are able to access it as long none else is using the same domainname/IP to access Nagios. It seems it is locked to single sesson for single computer from the same IP address. So I am trying to figure out how to get this fixed. We are running it on CentOS 7 for it, and I had to modify the php.ini to allow larger memory usage due to the large amount of hosts and services loaded into nagios itself.
Anyone had this problem before for this?
I have a annoying issue which I have been banging my head trying to fix. Basically, we work from the office which we have over 30 computers, but it goes out on the single IP on the router. The issue is that when other techs try to access the Nagios XI while one is already logged in, it times out for them.
I got around it by adding few more IPs to the server and they are able to access it as long none else is using the same domainname/IP to access Nagios. It seems it is locked to single sesson for single computer from the same IP address. So I am trying to figure out how to get this fixed. We are running it on CentOS 7 for it, and I had to modify the php.ini to allow larger memory usage due to the large amount of hosts and services loaded into nagios itself.
Anyone had this problem before for this?
-
npolovenko
- Support Tech
- Posts: 3457
- Joined: Mon May 15, 2017 5:00 pm
Re: Nagios Access tied to single computer from same IP Issue
Hello, @Elik. Is the XI session timing out momentarily for the user1 when user2 logs in? Have you tried increasing the:
In /etc/php.ini. This should prevent the session from expiring.
Code: Select all
session.gc_maxlifetime = 31536000As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: Nagios Access tied to single computer from same IP Issue
Howdy,
That is not the issue for it. It is just that if multiple computers connecting to the same nagios from same IP, it renders them unreachable for everyone except one that is already in session for it. So what you suggested is not the solution for it.
That is not the issue for it. It is just that if multiple computers connecting to the same nagios from same IP, it renders them unreachable for everyone except one that is already in session for it. So what you suggested is not the solution for it.
Re: Nagios Access tied to single computer from same IP Issue
Note this is on CentOS 7. I never had this issue under CentOS6 but I re-installed to have it run on CentOS 7 instead due to support of the newer python for several plugins needed for it.
Something tells me that there is something in the apache or php configuration that is actively locking the sessions to one computer per IP for access, but not from multiple access from same IP to the nagios for access.
Something tells me that there is something in the apache or php configuration that is actively locking the sessions to one computer per IP for access, but not from multiple access from same IP to the nagios for access.
Re: Nagios Access tied to single computer from same IP Issue
I'm now up to 30 unique sessions (some unique users, some same users) from my desktop all originating from the exact same logical address to a Nagios XI VM without any problems maintaining the individual sessions. No one getting kicked out, no funny business in general.Elik wrote:Basically, we work from the office which we have over 30 computers, but it goes out on the single IP on the router.
Are you willing to share the php.ini from your Nagios XI machine as well as the output of php -r 'phpinfo();'?
If you don't know where php.ini is located, this guy should be of assistance:
Code: Select all
php -r 'phpinfo();' | grep 'Loaded Configuration File'Former Nagios employee
https://www.mcapra.com/
https://www.mcapra.com/
Re: Nagios Access tied to single computer from same IP Issue
Hello,
if it is from the same computer from the behind the router, it does not matter, since it would be fine. It is due to unique mac addresses from the different computers from the same router that is the issue for it.
if it is from the same computer from the behind the router, it does not matter, since it would be fine. It is due to unique mac addresses from the different computers from the same router that is the issue for it.
Code: Select all
[root@monitor ~]# php -r 'phpinfo();'
phpinfo()
PHP Version => 5.4.16
System => Linux monitor.micfo.com 3.10.0-693.21.1.el7.x86_64 #1 SMP Wed Mar 7 19:03:37 UTC 2018 x86_64
Build Date => Mar 7 2018 13:34:40
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/mysql.ini,
/etc/php.d/mysqli.ini,
/etc/php.d/pdo.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, 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
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 => 5000 => 5000
memory_limit => 256M => 256M
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.28.4
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 => US/Eastern
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 => US/Eastern => US/Eastern
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 => 20444
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
mysql
MySQL Support => enabled
Active Persistent Links => 0
Active Links => 0
Client API version => 5.5.56-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.56-MariaDB
Active Persistent Links => 0
Inactive Persistent Links => 0
Active Links => 0
Client API header version => 5.5.56-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.2k-fips 26 Jan 2017
OpenSSL Header Version => OpenSSL 1.0.2k-fips 26 Jan 2017
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 => mysql, pgsql, sqlite
pdo_mysql
PDO Driver for MySQL => enabled
Client API version => 5.5.56-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.23
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.23
PostgreSQL(libpq) => PostgreSQL 9.2.23 on x86_64-redhat-linux-gnu, compiled by gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-16), 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 => 11.1.0
SourceGuardian Loader Build Number => 0x00000019
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_SESSION_ID => 24404
HOSTNAME => monitor.micfo.com
TERM => xterm
SHELL => /bin/bash
HISTSIZE => 1000
SSH_CLIENT => 199.223.117.0 27996 22
SSH_TTY => /dev/pts/0
USER => root
LS_COLORS => rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.axa=00;36:*.oga=00;36:*.spx=00;36:*.xspf=00;36:
MAIL => /var/spool/mail/root
PATH => /usr/local/jdk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/usr/local/bin:/usr/X11R6/bin:/root/bin
PWD => /root
JAVA_HOME => /usr/local/jdk
EDITOR => vi
LANG => en_US.UTF-8
HISTCONTROL => ignoredups
SHLVL => 1
HOME => /root
LS_OPTIONS => --color=tty -F -A -b -T 0
LOGNAME => root
VISUAL => vi
CLASSPATH => .:/usr/local/jdk/lib/classes.zip
SSH_CONNECTION => 199.223.117.0 27996 199.223.117.199 22
LESSOPEN => ||/usr/bin/lesspipe.sh %s
XDG_RUNTIME_DIR => /run/user/0
HISTTIMEFORMAT => [%h/%d/%Y - %H:%M:%S]
_ => /usr/bin/php
PHP Variables
Variable => Value
_SERVER["XDG_SESSION_ID"] => 24404
_SERVER["HOSTNAME"] => monitor.micfo.com
_SERVER["TERM"] => xterm
_SERVER["SHELL"] => /bin/bash
_SERVER["HISTSIZE"] => 1000
_SERVER["SSH_CLIENT"] => 199.223.117.0 27996 22
_SERVER["SSH_TTY"] => /dev/pts/0
_SERVER["USER"] => root
_SERVER["LS_COLORS"] => rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.axa=00;36:*.oga=00;36:*.spx=00;36:*.xspf=00;36:
_SERVER["MAIL"] => /var/spool/mail/root
_SERVER["PATH"] => /usr/local/jdk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/usr/local/bin:/usr/X11R6/bin:/root/bin
_SERVER["PWD"] => /root
_SERVER["JAVA_HOME"] => /usr/local/jdk
_SERVER["EDITOR"] => vi
_SERVER["LANG"] => en_US.UTF-8
_SERVER["HISTCONTROL"] => ignoredups
_SERVER["SHLVL"] => 1
_SERVER["HOME"] => /root
_SERVER["LS_OPTIONS"] => --color=tty -F -A -b -T 0
_SERVER["LOGNAME"] => root
_SERVER["VISUAL"] => vi
_SERVER["CLASSPATH"] => .:/usr/local/jdk/lib/classes.zip
_SERVER["SSH_CONNECTION"] => 199.223.117.0 27996 199.223.117.199 22
_SERVER["LESSOPEN"] => ||/usr/bin/lesspipe.sh %s
_SERVER["XDG_RUNTIME_DIR"] => /run/user/0
_SERVER["HISTTIMEFORMAT"] => [%h/%d/%Y - %H:%M:%S]
_SERVER["_"] => /usr/bin/php
_SERVER["PHP_SELF"] => -
_SERVER["SCRIPT_NAME"] => -
_SERVER["SCRIPT_FILENAME"] =>
_SERVER["PATH_TRANSLATED"] =>
_SERVER["DOCUMENT_ROOT"] =>
_SERVER["REQUEST_TIME_FLOAT"] => 1521613457.6805
_SERVER["REQUEST_TIME"] => 1521613457
_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].
[root@monitor ~]#
Last edited by tmcdonald on Wed Mar 21, 2018 9:44 am, edited 1 time in total.
Reason: Please use [code][/code] tags around long output
Reason: Please use [code][/code] tags around long output
Re: Nagios Access tied to single computer from same IP Issue
The only meaningful thing I see in the diff between your PHP and my XI OVF's PHP is your PHP does not seem to have a value for session.save_path. Here's the full output for your review:
You might try setting that value to an appropriate path in your php.ini and restarting the Apache service.
PHP 5.4 has no native means by which it could access a given machine's MAC address even if it wanted to. You'd need to make system calls for that which in this case would then rely on external Linux tools for the info (that wouldn't be very platform agnostic).
Nagios XI just piggy-backs off the native PHP session handling. Nagios XI creates a session, stores that session's ID in a browser cookie, and writes a PHP "session file" out to disk with relevant info to be retrieved via the $_SESSION global.
When I then login as the 'nagiosadmin' user, a cookie is written to my browser with name 'nagiosxi' and value '1c9i92u29hqh8tmtmu581lhch4'. So what the heck is that big string of jargon? It's an ID for a PHP session which, for Nagios XI, is written to disk by default:
Which is filled with all sorts of mundane metadata about the currently logged-in user associated with that session:
My first assumption would be that Nagios XI isn't correctly managing those session files which could be a symptom of the current state of this environment's session.save_path since that value defaults to the system's temp path. My second assumption would be something strange is happening with the cookies in the browsers or in their transit from the browser to Nagios XI.
Code: Select all
$ diff php_op.txt php_mine.txt
2c2
< PHP Version => 5.4.16
---
> PHP Version => 5.3.3
4,5c4,6
< System => Linux monitor.micfo.com 3.10.0-693.21.1.el7.x86_64 #1 SMP Wed Mar 7 19:03:37 UTC 2018 x86_64
< Build Date => Mar 7 2018 13:34:40
---
> System => Linux nagiosxi 2.6.32-696.13.2.el6.x86_64 #1 SMP Thu Oct 5 21:22:16 UTC 2017 x86_64
> Build Date => Mar 22 2017 12:26:48
> Configure Command => './configure' '--build=x86_64-redhat-linux-gnu' '--host =x86_64-redhat-linux-gnu' '--target=x86_64-redhat-linux-gnu' '--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir =/usr/lib64' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedi r=/var/lib' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--cache-file= ../config.cache' '--with-libdir=lib64' '--with-config-file-path=/etc' '--with-co nfig-file-scan-dir=/etc/php.d' '--disable-debug' '--with-pic' '--disable-rpath' '--without-pear' '--with-bz2' '--with-exec-dir=/usr/bin' '--with-freetype-dir=/u sr' '--with-png-dir=/usr' '--with-xpm-dir=/usr' '--enable-gd-native-ttf' '--with out-gdbm' '--with-gettext' '--with-gmp' '--with-iconv' '--with-jpeg-dir=/usr' '- -with-openssl' '--with-pcre-regex=/usr' '--with-zlib' '--with-layout=GNU' '--ena ble-exif' '--enable-ftp' '--enable-magic-quotes' '--enable-sockets' '--enable-sy svsem' '--enable-sysvshm' '--enable-sysvmsg' '--with-kerberos' '--enable-ucd-snm p-hack' '--enable-shmop' '--enable-calendar' '--without-sqlite' '--with-libxml-d ir=/usr' '--enable-xml' '--with-system-tzdata' '--enable-force-cgi-redirect' '-- enable-pcntl' '--with-imap=shared' '--with-imap-ssl' '--enable-mbstring=shared' '--enable-mbregex' '--with-gd=shared' '--enable-bcmath=shared' '--enable-dba=sha red' '--with-db4=/usr' '--with-xmlrpc=shared' '--with-ldap=shared' '--with-ldap- sasl' '--with-mysql=shared,/usr' '--with-mysqli=shared,/usr/lib64/mysql/mysql_co nfig' '--enable-dom=shared' '--with-pgsql=shared' '--enable-wddx=shared' '--with -snmp=shared,/usr' '--enable-soap=shared' '--with-xsl=shared,/usr' '--enable-xml reader=shared' '--enable-xmlwriter=shared' '--with-curl=shared,/usr' '--enable-f astcgi' '--enable-pdo=shared' '--with-pdo-odbc=shared,unixODBC,/usr' '--with-pdo -mysql=shared,/usr/lib64/mysql/mysql_config' '--with-pdo-pgsql=shared,/usr' '--w ith-pdo-sqlite=shared,/usr' '--with-sqlite3=shared,/usr' '--enable-json=shared' '--enable-zip=shared' '--without-readline' '--with-libedit' '--with-pspell=share d' '--enable-phar=shared' '--with-tidy=shared,/usr' '--enable-sysvmsg=shared' '- -enable-sysvshm=shared' '--enable-sysvsem=shared' '--enable-posix=shared' '--wit h-unixODBC=shared,/usr' '--enable-fileinfo=shared' '--enable-intl=shared' '--wit h-icu-dir=/usr' '--with-enchant=shared,/usr' '--with-recode=shared,/usr'
18a20
> /etc/php.d/mssql.ini,
21a24
> /etc/php.d/pdo_dblib.ini,
27d29
< /etc/php.d/posix.ini,
32,34d33
< /etc/php.d/sysvmsg.ini,
< /etc/php.d/sysvsem.ini,
< /etc/php.d/sysvshm.ini,
41,45c40,44
< PHP API => 20100412
< PHP Extension => 20100525
< Zend Extension => 220100525
< Zend Extension Build => API220100525,NTS
< PHP Extension Build => API20100525,NTS
---
> PHP API => 20090626
> PHP Extension => 20090626
> Zend Extension => 220090626
> Zend Extension Build => API220090626,NTS
> PHP Extension Build => API20090626,NTS
48d46
< Zend Signal Handling => disabled
50c48
< Zend Multibyte Support => provided by mbstring
---
> Zend Multibyte Support => disabled
52,53d49
< DTrace Support => disabled
<
55c51
< Registered Stream Socket Transports => tcp, udp, unix, udg, ssl, sslv3, tls
---
> Registered Stream Socket Transports => tcp, udp, unix, udg, ssl, sslv3, sslv2, tls
57a54
>
59c56
< Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies
---
> Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
62c59
< _______________________________________________________________________
---
> _______________________________________________________________________
70c67
< Stream Wrapper support => compress.bzip2://
---
> Stream Wrapper support => compress.bz2://
72c69
< BZip2 Version => 1.0.6, 6-Sept-2010
---
> BZip2 Version => 1.0.5, 10-Dec-2007
80c77
< PHP Version => 5.4.16
---
> PHP Version => 5.3.3
82a80
> allow_call_time_pass_reference => Off => Off
94a93
> define_syslog_variables => Off => Off
103d101
< enable_post_data_reading => On => On
111a110
> highlight.bg => <font style="color: #FFFFFF">#FFFFFF</font> => <font style="co lor: #FFFFFF">#FFFFFF</font>
124a124,126
> magic_quotes_gpc => Off => Off
> magic_quotes_runtime => Off => Off
> magic_quotes_sybase => Off => Off
132,133c134,135
< max_input_vars => 5000 => 5000
< memory_limit => 256M => 256M
---
> max_input_vars => 1000 => 1000
> memory_limit => 128M => 128M
141a144,145
> register_globals => Off => Off
> register_long_arrays => Off => Off
144a149,152
> safe_mode => Off => Off
> safe_mode_exec_dir => no value => no value
> safe_mode_gid => Off => Off
> safe_mode_include_dir => no value => no value
147c155
< serialize_precision => 17 => 17
---
> serialize_precision => 100 => 100
162c170
< zend.detect_unicode => On => On
---
> y2k_compliance => On => On
164,165d171
< zend.multibyte => Off => Off
< zend.script_encoding => no value => no value
174c180
< cURL Information => 7.29.0
---
> cURL Information => 7.19.7
177c183
< AsynchDNS => Yes
---
> AsynchDNS => No
190c196
< Protocols => dict, file, ftp, ftps, gopher, http, https, imap, imaps, ldap, ld aps, pop3, pop3s, rtsp, scp, sftp, smtp, smtps, telnet, tftp
---
> Protocols => tftp, ftp, telnet, dict, ldap, ldaps, http, file, https, ftps, sc p, sftp
192,194c198,200
< SSL Version => NSS/3.28.4
< ZLib Version => 1.2.7
< libSSH Version => libssh2/1.4.3
---
> SSL Version => NSS/3.27.1
> ZLib Version => 1.2.3
> libSSH Version => libssh2/1.4.2
201c207
< Default timezone => US/Eastern
---
> Default timezone => America/New_York
208c214
< date.timezone => US/Eastern => US/Eastern
---
> date.timezone => America/New_York => America/New_York
214c220
< libxml Version => 2.9.1
---
> libxml Version => 2.7.6
228c234
< EXIF Version => 1.4 $Id$
---
> EXIF Version => 1.4 $Id: exif.c 293036 2010-01-03 09:23:27Z sebastian $
243c249
< version => 1.0.5
---
> version => 1.0.5-dev
248c254
< Revision => $Id: 2aa8dd57d9c0c655cd45e6e5872bb95fa5ad76cf $
---
> Revision => $Revision: 298196 $
261c267
< GD Version => bundled (2.1.0 compatible)
---
> GD Version => bundled (2.0.34 compatible)
264,265c270
< FreeType Version => 2.4.11
< T1Lib Support => enabled
---
> FreeType Version => 2.3.11
271c276
< libPNG Version => 1.5.13
---
> libPNG Version => 1.2.49
274d278
< libXpm Version => 30411
287c291
< GMP version => 6.0.0
---
> GMP version => 4.3.1
292c296
< Hashing Engines => md2 md4 md5 sha1 sha224 sha256 sha384 sha512 ripemd128 ripe md160 ripemd256 ripemd320 whirlpool tiger128,3 tiger160,3 tiger192,3 tiger128,4 tiger160,4 tiger192,4 snefru snefru256 gost adler32 crc32 crc32b fnv132 fnv164 j oaat 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 h aval256,5
---
> Hashing Engines => md2 md4 md5 sha1 sha224 sha256 sha384 sha512 ripemd128 ripe md160 ripemd256 ripemd320 whirlpool tiger128,3 tiger160,3 tiger192,3 tiger128,4 tiger160,4 tiger192,4 snefru snefru256 gost adler32 crc32 crc32b salsa10 salsa20 haval128,3 haval160,3 haval192,3 haval224,3 haval256,3 haval128,4 haval160,4 ha val192,4 haval224,4 haval256,4 haval128,5 haval160,5 haval192,5 haval224,5 haval 256,5
298c302
< iconv library version => 2.17
---
> iconv library version => 2.12
313c317
< RCS Version => $Id$
---
> RCS Version => $Id: ldap.c 299434 2010-05-17 20:09:42Z pajoye $
317c321
< Vendor Version => 20444
---
> Vendor Version => 20440
326,327c330,331
< libXML Compiled Version => 2.9.1
< libXML Loaded Version => 20901
---
> libXML Compiled Version => 2.7.6
> libXML Loaded Version => 20706
335d338
< libmbfl version => 1.3.2
368c371,376
< mhash
---
> mssql
>
> MSSQL Support => enabled
> Active Persistent Links => 0
> Active Links => 0
> Library version => FreeTDS
370,371c378,393
< MHASH support => Enabled
< MHASH API Version => Emulated Support
---
> 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
378c400
< Client API version => 5.5.56-MariaDB
---
> Client API version => 5.1.73
400c422
< Client API library version => 5.5.56-MariaDB
---
> Client API library version => 5.1.73
404c426
< Client API header version => 5.5.56-MariaDB
---
> Client API header version => 5.1.73
422,423c444,445
< OpenSSL Library Version => OpenSSL 1.0.2k-fips 26 Jan 2017
< OpenSSL Header Version => OpenSSL 1.0.2k-fips 26 Jan 2017
---
> OpenSSL Library Version => OpenSSL 1.0.1e-fips 11 Feb 2013
> OpenSSL Header Version => OpenSSL 1.0.1e-fips 11 Feb 2013
432c454
< PCRE Library Version => 8.32 2012-11-30
---
> PCRE Library Version => 7.8 2008-09-05
435c457
< pcre.backtrack_limit => 1000000 => 1000000
---
> pcre.backtrack_limit => 100000 => 100000
441c463,468
< PDO drivers => mysql, pgsql, sqlite
---
> PDO drivers => dblib, mysql, pgsql, sqlite
>
> pdo_dblib
>
> PDO Driver for FreeTDS/Sybase DB-lib => enabled
> Flavour => freetds
446,449c473
< Client API version => 5.5.56-MariaDB
<
< Directive => Local Value => Master Value
< pdo_mysql.default_socket => /var/lib/mysql/mysql.sock => /var/lib/mysql/mysql. sock
---
> Client API version => 5.1.73
454c478
< PostgreSQL(libpq) Version => 9.2.23
---
> PostgreSQL(libpq) Version => 8.4.20
456c480
< Revision => $Id$
---
> Revision => $Id: pdo_pgsql.c 300351 2010-06-10 12:11:19Z iliaa $
461c485
< SQLite Library => 3.7.17
---
> SQLite Library => 3.6.20
466,467c490
< PostgreSQL(libpq) Version => 9.2.23
< PostgreSQL(libpq) => PostgreSQL 9.2.23 on x86_64-redhat-linux-gnu, compiled by gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-16), 64-bit
---
> PostgreSQL(libpq) Version => 8.4.20
486c509
< SVN revision => $Id: c5042cc34acebcc0926625b57dff03deebbe6472 $
---
> SVN revision => $Revision: 298908 $
503,515d525
< 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 \>
<
519c529
< Version => $Id: 6c4d8062369898a397e4b128348042f5c01b4427 $
---
> Version => $Revision: 300393 $
528a539,540
> session.bug_compat_42 => Off => Off
> session.bug_compat_warn => Off => Off
536,537c548,549
< session.entropy_file => /dev/urandom => /dev/urandom
< session.entropy_length => 32 => 32
---
> session.entropy_file => no value => no value
> session.entropy_length => 0 => 0
546c558
< session.save_path => no value => no value
---
> session.save_path => /var/lib/php/session => /var/lib/php/session
548,553d559
< 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_UPL OAD_PROGRESS
< session.upload_progress.prefix => upload_progress_ => upload_progress_
565c571
< Revision => $Id: 692516840b2d7d6e7aedb0bedded1f53b764a99f $
---
> Revision => $Revision: 299424 $
571,572c577
< NET-SNMP Version => 5.7.2
< PHP SNMP Version => 0.1
---
> NET-SNMP Version => 5.5
592c597
< Classes => AppendIterator, ArrayIterator, ArrayObject, BadFunctionCallExceptio n, BadMethodCallException, CachingIterator, CallbackFilterIterator, DirectoryIte rator, DomainException, EmptyIterator, FilesystemIterator, FilterIterator, GlobI terator, InfiniteIterator, InvalidArgumentException, IteratorIterator, LengthExc eption, LimitIterator, LogicException, MultipleIterator, NoRewindIterator, OutOf BoundsException, OutOfRangeException, OverflowException, ParentIterator, RangeEx ception, RecursiveArrayIterator, RecursiveCachingIterator, RecursiveCallbackFilt erIterator, RecursiveDirectoryIterator, RecursiveFilterIterator, RecursiveIterat orIterator, RecursiveRegexIterator, RecursiveTreeIterator, RegexIterator, Runtim eException, SplDoublyLinkedList, SplFileInfo, SplFileObject, SplFixedArray, SplH eap, SplMinHeap, SplMaxHeap, SplObjectStorage, SplPriorityQueue, SplQueue, SplSt ack, SplTempFileObject, UnderflowException, UnexpectedValueException
---
> Classes => AppendIterator, ArrayIterator, ArrayObject, BadFunctionCallExceptio n, BadMethodCallException, CachingIterator, DirectoryIterator, DomainException, EmptyIterator, FilesystemIterator, FilterIterator, GlobIterator, InfiniteIterato r, InvalidArgumentException, IteratorIterator, LengthException, LimitIterator, L ogicException, MultipleIterator, NoRewindIterator, OutOfBoundsException, OutOfRa ngeException, OverflowException, ParentIterator, RangeException, RecursiveArrayI terator, RecursiveCachingIterator, RecursiveDirectoryIterator, RecursiveFilterIt erator, RecursiveIteratorIterator, RecursiveRegexIterator, RecursiveTreeIterator , RegexIterator, RuntimeException, SplDoublyLinkedList, SplFileInfo, SplFileObje ct, SplFixedArray, SplHeap, SplMinHeap, SplMaxHeap, SplObjectStorage, SplPriorit yQueue, SplQueue, SplStack, SplTempFileObject, UnderflowException, UnexpectedVal ueException
597,598c602,603
< SQLite3 module version => 0.7
< SQLite Library => 3.7.17
---
> SQLite3 module version => 0.7-dev
> SQLite Library => 3.6.20
606,608c611,617
< extension version => 0.12
< libssh2 version => 1.4.3
< banner => SSH-2.0-libssh2_1.4.3
---
> extension version => 0.11.0-dev
> libssh2 version => 1.2.2
> banner => SSH-2.0-libssh2_1.2.2
> remote forwarding => enabled
> hostbased auth => enabled
> polling support => enabled
> publickey subsystem => enabled
623c632,633
< from => no value => no value
---
> safe_mode_allowed_env_vars => PHP_ => PHP_
> safe_mode_protected_env_vars => LD_LIBRARY_PATH => LD_LIBRARY_PATH
627,631d636
< sysvmsg
<
< sysvmsg support => enabled
< Revision => $Id: e268047b695fe9a43cdf415c429729252347becd $
<
645c650
< libxml2 Version => 2.9.1
---
> libxml2 Version => 2.7.6
658,659c663,664
< libxslt Version => 1.1.28
< libxslt compiled against libxml Version => 2.9.1
---
> libxslt Version => 1.1.26
> libxslt compiled against libxml Version => 2.7.6
661c666
< libexslt Version => 1.1.28
---
> libexslt Version => 1.1.26
666,668c671,673
< Extension Version => $Id: 0c033d4e4613d577409950ed7bf8da4b68286d15 $
< Zip version => 1.11.0
< Compiled against libzip version => 0.10.1
---
> Extension Version => $Id: php_zip.c 300470 2010-06-15 18:48:33Z pajoye $
> Zip version => 1.9.1
> Libzip version => 0.9.0
673,676c678,681
< Stream Wrapper => compress.zlib://
< Stream Filter => zlib.inflate, zlib.deflate
< Compiled Version => 1.2.7
< Linked Version => 1.2.7
---
> Stream Wrapper support => compress.zlib://
> Stream Filter support => zlib.inflate, zlib.deflate
> Compiled Version => 1.2.3
> Linked Version => 1.2.3
686,687c691
< sysvsem
< sysvshm
---
> readline
692,693c696
< XDG_SESSION_ID => 24404
< HOSTNAME => monitor.micfo.com
---
> HOSTNAME => nagiosxi
697c700
< SSH_CLIENT => 199.223.117.0 27996 22
---
> SSH_CLIENT => 192.168.206.1 50306 22
700c703
< LS_COLORS => rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33; 01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44 :ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;3 1:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z =01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01 ;31:*.lzo=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz= 01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*. rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31 :*.cab=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm= 01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:* .png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01 ;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*. m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;3 5:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=0 1;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ax v=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36: *.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00 ;36:*.wav=00;36:*.axa=00;36:*.oga=00;36:*.spx=00;36:*.xspf=00;36:
---
> LS_COLORS => rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33; 01:cd=40;33;01:or=40;31;01:mi=01;05;37;41:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow =34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=0 1;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=0 1;31:*.gz=01;31:*.lz=01;31:*.xz=01;31:*.bz2=01;31:*.tbz=01;31:*.tbz2=01;31:*.bz= 01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar=01;31:*.ace=01;31:*.z oo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35 :*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=0 1;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:* .pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01 ;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wm v=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35: *.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;3 5:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=01;36:*.au=0 1;36:*.flac=01;36:*.mid=01;36:*.midi=01;36:*.mka=01;36:*.mp3=01;36:*.mpc=01;36:* .ogg=01;36:*.ra=01;36:*.wav=01;36:*.axa=01;36:*.oga=01;36:*.spx=01;36:*.xspf=01; 36:
702c705
< PATH => /usr/local/jdk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/ usr/local/bin:/usr/X11R6/bin:/root/bin
---
> PATH => /usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin
704,705d706
< JAVA_HOME => /usr/local/jdk
< EDITOR => vi
710d710
< LS_OPTIONS => --color=tty -F -A -b -T 0
712,714c712
< VISUAL => vi
< CLASSPATH => .:/usr/local/jdk/lib/classes.zip
< SSH_CONNECTION => 199.223.117.0 27996 199.223.117.199 22
---
> SSH_CONNECTION => 192.168.206.1 50306 192.168.206.138 22
716,717c714,715
< XDG_RUNTIME_DIR => /run/user/0
< HISTTIMEFORMAT => [%h/%d/%Y - %H:%M:%S]
---
> G_BROKEN_FILENAMES => 1
> OLDPWD => /var/lib/php/session
723,724c721
< _SERVER["XDG_SESSION_ID"] => 24404
< _SERVER["HOSTNAME"] => monitor.micfo.com
---
> _SERVER["HOSTNAME"] => nagiosxi
728c725
< _SERVER["SSH_CLIENT"] => 199.223.117.0 27996 22
---
> _SERVER["SSH_CLIENT"] => 192.168.206.1 50306 22
731c728
< _SERVER["LS_COLORS"] => rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;3 5:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34; 42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31 :*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo= 01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01 ;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2= 01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.s ar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31 :*.rz=01;31:*.cab=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=0 1;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.t iff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01; 35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.m p4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35 :*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=0 1;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf =01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*. flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00 ;36:*.ra=00;36:*.wav=00;36:*.axa=00;36:*.oga=00;36:*.spx=00;36:*.xspf=00;36:
---
> _SERVER["LS_COLORS"] => rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;3 5:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=01;05;37;41:su=37;41:sg=30;43:ca=30;41: tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01 ;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.zip=01;31:*.z=01;31:*.Z=0 1;31:*.dz=01;31:*.gz=01;31:*.lz=01;31:*.xz=01;31:*.bz2=01;31:*.tbz=01;31:*.tbz2= 01;31:*.bz=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar=01;31:*.ac e=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35: *.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01 ;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*. mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01; 35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv =01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:* .fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35 :*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=0 1;36:*.au=01;36:*.flac=01;36:*.mid=01;36:*.midi=01;36:*.mka=01;36:*.mp3=01;36:*. mpc=01;36:*.ogg=01;36:*.ra=01;36:*.wav=01;36:*.axa=01;36:*.oga=01;36:*.spx=01;36 :*.xspf=01;36:
733c730
< _SERVER["PATH"] => /usr/local/jdk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin :/usr/bin:/usr/local/bin:/usr/X11R6/bin:/root/bin
---
> _SERVER["PATH"] => /usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bi n:/root/bin
735,736d731
< _SERVER["JAVA_HOME"] => /usr/local/jdk
< _SERVER["EDITOR"] => vi
741d735
< _SERVER["LS_OPTIONS"] => --color=tty -F -A -b -T 0
743,745c737
< _SERVER["VISUAL"] => vi
< _SERVER["CLASSPATH"] => .:/usr/local/jdk/lib/classes.zip
< _SERVER["SSH_CONNECTION"] => 199.223.117.0 27996 199.223.117.199 22
---
> _SERVER["SSH_CONNECTION"] => 192.168.206.1 50306 192.168.206.138 22
747,748c739,740
< _SERVER["XDG_RUNTIME_DIR"] => /run/user/0
< _SERVER["HISTTIMEFORMAT"] => [%h/%d/%Y - %H:%M:%S]
---
> _SERVER["G_BROKEN_FILENAMES"] => 1
> _SERVER["OLDPWD"] => /var/lib/php/session
755,756c747
< _SERVER["REQUEST_TIME_FLOAT"] => 1521613457.6805
< _SERVER["REQUEST_TIME"] => 1521613457
---
> _SERVER["REQUEST_TIME"] => 1521636675
759c750
< [0] => -
---
> [0] => -
767c758
< and included in the distribution in the file: LICENSE
---
> and included in the distribution in the file: LICENSEPHP 5.4 has no native means by which it could access a given machine's MAC address even if it wanted to. You'd need to make system calls for that which in this case would then rely on external Linux tools for the info (that wouldn't be very platform agnostic).
Nagios XI just piggy-backs off the native PHP session handling. Nagios XI creates a session, stores that session's ID in a browser cookie, and writes a PHP "session file" out to disk with relevant info to be retrieved via the $_SESSION global.
When I then login as the 'nagiosadmin' user, a cookie is written to my browser with name 'nagiosxi' and value '1c9i92u29hqh8tmtmu581lhch4'. So what the heck is that big string of jargon? It's an ID for a PHP session which, for Nagios XI, is written to disk by default:
Code: Select all
[root@nagiosxi ~]# ls -al /var/lib/php/session | grep 1c9i92u29hqh8tmtmu581lhch4
-rw------- 1 apache apache 187 Mar 21 08:44 sess_1c9i92u29hqh8tmtmu581lhch4Code: Select all
[root@nagiosxi ~]# cat /var/lib/php/session/sess_1c9i92u29hqh8tmtmu581lhch4
language|s:5:"en_US";user_id|s:1:"1";username|s:11:"nagiosadmin";userlevel|s:3:"255";auth_type|s:5:"local";lastlogintime|s:10:"1521598172";timesloggedin|s:1:"2";has_seen_login_alerts|b:1;Former Nagios employee
https://www.mcapra.com/
https://www.mcapra.com/
Re: Nagios Access tied to single computer from same IP Issue
Hello,
I thought the same, but something is obliviously changed since under CentOS6, I did not have this problem at all when it is setup. Reason I upgraded to CentOS7 is due to moving to new hardware and I did fresh install and restored the plugins and the configurations for the hosts and services and went on from there. Just when multiple computers behind the same router access the server, it hangs for everyone except the first one when using nagios.
Under CentOS6, this behavior is not observed for it. And just accessing it all from single computer with different browsers and multiple tabs, it will just work just fine. Just trying to do it with multiple computers that the issue manifest itself for it, since each computer have it own mac address and they are all going though the same router to access the same site that this shows up.
It is pretty frustrating trying to troubleshoot this and I rather not go back to CentOS6 since CentOS7 is now a mature platform and CentOS6 is getting old and with the plugins requirements, I rather keep it clean for easy maintainability. Something points to either Apache or Nagios that is the main problem for this behavior to show up.
We have mixture of 10 windows, linux and Mac platforms here at the office, and I would like to have all of us access it without having to resort to this problem for it.
I thought the same, but something is obliviously changed since under CentOS6, I did not have this problem at all when it is setup. Reason I upgraded to CentOS7 is due to moving to new hardware and I did fresh install and restored the plugins and the configurations for the hosts and services and went on from there. Just when multiple computers behind the same router access the server, it hangs for everyone except the first one when using nagios.
Under CentOS6, this behavior is not observed for it. And just accessing it all from single computer with different browsers and multiple tabs, it will just work just fine. Just trying to do it with multiple computers that the issue manifest itself for it, since each computer have it own mac address and they are all going though the same router to access the same site that this shows up.
It is pretty frustrating trying to troubleshoot this and I rather not go back to CentOS6 since CentOS7 is now a mature platform and CentOS6 is getting old and with the plugins requirements, I rather keep it clean for easy maintainability. Something points to either Apache or Nagios that is the main problem for this behavior to show up.
We have mixture of 10 windows, linux and Mac platforms here at the office, and I would like to have all of us access it without having to resort to this problem for it.
Re: Nagios Access tied to single computer from same IP Issue
Can we get some more information about your environment?
- Is your XI machine hosted on-site or in the cloud? It sounds like the latter but I want to confirm.
- Was the CentOS 7 install a clean, minimal install? Or did it have a desktop, or was previously used for another purpose?
- Do you have any proxies in place, or firewalls, anything like that in-between XI and your workstations?
- Are there any entries in the /var/log/httpd/error_log file when this happens?
Former Nagios employee
Re: Nagios Access tied to single computer from same IP Issue
Howdy,
Got it all sorted out. It is due to the php.ini file that is the culprit for it. I setup the new Nagios XI server and use it as template to check on the original to find the main issue and zeroed in on the php.ini which is the problem. After updating it, it works properly now.
Got it all sorted out. It is due to the php.ini file that is the culprit for it. I setup the new Nagios XI server and use it as template to check on the original to find the main issue and zeroed in on the php.ini which is the problem. After updating it, it works properly now.