Error: nagiosxi-deps-el7 conflicts with nrpe-3.2.0-6.el7.x86

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Error: nagiosxi-deps-el7 conflicts with nrpe-3.2.0-6.el7

Post by scottwilkerson »

Good catch, Option 1 would be best
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
rtsupport
Posts: 188
Joined: Mon Jan 08, 2018 4:30 am

Re: Error: nagiosxi-deps-el7 conflicts with nrpe-3.2.0-6.el7

Post by rtsupport »

Hey Scott,

As per last discussion followed steps but no luck.

Machine Info--

Test machine running with --
-bash-4.1$ cat /etc/redhat-release
Red Hat Enterprise Linux Server release 6.9 (Santiago)
Nagios XI - 5.4.13

New Machine on which we are working --
[root@usa0 nagiosxi]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 7.4 (Maipo)
Nagios XI - 5.4.13

And as per Instruction
-Took backup from test Machine and scp to new VM.
-Install 5.4.13 on new VM
-Create nagiosramdisk
-restore test VM backup
-run ./upgrade

Error details -

Disk info --

Code: Select all

Filesystem                       Size  Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00   16G  4.3G   12G  27% /
devtmpfs                         3.8G     0  3.8G   0% /dev
tmpfs                            3.9G     0  3.9G   0% /dev/shm
tmpfs                            3.9G  409M  3.5G  11% /run
tmpfs                            3.9G     0  3.9G   0% /sys/fs/cgroup
/dev/sda1                        509M  189M  321M  38% /boot
/dev/mapper/VolGroup00-LogVol03  8.0G  162M  7.9G   2% /tmp
/dev/mapper/VolGroup00-LogVol01  8.0G  1.4G  6.7G  18% /var
/dev/mapper/VolGroup01-volU01    100G  1.6G   99G   2% /u01
13.129.19.59:/img_kdump          493G  287G  207G  59% /kdump
tmpfs                            781M     0  781M   0% /run/user/1002
usa0300ux448:/HOME_DIR/nagios     50G   42G  8.0G  84% /home/nagios
tmpfs                            500M  9.4M  491M   2% /var/nagiosramdisk

Restore complete with below error --

Code: Select all

CREATE INDEX
WARNING:  no privileges could be revoked for "public"
REVOKE
WARNING:  no privileges could be revoked for "public"
REVOKE
WARNING:  no privileges were granted for "public"
GRANT
WARNING:  no privileges were granted for "public"
GRANT
Created symlink from /etc/systemd/system/multi-user.target.wants/postgresql.service to /usr/lib/systemd/system/postgresql.service.
./restore_xi.sh: line 275: DROP TABLE IF EXISTS nagiosxi;: No such file or directory
Restarting database servers...
Restoring Apache cronjobs...
Restoring logrotate config files...
Skipping Apache config files restoration
Job for nagios.service failed because a configured resource limit was exceeded. See "systemctl status nagios.service" and "journalctl -xe" for details.

Run ./upgrade but failed with below error..

Code: Select all

[root@usa0300lv1759 nagiosxi]# ./upgrade
Archive:  sourceguardian/ixed4.lin.x86-64.zip
  inflating: /usr/lib64/php/modules/ixed.5.4.lin
Sourceguardian extension found for PHP version 5.4
Sourceguardian extension already in php.ini
Checking required prereqs...
Please wait...

OLD VERSION: 5413
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-
              : manager
Not using downloaded RHEL7-Server-Optional-WDC/repomd.xml because it is older than what we have:
  Current   : Wed Jun 27 11:29:33 2018
  Downloaded: Wed Apr 11 06:26:22 2018
Package perl-Test-Simple-0.98-243.el7.noarch already installed and latest version
Package perl-Class-Accessor-0.34-12.el7.noarch already installed and latest version
Package perl-Params-Validate-1.08-4.el7.x86_64 already installed and latest version
Package perl-Config-Tiny-2.14-7.el7.noarch already installed and latest version
Package perl-Math-Calc-Units-1.07-9.el7.noarch already installed and latest version
Package perl-Number-Format-1.73-14.el7.noarch already installed and latest version
Nothing to do
no crontab for nagios
Saving old crontab to /tmp/root.crontab.orig...
Removing XI cron jobs...
Copying over new XI directory...
Updating NagiosQL...
NAGIOSQL-POST
Patching NDOUtils...
NDOUtils already patched at level 103
Updating sequences...
Nagios XI Postgres Database Sequence Information

OLD VALUES
--------------
xi_commands_command_id_seq = 5085
xi_events_event_id_seq = 1202353
xi_meta_meta_id_seq = 1202371
xi_options_option_id_seq = 247
xi_sysstat_sysstat_id_seq = 101
xi_usermeta_usermeta_id_seq = 3409
xi_users_user_id_seq = 108

NEW VALUES
--------------
xi_commands_command_id_seq = 5085
xi_events_event_id_seq = 1202353
xi_meta_meta_id_seq = 1202371
xi_options_option_id_seq = 247
xi_sysstat_sysstat_id_seq = 101
xi_usermeta_usermeta_id_seq = 3409
xi_users_user_id_seq = 108

Installing new PNP templates...
Updating init script...
Enabling large install tweaks...
Fixing config file permissions...
Fixing htpasswd permissions...
Checking group memberships...
Installing new XI templates...
URL: https://localhost/nagiosxi/includes/components/ccm/
CMDLINE
/usr/bin/wget --save-cookies nagiosql.cookies --keep-session-cookies https://localhost/nagiosxi/includes/components/ccm/ --no-check-certificate --post-data 'submit=Login&hidelog=true&loginSubmitted=true&backend=1&username=nagiosxi&password=3u4g9k' -O nagiosql.login--2018-07-02 10:51:14--  https://localhost/nagiosxi/includes/components/ccm/
Resolving localhost (localhost)... 127.0.0.1, ::1
Connecting to localhost (localhost)|127.0.0.1|:443... connected.
WARNING: cannot verify localhost's certificate, issued by ‘/C=--/ST=SomeState/L=SomeCity/O=SomeOrganization/OU=SomeOrganizationalUnit/CN=localhost.localdomain/[email protected]’:
  Unable to locally verify the issuer's authority.
    WARNING: certificate common name ‘localhost.localdomain’ doesn't match requested host name ‘localhost’.
HTTP request sent, awaiting response... 500 Internal Server Error
2018-07-02 10:51:15 ERROR 500: Internal Server Error.

NAGIOSQL LOGIN FAILED!
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Error: nagiosxi-deps-el7 conflicts with nrpe-3.2.0-6.el7

Post by scottwilkerson »

Looks like the old server was configured with ssl certificates

https://assets.nagios.com/downloads/nag ... s%20XI.pdf

Also can you send the output of

Code: Select all

tail -100 /var/log/httpd/ssl_error_log
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
rtsupport
Posts: 188
Joined: Mon Jan 08, 2018 4:30 am

Re: Error: nagiosxi-deps-el7 conflicts with nrpe-3.2.0-6.el7

Post by rtsupport »

tail -100 /var/log/httpd/ssl_error_log

Code: Select all

[Sun Jul 01 03:27:02.127560 2018] [ssl:warn] [pid 95965] AH01909: RSA certificate configured for 13.129.106.80:443 does NOT include an ID which matches the server name
[Mon Jul 02 03:19:40.294160 2018] [:error] [pid 19366] [client 13.129.107.211:18843] script '/var/www/html/header.php' not found or unable to stat
[Mon Jul 02 03:19:40.381092 2018] [:error] [pid 19366] [client 13.129.107.211:18905] script '/var/www/html/login.php' not found or unable to stat
[Mon Jul 02 03:19:40.663783 2018] [:error] [pid 19368] [client 13.129.107.211:19147] script '/var/www/html/header.php' not found or unable to stat
[Mon Jul 02 03:19:41.650083 2018] [cgi:error] [pid 19367] [client 13.129.107.211:20345] attempt to invoke directory as script: /var/www/cgi-bin/
[Mon Jul 02 03:19:41.661695 2018] [cgi:error] [pid 84487] [client 13.129.107.211:20479] script not found or unable to stat: /var/www/cgi-bin/NonExistent.html
[Mon Jul 02 03:19:42.301232 2018] [cgi:error] [pid 19366] [client 13.129.107.211:22135] script not found or unable to stat: /var/www/cgi-bin/dada
[Mon Jul 02 03:19:42.305678 2018] [cgi:error] [pid 19366] [client 13.129.107.211:22135] script not found or unable to stat: /var/www/cgi-bin/eboard40
[Mon Jul 02 03:19:42.306495 2018] [cgi:error] [pid 19366] [client 13.129.107.211:22135] script not found or unable to stat: /var/www/cgi-bin/mt
[Mon Jul 02 03:19:42.307376 2018] [cgi:error] [pid 19366] [client 13.129.107.211:22135] script not found or unable to stat: /var/www/cgi-bin/openwebmail
[Mon Jul 02 03:19:42.308092 2018] [cgi:error] [pid 19366] [client 13.129.107.211:22135] script not found or unable to stat: /var/www/cgi-bin/sysinfo
[Mon Jul 02 03:19:42.308704 2018] [cgi:error] [pid 19366] [client 13.129.107.211:22135] script not found or unable to stat: /var/www/cgi-bin/twiki
[Mon Jul 02 03:19:42.309322 2018] [cgi:error] [pid 19366] [client 13.129.107.211:22135] script not found or unable to stat: /var/www/cgi-bin/viewvc.cgi
[Mon Jul 02 03:40:24.349648 2018] [autoindex:error] [pid 19368] [client 13.129.107.211:40617] AH01276: Cannot serve directory /usr/local/nagiosxi/html/images/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive, referer: https://usa0300lv1759.na.xerox.net/nagiosxi/images
[Mon Jul 02 03:40:24.468866 2018] [autoindex:error] [pid 19368] [client 13.129.107.211:40617] AH01276: Cannot serve directory /usr/local/nagiosxi/html/includes/css/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive, referer: https://usa0300lv1759.na.xerox.net/nagiosxi/includes/css
[Mon Jul 02 03:40:24.633938 2018] [autoindex:error] [pid 19368] [client 13.129.107.211:40617] AH01276: Cannot serve directory /usr/local/nagiosxi/html/includes/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive, referer: https://usa0300lv1759.na.xerox.net/nagiosxi/includes
[Mon Jul 02 03:40:24.780319 2018] [autoindex:error] [pid 19368] [client 13.129.107.211:40617] AH01276: Cannot serve directory /usr/local/nagiosxi/html/includes/css/themes/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive, referer: https://usa0300lv1759.na.xerox.net/nagiosxi/includes/css/themes
[Mon Jul 02 03:46:32.591321 2018] [autoindex:error] [pid 19368] [client 13.129.107.211:43943] AH01276: Cannot serve directory /usr/local/nagiosxi/html/includes/js/jquery/css/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive, referer: https://usa0300lv1759.na.xerox.net/nagiosxi/includes/js/jquery/css
[Mon Jul 02 03:46:32.603084 2018] [autoindex:error] [pid 19368] [client 13.129.107.211:43943] AH01276: Cannot serve directory /usr/local/nagiosxi/html/includes/js/jquery/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive, referer: https://usa0300lv1759.na.xerox.net/nagiosxi/includes/js/jquery
[Mon Jul 02 03:46:32.615409 2018] [autoindex:error] [pid 19368] [client 13.129.107.211:43943] AH01276: Cannot serve directory /usr/local/nagiosxi/html/includes/js/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive, referer: https://usa0300lv1759.na.xerox.net/nagiosxi/includes/js
[Mon Jul 02 03:46:32.628902 2018] [autoindex:error] [pid 19368] [client 13.129.107.211:43943] AH01276: Cannot serve directory /usr/local/nagiosxi/html/includes/dashlets/internettrafficreport/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive, referer: https://usa0300lv1759.na.xerox.net/nagiosxi/includes/dashlets/internettrafficreport
[Mon Jul 02 03:46:32.647193 2018] [autoindex:error] [pid 19368] [client 13.129.107.211:43943] AH01276: Cannot serve directory /usr/local/nagiosxi/html/includes/dashlets/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive, referer: https://usa0300lv1759.na.xerox.net/nagiosxi/includes/dashlets
[Mon Jul 02 03:46:32.659192 2018] [autoindex:error] [pid 19368] [client 13.129.107.211:43943] AH01276: Cannot serve directory /usr/local/nagiosxi/html/includes/dashlets/rss_dashlet/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive, referer: https://usa0300lv1759.na.xerox.net/nagiosxi/includes/dashlets/rss_dashlet
[Mon Jul 02 03:46:32.674327 2018] [autoindex:error] [pid 19368] [client 13.129.107.211:43943] AH01276: Cannot serve directory /usr/local/nagiosxi/html/includes/dashlets/worldtimeserver/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive, referer: https://usa0300lv1759.na.xerox.net/nagiosxi/includes/dashlets/worldtimeserver
[Mon Jul 02 03:46:32.687540 2018] [autoindex:error] [pid 19368] [client 13.129.107.211:43943] AH01276: Cannot serve directory /usr/local/nagiosxi/html/includes/components/helpsystem/css/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive, referer: https://usa0300lv1759.na.xerox.net/nagiosxi/includes/components/helpsystem/css
[Mon Jul 02 03:46:32.701413 2018] [autoindex:error] [pid 19368] [client 13.129.107.211:43943] AH01276: Cannot serve directory /usr/local/nagiosxi/html/includes/components/helpsystem/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive, referer: https://usa0300lv1759.na.xerox.net/nagiosxi/includes/components/helpsystem
[Mon Jul 02 03:46:32.716000 2018] [autoindex:error] [pid 19368] [client 13.129.107.211:43943] AH01276: Cannot serve directory /usr/local/nagiosxi/html/includes/components/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive, referer: https://usa0300lv1759.na.xerox.net/nagiosxi/includes/components
[Mon Jul 02 03:52:24.283716 2018] [:error] [pid 19367] [client 13.129.107.211:44116] script '/var/www/html/6dWzFGcBq1uS.php' not found or unable to stat
[Mon Jul 02 03:52:24.286545 2018] [cgi:error] [pid 19367] [client 13.129.107.211:44116] script not found or unable to stat: /var/www/cgi-bin/6dWzFGcBq1uS.html
[Mon Jul 02 03:52:24.287370 2018] [cgi:error] [pid 19367] [client 13.129.107.211:44116] script not found or unable to stat: /var/www/cgi-bin/6dWzFGcBq1uS.cgi
[Mon Jul 02 03:52:24.288200 2018] [cgi:error] [pid 19367] [client 13.129.107.211:44116] script not found or unable to stat: /var/www/cgi-bin/6dWzFGcBq1uS.sh
[Mon Jul 02 03:52:24.288856 2018] [cgi:error] [pid 19367] [client 13.129.107.211:44116] script not found or unable to stat: /var/www/cgi-bin/6dWzFGcBq1uS.pl
[Mon Jul 02 03:52:24.289414 2018] [cgi:error] [pid 19367] [client 13.129.107.211:44116] script not found or unable to stat: /var/www/cgi-bin/6dWzFGcBq1uS.inc
[Mon Jul 02 03:52:24.289965 2018] [cgi:error] [pid 19367] [client 13.129.107.211:44116] script not found or unable to stat: /var/www/cgi-bin/6dWzFGcBq1uS.shtml
[Mon Jul 02 03:52:24.290646 2018] [cgi:error] [pid 19367] [client 13.129.107.211:44116] script not found or unable to stat: /var/www/cgi-bin/6dWzFGcBq1uS.asp
[Mon Jul 02 03:52:24.291483 2018] [:error] [pid 19367] [client 13.129.107.211:44116] script '/var/www/cgi-bin/6dWzFGcBq1uS.php' not found or unable to stat
[Mon Jul 02 03:52:24.292110 2018] [cgi:error] [pid 19367] [client 13.129.107.211:44116] script not found or unable to stat: /var/www/cgi-bin/6dWzFGcBq1uS.php3
[Mon Jul 02 03:52:24.292853 2018] [cgi:error] [pid 19367] [client 13.129.107.211:44116] script not found or unable to stat: /var/www/cgi-bin/6dWzFGcBq1uS.cfm
[Mon Jul 02 10:41:07.079393 2018] [ssl:warn] [pid 76398] AH01909: RSA certificate configured for 13.129.106.80:443 does NOT include an ID which matches the server name
[Mon Jul 02 10:41:07.108091 2018] [ssl:warn] [pid 76398] AH01909: RSA certificate configured for 13.129.106.80:443 does NOT include an ID which matches the server name
[Mon Jul 02 10:49:31.378739 2018] [ssl:warn] [pid 79070] AH01909: RSA certificate configured for 13.129.106.80:443 does NOT include an ID which matches the server name
[Mon Jul 02 10:49:31.405288 2018] [ssl:warn] [pid 79070] AH01909: RSA certificate configured for 13.129.106.80:443 does NOT include an ID which matches the server name
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Error: nagiosxi-deps-el7 conflicts with nrpe-3.2.0-6.el7

Post by scottwilkerson »

I don't see anything that matched your request for this from the server.
https://localhost/nagiosxi/includes/components/ccm/

Can you post the contents of this /etc/httpd/conf.d/nagiosxi.cfg

I have a feeling the RHEL 6 version and the RHEL 7 versions are not compatible
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
rtsupport
Posts: 188
Joined: Mon Jan 08, 2018 4:30 am

Re: Error: nagiosxi-deps-el7 conflicts with nrpe-3.2.0-6.el7

Post by rtsupport »

File is not there in said location -- /etc/httpd/conf.d/nagiosxi.cfg

Code: Select all

[[email protected]]# pwd
/etc/httpd/conf.d

 conf.d]# ls -l
total 72
-rw-r--r--. 1 root root  2926 Oct  3  2017 autoindex.conf
-rw-r--r--. 1 root root   401 Oct 16  2017 fcgid.conf
-rw-r--r--. 1 root root   323 Oct  3  2017 manual.conf
-rw-r--r--  1 root root  1054 Jun 28 05:00 nagios.conf
-rw-r--r--  1 root root   623 Jun 28 05:00 nagiosmobile.conf
-rw-r--r--  1 root root   426 Jul  2 10:51 nagiosql.conf
-rw-r--r--  1 root root   834 Jun 28 05:00 nagiosxi.conf
-rwxr-xr-x  1 root root   367 Jun 28 05:00 nrdp.conf
-rw-r--r--  1 root root   691 Jan 23 07:30 php.conf
-rw-r--r--. 1 root root   366 Oct  3  2017 README
-rw-r--r--  1 root root 10034 Jun 28 04:57 ssl.conf
-rw-r--r--  1 root root  9438 Jun 28 04:56 ssl.conf.nagiosxibackup
-rw-r--r--. 1 root root  1252 Oct  3  2017 userdir.conf
-rw-r--r--. 1 root root   516 Oct  3  2017 welcome.conf
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Error: nagiosxi-deps-el7 conflicts with nrpe-3.2.0-6.el7

Post by scottwilkerson »

I need /etc/httpd/conf.d/nagiosxi.conf
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
rtsupport
Posts: 188
Joined: Mon Jan 08, 2018 4:30 am

Re: Error: nagiosxi-deps-el7 conflicts with nrpe-3.2.0-6.el7

Post by rtsupport »

File is attached..
You do not have the required permissions to view the files attached to this post.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Error: nagiosxi-deps-el7 conflicts with nrpe-3.2.0-6.el7

Post by scottwilkerson »

This is so frustrating because your logs don't even show the error you received...

How about running the following

Code: Select all

grep -R ccm /var/log/httpd | grep 500
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
rtsupport
Posts: 188
Joined: Mon Jan 08, 2018 4:30 am

Re: Error: nagiosxi-deps-el7 conflicts with nrpe-3.2.0-6.el7

Post by rtsupport »

Logs Attached..
You do not have the required permissions to view the files attached to this post.
Locked