Page 1 of 2

Updating very old nagios version to the newest

Posted: Thu May 17, 2018 6:24 am
by reincarne
Hi,
We recently tried to upgrade a very old nagios version to the newest version.
At the end of the upgrade two things happened:
1. This error was shown:
WARNING: certificate common name “nagios-PP” doesn't match requested host name “localhost”.
HTTP request sent, awaiting response... 500 Internal Server Error
2018-05-17 11:18:36 ERROR 500: Internal Server Error.

NAGIOSQL LOGIN FAILED!


2. https://localhost/naxioxi became white page while https://localhost/ does show the login screen.
The error I see in access_log is:
192.168.200.5 - - [17/May/2018:11:22:36 +0000] "GET /nagiosxi/ HTTP/1.1" 500 - "https://XXX.XXX.XXX.XXX/" "Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0"
192.168.200.5 - - [17/May/2018:11:22:36 +0000] "GET /favicon.ico HTTP/1.1" 404 287 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0"
192.168.200.5 - - [17/May/2018:11:22:37 +0000] "GET /favicon.ico HTTP/1.1" 404 287 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0"


How can I resolve it?

Re: Updating very old nagios version to the newest

Posted: Thu May 17, 2018 2:36 pm
by npolovenko
Hi, @reincarne. From what I can see your Certificate is not valid.

Please go over this article to make sure your SSL and Certificate are configured correctly:
https://assets.nagios.com/downloads/nag ... gIR4PD_BwE


Also, please upload the sudoers file:

Code: Select all

/etc/sudoers
As well as the:

Code: Select all

 /etc/httpd/conf.d/ssl.conf

Re: Updating very old nagios version to the newest

Posted: Mon May 21, 2018 4:58 am
by reincarne
I tried to do everything according to this guide:
https://assets.nagios.com/downloads/nag ... 1511103181

Since https://XX.XX.XX.XX/nagiosxi is showing an empty page - I was not able to complete this process.

Code: Select all

#includedir /etc/sudoers.d

Defaults    always_set_home
Defaults    env_reset
Defaults    env_keep =  "COLORS DISPLAY HOSTNAME HISTSIZE INPUTRC KDEDIR LS_COLORS"
Defaults    env_keep += "MAIL PS1 PS2 QTDIR USERNAME LANG LC_ADDRESS LC_CTYPE"
Defaults    env_keep += "LC_COLLATE LC_IDENTIFICATION LC_MEASUREMENT LC_MESSAGES"
Defaults    env_keep += "LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER LC_TELEPHONE"
Defaults    env_keep += "LC_TIME LC_ALL LANGUAGE LINGUAS _XKB_CHARSET XAUTHORITY"
Defaults    umask = 0022
Defaults    umask_override
Defaults    secure_path = /sbin:/bin:/usr/sbin:/usr/bin
Cmnd_Alias   NSHELLS = /bin/bash,/bin/ksh
Cmnd_Alias  SHELLESC = /bin/vi, /usr/bin/vim, /bin/more, /usr/bin/less, /usr/bin/zless, /bin/ed, /usr/bin/ex, /bin/view, /usr/bin/vimdiff, /usr/bin/find, /usr/bin/bashbug-63
 root    ALL=(ALL)       ALL
 ec2-user ALL = NOPASSWD: ALL
 %ops ALL=(ALL) NOPASSWD: ALL, !/usr/bin/sudo, !/usr/bin/su, !NSHELLS, !/bin/su, !/usr/bin/screen
 %ops ALL=(ALL) NOPASSWD: NOEXEC: SHELLESC
 %ops ALL = (ALL) NOPASSWD: /usr/bin/sudo su - root
 %ops ALL = (ALL) NOPASSWD: /bin/su - nagios
 nagios ALL = NOPASSWD: /usr/sbin/postqueue -c /etc/postfix -p
 nagios ALL = NOPASSWD: /usr/bin/md5sum /etc/ssl/certs/*
 nagios ALL = NOPASSWD:/usr/lib/nagios/plugins/contrib/*
 nagios ALL = NOPASSWD: /usr/sbin/postqueue *
 nagios ALL = NOPASSWD: /usr/lib/nagios/plugins/contrib/check_postque.sh *
 nagios ALL = NOPASSWD: /usr/lib64/nagios/plugins/contrib/check_nginx_workers.sh *
 nagios ALL = NOPASSWD: /usr/local/bin/check-puppet-agent *
 nagios ALL = NOPASSWD: /etc/init.d/solr status, /etc/init.d/mcollective restart
 nagios ALL = NOPASSWD: /usr/bin/facter


User_Alias      NAGIOSXI=nagios
User_Alias		NAGIOSXIWEB=apache
NAGIOSXI ALL = NOPASSWD:/etc/init.d/nagios start
NAGIOSXI ALL = NOPASSWD:/etc/init.d/nagios stop
NAGIOSXI ALL = NOPASSWD:/etc/init.d/nagios restart
NAGIOSXI ALL = NOPASSWD:/etc/init.d/nagios reload
NAGIOSXI ALL = NOPASSWD:/etc/init.d/nagios status
NAGIOSXI ALL = NOPASSWD:/etc/init.d/nagios checkconfig
NAGIOSXI ALL = NOPASSWD:/etc/init.d/ndo2db start
NAGIOSXI ALL = NOPASSWD:/etc/init.d/ndo2db stop
NAGIOSXI ALL = NOPASSWD:/etc/init.d/ndo2db restart
NAGIOSXI ALL = NOPASSWD:/etc/init.d/ndo2db reload
NAGIOSXI ALL = NOPASSWD:/etc/init.d/ndo2db status
NAGIOSXI ALL = NOPASSWD:/etc/init.d/npcd start
NAGIOSXI ALL = NOPASSWD:/etc/init.d/npcd stop
NAGIOSXI ALL = NOPASSWD:/etc/init.d/npcd restart
NAGIOSXI ALL = NOPASSWD:/etc/init.d/npcd reload
NAGIOSXI ALL = NOPASSWD:/etc/init.d/npcd status
NAGIOSXI ALL = NOPASSWD:/usr/bin/php /usr/local/nagiosxi/html/includes/components/autodiscovery/scripts/autodiscover_new.php *
NAGIOSXI ALL = NOPASSWD:/usr/local/nagiosxi/html/includes/components/profile/getprofile.sh
NAGIOSXI ALL = NOPASSWD:/usr/local/nagiosxi/scripts/upgrade_to_latest.sh
NAGIOSXI ALL = NOPASSWD:/usr/local/nagiosxi/scripts/change_timezone.sh
NAGIOSXI ALL = NOPASSWD:/usr/local/nagiosxi/scripts/manage_services.sh *
NAGIOSXI ALL = NOPASSWD:/usr/local/nagiosxi/scripts/reset_config_perms.sh
NAGIOSXI ALL = NOPASSWD:/usr/local/nagiosxi/scripts/backup_xi.sh *
NAGIOSXIWEB ALL = NOPASSWD:/usr/bin/tail -100 /var/log/messages
NAGIOSXIWEB ALL = NOPASSWD:/usr/bin/tail -100 /var/log/httpd/error_log
NAGIOSXIWEB ALL = NOPASSWD:/usr/bin/tail -100 /var/log/mysqld.log
NAGIOSXIWEB ALL = NOPASSWD:/usr/bin/php /usr/local/nagiosxi/html/includes/components/autodiscovery/scripts/autodiscover_new.php *
NAGIOSXIWEB ALL = NOPASSWD:/usr/local/nagiosxi/html/includes/components/profile/getprofile.sh
NAGIOSXIWEB ALL = NOPASSWD:/etc/init.d/snmptt restart
NAGIOSXIWEB ALL = NOPASSWD:/usr/local/nagiosxi/scripts/repair_databases.sh
NAGIOSXIWEB ALL = NOPASSWD:/usr/local/nagiosxi/scripts/manage_services.sh *

Code: Select all

# This is the Apache server configuration file providing SSL support.
# It contains the configuration directives to instruct the server how to
# serve pages over an https connection. For detailing information about these 
# directives see <URL:http://httpd.apache.org/docs/2.2/mod/mod_ssl.html>
# 
# Do NOT simply read the instructions in here without understanding
# what they do.  They're here only as hints or reminders.  If you are unsure
# consult the online docs. You have been warned.  
#

LoadModule ssl_module modules/mod_ssl.so

#
# When we also provide SSL we have to listen to the 
# the HTTPS port in addition.
#
Listen 443

##
##  SSL Global Context
##
##  All SSL configuration in this context applies both to
##  the main server and all SSL-enabled virtual hosts.
##

#   Pass Phrase Dialog:
#   Configure the pass phrase gathering process.
#   The filtering dialog program (`builtin' is a internal
#   terminal dialog) has to provide the pass phrase on stdout.
SSLPassPhraseDialog  builtin

#   Inter-Process Session Cache:
#   Configure the SSL Session Cache: First the mechanism 
#   to use and second the expiring timeout (in seconds).
SSLSessionCache         shmcb:/var/cache/mod_ssl/scache(512000)
SSLSessionCacheTimeout  300

#   Semaphore:
#   Configure the path to the mutual exclusion semaphore the
#   SSL engine uses internally for inter-process synchronization. 
SSLMutex default

#   Pseudo Random Number Generator (PRNG):
#   Configure one or more sources to seed the PRNG of the 
#   SSL library. The seed data should be of good random quality.
#   WARNING! On some platforms /dev/random blocks if not enough entropy
#   is available. This means you then cannot use the /dev/random device
#   because it would lead to very long connection times (as long as
#   it requires to make more entropy available). But usually those
#   platforms additionally provide a /dev/urandom device which doesn't
#   block. So, if available, use this one instead. Read the mod_ssl User
#   Manual for more details.
SSLRandomSeed startup file:/dev/urandom  256
SSLRandomSeed connect builtin
#SSLRandomSeed startup file:/dev/random  512
#SSLRandomSeed connect file:/dev/random  512
#SSLRandomSeed connect file:/dev/urandom 512

#
# Use "SSLCryptoDevice" to enable any supported hardware
# accelerators. Use "openssl engine -v" to list supported
# engine names.  NOTE: If you enable an accelerator and the
# server does not start, consult the error logs and ensure
# your accelerator is functioning properly. 
#
SSLCryptoDevice builtin
#SSLCryptoDevice ubsec

##
## SSL Virtual Host Context
##

<VirtualHost _default_:443>

# General setup for the virtual host, inherited from global configuration
#DocumentRoot "/var/www/html"
#ServerName www.example.com:443

# Use separate log files for the SSL virtual host; note that LogLevel
# is not inherited from httpd.conf.
ErrorLog logs/ssl_error_log
TransferLog logs/ssl_access_log
LogLevel warn

#   SSL Engine Switch:
#   Enable/Disable SSL for this virtual host.
SSLEngine off

#   SSL Protocol support:
# List the enable protocol levels with which clients will be able to
# connect.  Disable SSLv2 access by default:
#SSLProtocol all -SSLv2

#   SSL Cipher Suite:
# List the ciphers that the client is permitted to negotiate.
# See the mod_ssl documentation for a complete list.
#SSLCipherSuite ALL:!ADH:!EXPORT:!SSLv2:RC4+RSA:+HIGH:+MEDIUM:+LOW


###SSLProtocol ALL -SSLv2 -SSLv3
###SSLHonorCipherOrder On
###SSLCipherSuite ECDHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-SHA256:ECDHE-RSA-AES128-SHA:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES256-SHA:AES128-GCM-SHA256:AES128-SHA256:AES128-SHA:AES256-GCM-SHA384:AES256-SHA256:AES256-SHA:DES-CBC3-SHA

SSLProtocol ALL -SSLv2 -SSLv3
SSLHonorCipherOrder On
SSLCipherSuite ECDHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-SHA256:ECDHE-RSA-AES128-SHA:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES256-SHA:AES128-GCM-SHA256:AES128-SHA256:AES128-SHA:AES256-GCM-SHA384:AES256-SHA256:AES256-SHA:DES-CBC3-SHA

#   Server Certificate:
# Point SSLCertificateFile at a PEM encoded certificate.  If
# the certificate is encrypted, then you will be prompted for a
# pass phrase.  Note that a kill -HUP will prompt again.  A new
# certificate can be generated using the genkey(1) command.
#SSLCertificateFile /etc/pki/tls/certs/nagios-vip.crt
SSLCertificateFile /etc/pki/tls/certs/certfile.crt

#   Server Private Key:
#   If the key is not combined with the certificate, use this
#   directive to point at the key file.  Keep in mind that if
#   you've both a RSA and a DSA private key you can configure
#   both in parallel (to also allow the use of DSA ciphers, etc.)
#SSLCertificateKeyFile /etc/pki/tls/certs/nagios-vip.key
SSLCertificateKeyFile /etc/pki/tls/private/keyfile.key

#   Server Certificate Chain:
#   Point SSLCertificateChainFile at a file containing the
#   concatenation of PEM encoded CA certificates which form the
#   certificate chain for the server certificate. Alternatively
#   the referenced file can be the same as SSLCertificateFile
#   when the CA certificates are directly appended to the server
#   certificate for convinience.
#SSLCertificateChainFile /etc/pki/tls/certs/server-chain.crt

#   Certificate Authority (CA):
#   Set the CA certificate verification path where to find CA
#   certificates for client authentication or alternatively one
#   huge file containing all of them (file must be PEM encoded)
#SSLCACertificateFile /etc/pki/tls/certs/ca-bundle.crt

#   Client Authentication (Type):
#   Client certificate verification type and depth.  Types are
#   none, optional, require and optional_no_ca.  Depth is a
#   number which specifies how deeply to verify the certificate
#   issuer chain before deciding the certificate is not valid.
#SSLVerifyClient require
#SSLVerifyDepth  10

#   Access Control:
#   With SSLRequire you can do per-directory access control based
#   on arbitrary complex boolean expressions containing server
#   variable checks and other lookup directives.  The syntax is a
#   mixture between C and Perl.  See the mod_ssl documentation
#   for more details.
#<Location />
#SSLRequire (    %{SSL_CIPHER} !~ m/^(EXP|NULL)/ \
#            and %{SSL_CLIENT_S_DN_O} eq "Snake Oil, Ltd." \
#            and %{SSL_CLIENT_S_DN_OU} in {"Staff", "CA", "Dev"} \
#            and %{TIME_WDAY} >= 1 and %{TIME_WDAY} <= 5 \
#            and %{TIME_HOUR} >= 8 and %{TIME_HOUR} <= 20       ) \
#           or %{REMOTE_ADDR} =~ m/^192\.76\.162\.[0-9]+$/
#</Location>

#   SSL Engine Options:
#   Set various options for the SSL engine.
#   o FakeBasicAuth:
#     Translate the client X.509 into a Basic Authorisation.  This means that
#     the standard Auth/DBMAuth methods can be used for access control.  The
#     user name is the `one line' version of the client's X.509 certificate.
#     Note that no password is obtained from the user. Every entry in the user
#     file needs this password: `xxj31ZMTZzkVA'.
#   o ExportCertData:
#     This exports two additional environment variables: SSL_CLIENT_CERT and
#     SSL_SERVER_CERT. These contain the PEM-encoded certificates of the
#     server (always existing) and the client (only existing when client
#     authentication is used). This can be used to import the certificates
#     into CGI scripts.
#   o StdEnvVars:
#     This exports the standard SSL/TLS related `SSL_*' environment variables.
#     Per default this exportation is switched off for performance reasons,
#     because the extraction step is an expensive operation and is usually
#     useless for serving static content. So one usually enables the
#     exportation for CGI and SSI requests only.
#   o StrictRequire:
#     This denies access when "SSLRequireSSL" or "SSLRequire" applied even
#     under a "Satisfy any" situation, i.e. when it applies access is denied
#     and no other module can change it.
#   o OptRenegotiate:
#     This enables optimized SSL connection renegotiation handling when SSL
#     directives are used in per-directory context. 
#SSLOptions +FakeBasicAuth +ExportCertData +StrictRequire
<Files ~ "\.(cgi|shtml|phtml|php3?)$">
    SSLOptions +StdEnvVars
</Files>
<Directory "/var/www/cgi-bin">
    SSLOptions +StdEnvVars
</Directory>

#   SSL Protocol Adjustments:
#   The safe and default but still SSL/TLS standard compliant shutdown
#   approach is that mod_ssl sends the close notify alert but doesn't wait for
#   the close notify alert from client. When you need a different shutdown
#   approach you can use one of the following variables:
#   o ssl-unclean-shutdown:
#     This forces an unclean shutdown when the connection is closed, i.e. no
#     SSL close notify alert is send or allowed to received.  This violates
#     the SSL/TLS standard but is needed for some brain-dead browsers. Use
#     this when you receive I/O errors because of the standard approach where
#     mod_ssl sends the close notify alert.
#   o ssl-accurate-shutdown:
#     This forces an accurate shutdown when the connection is closed, i.e. a
#     SSL close notify alert is send and mod_ssl waits for the close notify
#     alert of the client. This is 100% SSL/TLS standard compliant, but in
#     practice often causes hanging connections with brain-dead browsers. Use
#     this only for browsers where you know that their SSL implementation
#     works correctly. 
#   Notice: Most problems of broken clients are also related to the HTTP
#   keep-alive facility, so you usually additionally want to disable
#   keep-alive for those clients, too. Use variable "nokeepalive" for this.
#   Similarly, one has to force some clients to use HTTP/1.0 to workaround
#   their broken HTTP/1.1 implementation. Use variables "downgrade-1.0" and
#   "force-response-1.0" for this.
SetEnvIf User-Agent ".*MSIE.*" \
         nokeepalive ssl-unclean-shutdown \
         downgrade-1.0 force-response-1.0

#   Per-Server Logging:
#   The home of a custom SSL log file. Use this when you want a
#   compact non-error SSL logfile on a virtual host basis.
CustomLog logs/ssl_request_log \
          "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"



## AJAXTERM #####################
ProxyRequests Off
<Proxy *>
        AuthUserFile /usr/local/nagiosxi/etc/htpasswd.users
        AuthName "Nagios Core"
        AuthType Basic
        require valid-user
        Order Deny,allow
        Allow from all
</Proxy>
ProxyPass /nagios/ajaxterm/ http://localhost:8022/
ProxyPassReverse /nagios/ajaxterm/ http://localhost:8022/
## AJAXTERM #####################
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule nagiosxi/api/v1/(.*)$ /usr/local/nagiosxi/html/api/v1/index.php?request=$1 [QSA,NC,L]
</IfModule>

</VirtualHost>

Re: Updating very old nagios version to the newest

Posted: Mon May 21, 2018 10:23 am
by lmiltchev
Have you tried restarting apache?

Code: Select all

service httpd restart
Were you asked (in the browser) to add a security exception or it just went to a blank screen?

Try accessing the "https://x.x.x.x/nagiosxi/" page again, then run the following commands, and show the output in code wraps:

Code: Select all

tail -100 /var/log/httpd/error_log
tail -100 /var/log/httpd/ssl_error_log

Re: Updating very old nagios version to the newest

Posted: Tue May 22, 2018 2:30 am
by reincarne
I did restart the httpd service and added the security exception.

Code: Select all

[Mon May 21 08:35:03 2018] [error] [client 192.168.200.5] PHP Warning:  require_once(/data/nagiosxi/html/includes/phpmailer/PHPMailerAutoload.php): failed to open stream: Permission denied in /data/nagiosxi/html/includes/utils-email.inc.php on line 6, referer: https://172.17.0.95/nagiosxi/index.php
[Mon May 21 08:35:33 2018] [error] [client 192.168.200.5] PHP Warning:  require_once(/data/nagiosxi/html/includes/phpmailer/PHPMailerAutoload.php): failed to open stream: Permission denied in /data/nagiosxi/html/includes/utils-email.inc.php on line 6, referer: https://172.17.0.95/nagiosxi/index.php
[Mon May 21 08:35:33 2018] [error] [client 192.168.200.5] PHP Warning:  require_once(/data/nagiosxi/html/includes/phpmailer/PHPMailerAutoload.php): failed to open stream: Permission denied in /data/nagiosxi/html/includes/utils-email.inc.php on line 6, referer: https://172.17.0.95/nagiosxi/index.php
[Mon May 21 08:36:03 2018] [error] [client 192.168.200.5] PHP Warning:  require_once(/data/nagiosxi/html/includes/phpmailer/PHPMailerAutoload.php): failed to open stream: Permission denied in /data/nagiosxi/html/includes/utils-email.inc.php on line 6, referer: https://172.17.0.95/nagiosxi/index.php
[Mon May 21 08:36:05 2018] [error] [client 192.168.200.5] PHP Warning:  require_once(/data/nagiosxi/html/includes/phpmailer/PHPMailerAutoload.php): failed to open stream: Permission denied in /data/nagiosxi/html/includes/utils-email.inc.php on line 6, referer: https://172.17.0.95/nagiosxi/index.php
[Mon May 21 08:36:05 2018] [error] [client 192.168.200.5] PHP Warning:  require_once(/data/nagiosxi/html/includes/phpmailer/PHPMailerAutoload.php): failed to open stream: Permission denied in /data/nagiosxi/html/includes/utils-email.inc.php on line 6, referer: https://172.17.0.95/nagiosxi/index.php
[Mon May 21 08:36:33 2018] [error] [client 192.168.200.5] PHP Warning:  require_once(/data/nagiosxi/html/includes/phpmailer/PHPMailerAutoload.php): failed to open stream: Permission denied in /data/nagiosxi/html/includes/utils-email.inc.php on line 6, referer: https://172.17.0.95/nagiosxi/index.php
[Mon May 21 08:36:33 2018] [error] [client 192.168.200.5] PHP Warning:  require_once(/data/nagiosxi/html/includes/phpmailer/PHPMailerAutoload.php): failed to open stream: Permission denied in /data/nagiosxi/html/includes/utils-email.inc.php on line 6, referer: https://172.17.0.95/nagiosxi/index.php
[Mon May 21 08:37:03 2018] [error] [client 192.168.200.5] PHP Warning:  require_once(/data/nagiosxi/html/includes/phpmailer/PHPMailerAutoload.php): failed to open stream: Permission denied in /data/nagiosxi/html/includes/utils-email.inc.php on line 6, referer: https://172.17.0.95/nagiosxi/index.php
[Mon May 21 08:37:03 2018] [error] [client 192.168.200.5] PHP Warning:  require_once(/data/nagiosxi/html/includes/phpmailer/PHPMailerAutoload.php): failed to open stream: Permission denied in /data/nagiosxi/html/includes/utils-email.inc.php on line 6, referer: https://172.17.0.95/nagiosxi/index.php
[Mon May 21 08:37:33 2018] [error] [client 192.168.200.5] PHP Warning:  require_once(/data/nagiosxi/html/includes/phpmailer/PHPMailerAutoload.php): failed to open stream: Permission denied in /data/nagiosxi/html/includes/utils-email.inc.php on line 6, referer: https://172.17.0.95/nagiosxi/index.php
[Mon May 21 08:37:33 2018] [error] [client 192.168.200.5] PHP Warning:  require_once(/data/nagiosxi/html/includes/phpmailer/PHPMailerAutoload.php): failed to open stream: Permission denied in /data/nagiosxi/html/includes/utils-email.inc.php on line 6, referer: https://172.17.0.95/nagiosxi/index.php
[Mon May 21 08:38:03 2018] [error] [client 192.168.200.5] PHP Warning:  require_once(/data/nagiosxi/html/includes/phpmailer/PHPMailerAutoload.php): failed to open stream: Permission denied in /data/nagiosxi/html/includes/utils-email.inc.php on line 6, referer: https://172.17.0.95/nagiosxi/index.php
[Mon May 21 08:38:03 2018] [error] [client 192.168.200.5] PHP Warning:  require_once(/data/nagiosxi/html/includes/phpmailer/PHPMailerAutoload.php): failed to open stream: Permission denied in /data/nagiosxi/html/includes/utils-email.inc.php on line 6, referer: https://172.17.0.95/nagiosxi/index.php
[Mon May 21 08:38:33 2018] [error] [client 192.168.200.5] PHP Warning:  require_once(/data/nagiosxi/html/includes/phpmailer/PHPMailerAutoload.php): failed to open stream: Permission denied in /data/nagiosxi/html/includes/utils-email.inc.php on line 6, referer: https://172.17.0.95/nagiosxi/index.php
[Mon May 21 08:38:33 2018] [error] [client 192.168.200.5] PHP Warning:  require_once(/data/nagiosxi/html/includes/phpmailer/PHPMailerAutoload.php): failed to open stream: Permission denied in /data/nagiosxi/html/includes/utils-email.inc.php on line 6, referer: https://172.17.0.95/nagiosxi/index.php
[Mon May 21 08:39:03 2018] [error] [client 192.168.200.5] PHP Warning:  require_once(/data/nagiosxi/html/includes/phpmailer/PHPMailerAutoload.php): failed to open stream: Permission denied in /data/nagiosxi/html/includes/utils-email.inc.php on line 6, referer: https://172.17.0.95/nagiosxi/index.php
[Mon May 21 08:39:03 2018] [error] [client 192.168.200.5] PHP Warning:  require_once(/data/nagiosxi/html/includes/phpmailer/PHPMailerAutoload.php): failed to open stream: Permission denied in /data/nagiosxi/html/includes/utils-email.inc.php on line 6, referer: https://172.17.0.95/nagiosxi/index.php
[Mon May 21 08:39:33 2018] [error] [client 192.168.200.5] PHP Warning:  require_once(/data/nagiosxi/html/includes/phpmailer/PHPMailerAutoload.php): failed to open stream: Permission denied in /data/nagiosxi/html/includes/utils-email.inc.php on line 6, referer: https://172.17.0.95/nagiosxi/index.php
[Mon May 21 08:39:33 2018] [error] [client 192.168.200.5] PHP Warning:  require_once(/data/nagiosxi/html/includes/phpmailer/PHPMailerAutoload.php): failed to open stream: Permission denied in /data/nagiosxi/html/includes/utils-email.inc.php on line 6, referer: https://172.17.0.95/nagiosxi/index.php
[Mon May 21 08:40:03 2018] [error] [client 192.168.200.5] PHP Warning:  require_once(/data/nagiosxi/html/includes/phpmailer/PHPMailerAutoload.php): failed to open stream: Permission denied in /data/nagiosxi/html/includes/utils-email.inc.php on line 6, referer: https://172.17.0.95/nagiosxi/index.php
[Mon May 21 08:40:03 2018] [error] [client 192.168.200.5] PHP Warning:  require_once(/data/nagiosxi/html/includes/phpmailer/PHPMailerAutoload.php): failed to open stream: Permission denied in /data/nagiosxi/html/includes/utils-email.inc.php on line 6, referer: https://172.17.0.95/nagiosxi/index.php
[Mon May 21 08:40:33 2018] [error] [client 192.168.200.5] PHP Warning:  require_once(/data/nagiosxi/html/includes/phpmailer/PHPMailerAutoload.php): failed to open stream: Permission denied in /data/nagiosxi/html/includes/utils-email.inc.php on line 6, referer: https://172.17.0.95/nagiosxi/index.php
[Mon May 21 08:40:33 2018] [error] [client 192.168.200.5] PHP Warning:  require_once(/data/nagiosxi/html/includes/phpmailer/PHPMailerAutoload.php): failed to open stream: Permission denied in /data/nagiosxi/html/includes/utils-email.inc.php on line 6, referer: https://172.17.0.95/nagiosxi/index.php
[Mon May 21 08:41:03 2018] [error] [client 192.168.200.5] PHP Warning:  require_once(/data/nagiosxi/html/includes/phpmailer/PHPMailerAutoload.php): failed to open stream: Permission denied in /data/nagiosxi/html/includes/utils-email.inc.php on line 6, referer: https://172.17.0.95/nagiosxi/index.php
[Mon May 21 08:41:05 2018] [error] [client 192.168.200.5] PHP Warning:  require_once(/data/nagiosxi/html/includes/phpmailer/PHPMailerAutoload.php): failed to open stream: Permission denied in /data/nagiosxi/html/includes/utils-email.inc.php on line 6, referer: https://172.17.0.95/nagiosxi/index.php
[Mon May 21 08:41:05 2018] [error] [client 192.168.200.5] PHP Warning:  require_once(/data/nagiosxi/html/includes/phpmailer/PHPMailerAutoload.php): failed to open stream: Permission denied in /data/nagiosxi/html/includes/utils-email.inc.php on line 6, referer: https://172.17.0.95/nagiosxi/index.php
[Mon May 21 08:41:34 2018] [error] [client 192.168.200.5] PHP Warning:  require_once(/data/nagiosxi/html/includes/phpmailer/PHPMailerAutoload.php): failed to open stream: Permission denied in /data/nagiosxi/html/includes/utils-email.inc.php on line 6, referer: https://172.17.0.95/nagiosxi/index.php
[Mon May 21 08:41:34 2018] [error] [client 192.168.200.5] PHP Warning:  require_once(/data/nagiosxi/html/includes/phpmailer/PHPMailerAutoload.php): failed to open stream: Permission denied in /data/nagiosxi/html/includes/utils-email.inc.php on line 6, referer: https://172.17.0.95/nagiosxi/index.php
[Mon May 21 08:42:03 2018] [error] [client 192.168.200.5] PHP Warning:  require_once(/data/nagiosxi/html/includes/phpmailer/PHPMailerAutoload.php): failed to open stream: Permission denied in /data/nagiosxi/html/includes/utils-email.inc.php on line 6, referer: https://172.17.0.95/nagiosxi/index.php
[Mon May 21 08:42:03 2018] [error] [client 192.168.200.5] PHP Warning:  require_once(/data/nagiosxi/html/includes/phpmailer/PHPMailerAutoload.php): failed to open stream: Permission denied in /data/nagiosxi/html/includes/utils-email.inc.php on line 6, referer: https://172.17.0.95/nagiosxi/index.php
[Mon May 21 08:42:33 2018] [error] [client 192.168.200.5] PHP Warning:  require_once(/data/nagiosxi/html/includes/phpmailer/PHPMailerAutoload.php): failed to open stream: Permission denied in /data/nagiosxi/html/includes/utils-email.inc.php on line 6, referer: https://172.17.0.95/nagiosxi/index.php
[Mon May 21 08:42:33 2018] [error] [client 192.168.200.5] PHP Warning:  require_once(/data/nagiosxi/html/includes/phpmailer/PHPMailerAutoload.php): failed to open stream: Permission denied in /data/nagiosxi/html/includes/utils-email.inc.php on line 6, referer: https://172.17.0.95/nagiosxi/index.php
[Mon May 21 08:43:03 2018] [error] [client 192.168.200.5] PHP Warning:  require_once(/data/nagiosxi/html/includes/phpmailer/PHPMailerAutoload.php): failed to open stream: Permission denied in /data/nagiosxi/html/includes/utils-email.inc.php on line 6, referer: https://172.17.0.95/nagiosxi/index.php
[Mon May 21 08:43:03 2018] [error] [client 192.168.200.5] PHP Warning:  require_once(/data/nagiosxi/html/includes/phpmailer/PHPMailerAutoload.php): failed to open stream: Permission denied in /data/nagiosxi/html/includes/utils-email.inc.php on line 6, referer: https://172.17.0.95/nagiosxi/index.php
[Mon May 21 08:43:33 2018] [error] [client 192.168.200.5] PHP Warning:  require_once(/data/nagiosxi/html/includes/phpmailer/PHPMailerAutoload.php): failed to open stream: Permission denied in /data/nagiosxi/html/includes/utils-email.inc.php on line 6, referer: https://172.17.0.95/nagiosxi/index.php
[Mon May 21 08:43:33 2018] [error] [client 192.168.200.5] PHP Warning:  require_once(/data/nagiosxi/html/includes/phpmailer/PHPMailerAutoload.php): failed to open stream: Permission denied in /data/nagiosxi/html/includes/utils-email.inc.php on line 6, referer: https://172.17.0.95/nagiosxi/index.php
[Mon May 21 08:44:03 2018] [error] [client 192.168.200.5] PHP Warning:  require_once(/data/nagiosxi/html/includes/phpmailer/PHPMailerAutoload.php): failed to open stream: Permission denied in /data/nagiosxi/html/includes/utils-email.inc.php on line 6, referer: https://172.17.0.95/nagiosxi/index.php
[Mon May 21 08:44:03 2018] [error] [client 192.168.200.5] PHP Warning:  require_once(/data/nagiosxi/html/includes/phpmailer/PHPMailerAutoload.php): failed to open stream: Permission denied in /data/nagiosxi/html/includes/utils-email.inc.php on line 6, referer: https://172.17.0.95/nagiosxi/index.php
[Mon May 21 08:44:33 2018] [error] [client 192.168.200.5] PHP Warning:  require_once(/data/nagiosxi/html/includes/phpmailer/PHPMailerAutoload.php): failed to open stream: Permission denied in /data/nagiosxi/html/includes/utils-email.inc.php on line 6, referer: https://172.17.0.95/nagiosxi/index.php
[Mon May 21 08:44:33 2018] [error] [client 192.168.200.5] PHP Warning:  require_once(/data/nagiosxi/html/includes/phpmailer/PHPMailerAutoload.php): failed to open stream: Permission denied in /data/nagiosxi/html/includes/utils-email.inc.php on line 6, referer: https://172.17.0.95/nagiosxi/index.php
[Mon May 21 08:45:03 2018] [error] [client 192.168.200.5] PHP Warning:  require_once(/data/nagiosxi/html/includes/phpmailer/PHPMailerAutoload.php): failed to open stream: Permission denied in /data/nagiosxi/html/includes/utils-email.inc.php on line 6, referer: https://172.17.0.95/nagiosxi/index.php
[Mon May 21 08:45:03 2018] [error] [client 192.168.200.5] PHP Warning:  require_once(/data/nagiosxi/html/includes/phpmailer/PHPMailerAutoload.php): failed to open stream: Permission denied in /data/nagiosxi/html/includes/utils-email.inc.php on line 6, referer: https://172.17.0.95/nagiosxi/index.php
[Mon May 21 08:45:33 2018] [error] [client 192.168.200.5] PHP Warning:  require_once(/data/nagiosxi/html/includes/phpmailer/PHPMailerAutoload.php): failed to open stream: Permission denied in /data/nagiosxi/html/includes/utils-email.inc.php on line 6, referer: https://172.17.0.95/nagiosxi/index.php
[Mon May 21 08:45:33 2018] [error] [client 192.168.200.5] PHP Warning:  require_once(/data/nagiosxi/html/includes/phpmailer/PHPMailerAutoload.php): failed to open stream: Permission denied in /data/nagiosxi/html/includes/utils-email.inc.php on line 6, referer: https://172.17.0.95/nagiosxi/index.php
[Mon May 21 08:46:03 2018] [error] [client 192.168.200.5] PHP Warning:  require_once(/data/nagiosxi/html/includes/phpmailer/PHPMailerAutoload.php): failed to open stream: Permission denied in /data/nagiosxi/html/includes/utils-email.inc.php on line 6, referer: https://172.17.0.95/nagiosxi/index.php
[Mon May 21 08:46:05 2018] [error] [client 192.168.200.5] PHP Warning:  require_once(/data/nagiosxi/html/includes/phpmailer/PHPMailerAutoload.php): failed to open stream: Permission denied in /data/nagiosxi/html/includes/utils-email.inc.php on line 6, referer: https://172.17.0.95/nagiosxi/index.php
[Mon May 21 08:46:05 2018] [error] [client 192.168.200.5] PHP Warning:  require_once(/data/nagiosxi/html/includes/phpmailer/PHPMailerAutoload.php): failed to open stream: Permission denied in /data/nagiosxi/html/includes/utils-email.inc.php on line 6, referer: https://172.17.0.95/nagiosxi/index.php
[Mon May 21 08:46:33 2018] [error] [client 192.168.200.5] PHP Warning:  require_once(/data/nagiosxi/html/includes/phpmailer/PHPMailerAutoload.php): failed to open stream: Permission denied in /data/nagiosxi/html/includes/utils-email.inc.php on line 6, referer: https://172.17.0.95/nagiosxi/index.php
[Mon May 21 08:46:33 2018] [error] [client 192.168.200.5] PHP Warning:  require_once(/data/nagiosxi/html/includes/phpmailer/PHPMailerAutoload.php): failed to open stream: Permission denied in /data/nagiosxi/html/includes/utils-email.inc.php on line 6, referer: https://172.17.0.95/nagiosxi/index.php
[Mon May 21 08:47:03 2018] [error] [client 192.168.200.5] PHP Warning:  require_once(/data/nagiosxi/html/includes/phpmailer/PHPMailerAutoload.php): failed to open stream: Permission denied in /data/nagiosxi/html/includes/utils-email.inc.php on line 6, referer: https://172.17.0.95/nagiosxi/index.php
[Mon May 21 08:47:03 2018] [error] [client 192.168.200.5] PHP Warning:  require_once(/data/nagiosxi/html/includes/phpmailer/PHPMailerAutoload.php): failed to open stream: Permission denied in /data/nagiosxi/html/includes/utils-email.inc.php on line 6, referer: https://172.17.0.95/nagiosxi/index.php
[Mon May 21 08:47:33 2018] [error] [client 192.168.200.5] PHP Warning:  require_once(/data/nagiosxi/html/includes/phpmailer/PHPMailerAutoload.php): failed to open stream: Permission denied in /data/nagiosxi/html/includes/utils-email.inc.php on line 6, referer: https://172.17.0.95/nagiosxi/index.php
[Mon May 21 08:47:33 2018] [error] [client 192.168.200.5] PHP Warning:  require_once(/data/nagiosxi/html/includes/phpmailer/PHPMailerAutoload.php): failed to open stream: Permission denied in /data/nagiosxi/html/includes/utils-email.inc.php on line 6, referer: https://172.17.0.95/nagiosxi/index.php
[Mon May 21 08:48:03 2018] [error] [client 192.168.200.5] PHP Warning:  require_once(/data/nagiosxi/html/includes/phpmailer/PHPMailerAutoload.php): failed to open stream: Permission denied in /data/nagiosxi/html/includes/utils-email.inc.php on line 6, referer: https://172.17.0.95/nagiosxi/index.php
[Mon May 21 08:48:03 2018] [error] [client 192.168.200.5] PHP Warning:  require_once(/data/nagiosxi/html/includes/phpmailer/PHPMailerAutoload.php): failed to open stream: Permission denied in /data/nagiosxi/html/includes/utils-email.inc.php on line 6, referer: https://172.17.0.95/nagiosxi/index.php
[Mon May 21 08:48:33 2018] [error] [client 192.168.200.5] PHP Warning:  require_once(/data/nagiosxi/html/includes/phpmailer/PHPMailerAutoload.php): failed to open stream: Permission denied in /data/nagiosxi/html/includes/utils-email.inc.php on line 6, referer: https://172.17.0.95/nagiosxi/index.php
[Mon May 21 08:48:33 2018] [error] [client 192.168.200.5] PHP Warning:  require_once(/data/nagiosxi/html/includes/phpmailer/PHPMailerAutoload.php): failed to open stream: Permission denied in /data/nagiosxi/html/includes/utils-email.inc.php on line 6, referer: https://172.17.0.95/nagiosxi/index.php
[Mon May 21 08:49:03 2018] [error] [client 192.168.200.5] PHP Warning:  require_once(/data/nagiosxi/html/includes/phpmailer/PHPMailerAutoload.php): failed to open stream: Permission denied in /data/nagiosxi/html/includes/utils-email.inc.php on line 6, referer: https://172.17.0.95/nagiosxi/index.php
[Mon May 21 08:49:03 2018] [error] [client 192.168.200.5] PHP Warning:  require_once(/data/nagiosxi/html/includes/phpmailer/PHPMailerAutoload.php): failed to open stream: Permission denied in /data/nagiosxi/html/includes/utils-email.inc.php on line 6, referer: https://172.17.0.95/nagiosxi/index.php
[Mon May 21 08:49:33 2018] [error] [client 192.168.200.5] PHP Warning:  require_once(/data/nagiosxi/html/includes/phpmailer/PHPMailerAutoload.php): failed to open stream: Permission denied in /data/nagiosxi/html/includes/utils-email.inc.php on line 6, referer: https://172.17.0.95/nagiosxi/index.php
[Mon May 21 08:49:33 2018] [error] [client 192.168.200.5] PHP Warning:  require_once(/data/nagiosxi/html/includes/phpmailer/PHPMailerAutoload.php): failed to open stream: Permission denied in /data/nagiosxi/html/includes/utils-email.inc.php on line 6, referer: https://172.17.0.95/nagiosxi/index.php
[Mon May 21 08:50:03 2018] [error] [client 192.168.200.5] PHP Warning:  require_once(/data/nagiosxi/html/includes/phpmailer/PHPMailerAutoload.php): failed to open stream: Permission denied in /data/nagiosxi/html/includes/utils-email.inc.php on line 6, referer: https://172.17.0.95/nagiosxi/index.php
[Mon May 21 08:50:03 2018] [error] [client 192.168.200.5] PHP Warning:  require_once(/data/nagiosxi/html/includes/phpmailer/PHPMailerAutoload.php): failed to open stream: Permission denied in /data/nagiosxi/html/includes/utils-email.inc.php on line 6, referer: https://172.17.0.95/nagiosxi/index.php
[Mon May 21 08:50:33 2018] [error] [client 192.168.200.5] PHP Warning:  require_once(/data/nagiosxi/html/includes/phpmailer/PHPMailerAutoload.php): failed to open stream: Permission denied in /data/nagiosxi/html/includes/utils-email.inc.php on line 6, referer: https://172.17.0.95/nagiosxi/index.php
[Mon May 21 08:50:33 2018] [error] [client 192.168.200.5] PHP Warning:  require_once(/data/nagiosxi/html/includes/phpmailer/PHPMailerAutoload.php): failed to open stream: Permission denied in /data/nagiosxi/html/includes/utils-email.inc.php on line 6, referer: https://172.17.0.95/nagiosxi/index.php
[Mon May 21 09:44:38 2018] [error] [client ::1] PHP Warning:  require_once(/data/nagiosxi/html/includes/phpmailer/PHPMailerAutoload.php): failed to open stream: Permission denied in /data/nagiosxi/html/includes/utils-email.inc.php on line 6
[Mon May 21 09:45:02 2018] [notice] caught SIGTERM, shutting down
[Mon May 21 09:45:03 2018] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Mon May 21 09:45:03 2018] [warn] RSA server certificate CommonName (CN) `nagios-vip' does NOT match server name!?
[Mon May 21 09:45:03 2018] [warn] Init: (nagios-xi:443) You configured HTTP(80) on the standard HTTPS(443) port!
[Mon May 21 09:45:03 2018] [notice] Digest: generating secret for digest authentication ...
[Mon May 21 09:45:03 2018] [notice] Digest: done
[Mon May 21 09:45:03 2018] [warn] RSA server certificate CommonName (CN) `nagios-vip' does NOT match server name!?
[Mon May 21 09:45:03 2018] [warn] Init: (nagios-xi:443) You configured HTTP(80) on the standard HTTPS(443) port!
[Mon May 21 09:45:03 2018] [notice] Apache/2.2.15 (Unix) DAV/2 PHP/5.3.3 mod_ssl/2.2.15 OpenSSL/1.0.1e-fips configured -- resuming normal operations
[Mon May 21 09:51:41 2018] [notice] caught SIGTERM, shutting down
[Mon May 21 09:51:42 2018] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Mon May 21 09:51:42 2018] [warn] RSA server certificate CommonName (CN) `nagios-vip' does NOT match server name!?
[Mon May 21 09:51:42 2018] [warn] Init: (nagios-xi:443) You configured HTTP(80) on the standard HTTPS(443) port!
[Mon May 21 09:51:42 2018] [notice] Digest: generating secret for digest authentication ...
[Mon May 21 09:51:42 2018] [notice] Digest: done
[Mon May 21 09:51:42 2018] [warn] RSA server certificate CommonName (CN) `nagios-vip' does NOT match server name!?
[Mon May 21 09:51:42 2018] [warn] Init: (nagios-xi:443) You configured HTTP(80) on the standard HTTPS(443) port!
[Mon May 21 09:51:42 2018] [notice] Apache/2.2.15 (Unix) DAV/2 PHP/5.3.3 mod_ssl/2.2.15 OpenSSL/1.0.1e-fips configured -- resuming normal operations
[Mon May 21 09:52:36 2018] [error] [client 192.168.200.5] PHP Warning:  require_once(/data/nagiosxi/html/includes/phpmailer/PHPMailerAutoload.php): failed to open stream: Permission denied in /data/nagiosxi/html/includes/utils-email.inc.php on line 6, referer: https://172.17.0.95/
[Mon May 21 09:54:13 2018] [error] [client ::1] PHP Warning:  require_once(/data/nagiosxi/html/includes/phpmailer/PHPMailerAutoload.php): failed to open stream: Permission denied in /data/nagiosxi/html/includes/utils-email.inc.php on line 6
[Mon May 21 10:00:43 2018] [error] [client ::1] PHP Warning:  require_once(/data/nagiosxi/html/includes/phpmailer/PHPMailerAutoload.php): failed to open stream: Permission denied in /data/nagiosxi/html/includes/utils-email.inc.php on line 6
[Mon May 21 10:04:37 2018] [error] [client ::1] PHP Warning:  require_once(/data/nagiosxi/html/includes/phpmailer/PHPMailerAutoload.php): failed to open stream: Permission denied in /data/nagiosxi/html/includes/utils-email.inc.php on line 6
[Tue May 22 07:26:14 2018] [notice] caught SIGTERM, shutting down
[Tue May 22 07:26:14 2018] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Tue May 22 07:26:14 2018] [warn] RSA server certificate CommonName (CN) `nagios-vip' does NOT match server name!?
[Tue May 22 07:26:14 2018] [warn] Init: (nagios-xi:443) You configured HTTP(80) on the standard HTTPS(443) port!
[Tue May 22 07:26:15 2018] [notice] Digest: generating secret for digest authentication ...
[Tue May 22 07:26:15 2018] [notice] Digest: done
[Tue May 22 07:26:15 2018] [warn] RSA server certificate CommonName (CN) `nagios-vip' does NOT match server name!?
[Tue May 22 07:26:15 2018] [warn] Init: (nagios-xi:443) You configured HTTP(80) on the standard HTTPS(443) port!
[Tue May 22 07:26:15 2018] [notice] Apache/2.2.15 (Unix) DAV/2 PHP/5.3.3 mod_ssl/2.2.15 OpenSSL/1.0.1e-fips configured -- resuming normal operations
[Tue May 22 07:26:30 2018] [error] [client 192.168.200.5] PHP Warning:  require_once(/data/nagiosxi/html/includes/phpmailer/PHPMailerAutoload.php): failed to open stream: Permission denied in /data/nagiosxi/html/includes/utils-email.inc.php on line 6
[Tue May 22 07:26:47 2018] [error] [client 192.168.200.5] PHP Warning:  require_once(/data/nagiosxi/html/includes/phpmailer/PHPMailerAutoload.php): failed to open stream: Permission denied in /data/nagiosxi/html/includes/utils-email.inc.php on line 6

And ssl_error_log is empty.

Re: Updating very old nagios version to the newest

Posted: Tue May 22, 2018 9:09 am
by lmiltchev
I see many errors in the apache error log as this one:
[Tue May 22 07:26:47 2018] [error] [client 192.168.200.5] PHP Warning: require_once(/data/nagiosxi/html/includes/phpmailer/PHPMailerAutoload.php): failed to open stream: Permission denied in /data/nagiosxi/html/includes/utils-email.inc.php on line 6
Have you modified your Nagios XI server to use custom paths? The "data" directory is not present on a "stock" XI instance...

This seems like a permissions issue. Can you run the following commands and show the output?

Code: Select all

service httpd status
ls -lad /data /data/nagiosxi /data/nagiosxi/html /data/nagiosxi/html/includes /data/nagiosxi/html/includes/phpmailer
ls -la /data/nagiosxi/html/includes/utils-email.inc.php /data/nagiosxi/html/includes/phpmailer/PHPMailerAutoload.php

Re: Updating very old nagios version to the newest

Posted: Wed May 23, 2018 3:39 am
by reincarne

Code: Select all

httpd (pid  16867) is running...

Code: Select all

ls -lad /data /data/nagiosxi /data/nagiosxi/html /data/nagiosxi/html/includes /data/nagiosxi/html/includes/phpmailer
ls: cannot access /data/nagiosxi/html/includes/phpmailer: Permission denied
drwxr-xr-x 14 root   root   4096 Dec 18 13:19 /data
drwxr-xr-x 11 nagios nagios 4096 Aug 10  2016 /data/nagiosxi
drwxr-xr-x 19 nagios nagios 4096 May 21 09:53 /data/nagiosxi/html
drwxr-x--- 12 nagios nagios 4096 May 17 11:13 /data/nagiosxi/html/includes

Code: Select all

ls -la /data/nagiosxi/html/includes/utils-email.inc.php /data/nagiosxi/html/includes/phpmailer/PHPMailerAutoload.php
ls: cannot access /data/nagiosxi/html/includes/utils-email.inc.php: Permission denied
ls: cannot access /data/nagiosxi/html/includes/phpmailer/PHPMailerAutoload.php: Permission denied

Re: Updating very old nagios version to the newest

Posted: Wed May 23, 2018 6:38 am
by reincarne
Update:

I managed to fix ownership and permission issues in this path: /data/nagiosxi/

After running the DB repair script I see now the checks and the hosts.

These are not working yet:
Process State - No Running
Database Maintenance - Not Running



Please note also that before the update (also tried after) I did dump from postgres and moved it to mysql according to Nagios XI official instructions.

Update 2:
Process State - Running
Database Maintenance - Running

Load on machine: 75

Re: Updating very old nagios version to the newest

Posted: Wed May 23, 2018 12:25 pm
by lmiltchev
Update 2:
Process State - Running
Database Maintenance - Running

Load on machine: 75
So, all services are running now on your Nagios XI server? Is the load on the machine going down? Do you see any errors in the mysqld.log (mariadb.log)?

Re: Updating very old nagios version to the newest

Posted: Thu May 24, 2018 2:24 am
by reincarne
lmiltchev wrote:
Update 2:
Process State - Running
Database Maintenance - Running

Load on machine: 75
So, all services are running now on your Nagios XI server? Is the load on the machine going down? Do you see any errors in the mysqld.log (mariadb.log)?

Wow, after several hours the cpu dropped from 100% to stable.
Do you know what could be the reason?