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.
Locked
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 »

At present can you visit the nagios XI pages through the web UI?
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 »

Getting http error while accessing web page. please refer attached error for more info.

Status for all services.

systemctl status httpd

Code: Select all

● httpd.service - The Apache HTTP Server
   Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
   Active: active (running) since Mon 2018-07-02 10:49:31 EDT; 1 day 18h ago
     Docs: man:httpd(8)
           man:apachectl(8)
  Process: 79065 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=0/SUCCESS)
 Main PID: 79070 (httpd)
   Status: "Total requests: 8115; Current requests/sec: 0; Current traffic:   0 B/sec"
   CGroup: /system.slice/httpd.service
           ├─ 79070 /usr/sbin/httpd -DFOREGROUND
           ├─ 79071 /usr/sbin/httpd -DFOREGROUND
           ├─ 79074 /usr/sbin/httpd -DFOREGROUND
           ├─ 79076 /usr/sbin/httpd -DFOREGROUND
           ├─ 79077 /usr/sbin/httpd -DFOREGROUND
           ├─ 79078 /usr/sbin/httpd -DFOREGROUND
           ├─ 79826 /usr/sbin/httpd -DFOREGROUND
           ├─ 80124 /usr/sbin/httpd -DFOREGROUND
           ├─ 81738 /usr/sbin/httpd -DFOREGROUND
           ├─ 81973 /usr/sbin/httpd -DFOREGROUND
           ├─ 82848 /usr/sbin/httpd -DFOREGROUND
           └─110059 /usr/sbin/httpd -DFOREGROUND

Jul 02 10:49:31 usa0300lv1759 systemd[1]: Starting The Apache HTTP Server...
Jul 02 10:49:31 usa0300lv1759 httpd[79070]: AH00558: httpd: Could not reliably determine the server's fully qualified domain name,...message
Jul 02 10:49:31 usa0300lv1759 systemd[1]: Started The Apache HTTP Server.
Hint: Some lines were ellipsized, use -l to show in full.

systemctl status nagios

Code: Select all

● nagios.service - LSB: Starts and stops the Nagios monitoring server
   Loaded: loaded (/etc/rc.d/init.d/nagios; bad; vendor preset: disabled)
   Active: failed (Result: resources) since Mon 2018-07-02 10:41:09 EDT; 1 day 18h ago
     Docs: man:systemd-sysv-generator(8)
 Main PID: 95866 (code=exited, status=0/SUCCESS)

Jul 02 10:41:07 usa0300lv1759 nagios[76480]: ndomod registered for process data
Jul 02 10:41:07 usa0300lv1759 nagios[76480]: ndomod registered for log data'
Jul 02 10:41:07 usa0300lv1759 nagios[76480]: ndomod registered for system command data'
Jul 02 10:41:07 usa0300lv1759 nagios[76480]: ndomod registered for event handler data'
Jul 02 10:41:07 usa0300lv1759 nagios[76447]: Starting nagios: done.
Jul 02 10:41:07 usa0300lv1759 systemd[1]: PID 76480 read from file /usr/local/nagios/var/nagios.lock does not exist or is a zombie.
Jul 02 10:41:09 usa0300lv1759 systemd[1]: nagios.service never wrote its PID file. Failing.
Jul 02 10:41:09 usa0300lv1759 systemd[1]: Failed to start LSB: Starts and stops the Nagios monitoring server.
Jul 02 10:41:09 usa0300lv1759 systemd[1]: Unit nagios.service entered failed state.
Jul 02 10:41:09 usa0300lv1759 systemd[1]: nagios.service failed.

[root@usa0300lv1759 50004256]# systemctl start nagios
[root@usa0300lv1759 50004256]# systemctl start nagios
Job for nagios.service failed because a configured resource limit was exceeded. See "systemctl status nagios.service" and "journalctl -xe" for details.
[root@usa0300lv1759 50004256]# systemctl status nagios.service
● nagios.service - LSB: Starts and stops the Nagios monitoring server
   Loaded: loaded (/etc/rc.d/init.d/nagios; bad; vendor preset: disabled)
   Active: failed (Result: resources) since Wed 2018-07-04 05:32:32 EDT; 8s ago
     Docs: man:systemd-sysv-generator(8)
  Process: 88029 ExecStart=/etc/rc.d/init.d/nagios start (code=exited, status=0/SUCCESS)
 Main PID: 95866 (code=exited, status=0/SUCCESS)

Jul 04 05:32:30 usa0300lv1759 nagios[88060]: Error: Failed to load module '/usr/local/lib/mod_gearman2/mod_gearman2.o'.
Jul 04 05:32:30 usa0300lv1759 nagios[88060]: ndomod: NDOMOD 2.1.2 (11-14-2016) Copyright (c) 2009 Nagios Core Development Team and...ibutors
Jul 04 05:32:30 usa0300lv1759 nagios[88060]: ndomod: Successfully connected to data sink.  0 queued items to flush.
Jul 04 05:32:30 usa0300lv1759 nagios[88060]: ndomod registered for process data
Jul 04 05:32:30 usa0300lv1759 nagios[88029]: Starting nagios: done.
Jul 04 05:32:30 usa0300lv1759 systemd[1]: PID 88060 read from file /usr/local/nagios/var/nagios.lock does not exist or is a zombie.
Jul 04 05:32:32 usa0300lv1759 systemd[1]: nagios.service never wrote its PID file. Failing.
Jul 04 05:32:32 usa0300lv1759 systemd[1]: Failed to start LSB: Starts and stops the Nagios monitoring server.
Jul 04 05:32:32 usa0300lv1759 systemd[1]: Unit nagios.service entered failed state.
Jul 04 05:32:32 usa0300lv1759 systemd[1]: nagios.service failed.
Hint: Some lines were ellipsized, use -l to show in full.

cd /usr/local/nagios/var/

Code: Select all

drwxrwxr-x 2 nagios nagios       4096 Jun 26 05:55 archives
-rw-r--r-- 1 nagios nagios  178650546 Jun 11  2015 host-perfdata
-rw-r--r-- 1 root   root     10875797 Feb  5 08:54 host-perfdata.tar.tz
-rw-r--r-- 1 nagios nagios       3949 Jul  4 05:32 nagios.configtest
-rw-rw-r-- 1 nagios nagios    5421803 Jul  4 05:32 nagios.log
-rw-r--r-- 1 nagios nagios          6 Jul  2 10:41 ndo2db.lock
-rw-r--r-- 1 nagios nagios          0 Jun 26 08:26 ndomod.tmp
srwxr-xr-x 1 nagios nagios          0 Jul  2 10:41 ndo.sock
-rw-rw-r-- 1 nagios nagios     293470 Jul  2 10:41 npcd.log
-rw-rw-r-- 1 nagios nagios     697820 Jun 12  2015 objects.cache
-rw-r--r-- 1 nagios nagios     636311 Jul  4 05:32 objects.precache
-rw-rw-rw- 1 nagios nagios    3901674 Jun 26 08:26 perfdata.log
-rw------- 1 nagios nagios     913132 Jul  4 05:32 retention.dat
drwxrwsr-x 2 nagios nagios         23 Jul  4 05:32 rw
-rw-r--r-- 1 nagios nagios 1016761289 Jun 11  2015 service-perfdata
drwxrwxr-x 5 nagios nagios         55 Oct 31  2014 spool
drwxrwxr-x 2 nagios nagios         22 Jun 26 08:26 stats

systemctl status ndo2db

Code: Select all

● ndo2db.service - Nagios Data Out Daemon
   Loaded: loaded (/usr/lib/systemd/system/ndo2db.service; enabled; vendor preset: disabled)
   Active: active (running) since Mon 2018-07-02 10:41:07 EDT; 1 day 18h ago
     Docs: http://www.nagios.org/documentation
 Main PID: 76435 (ndo2db)
   CGroup: /system.slice/ndo2db.service
           └─76435 /usr/local/nagios/bin/ndo2db -c /usr/local/nagios/etc/ndo2db.cfg -f

Jul 02 10:41:07 usa0300lv1759 systemd[1]: Started Nagios Data Out Daemon.
Jul 02 10:41:07 usa0300lv1759 systemd[1]: Starting Nagios Data Out Daemon...
Jul 02 10:41:07 usa0300lv1759 ndo2db[76491]: Successfully connected to MySQL database
Jul 02 10:41:07 usa0300lv1759 ndo2db[76491]: Successfully disconnected from MySQL database

systemctl status npcd

Code: Select all

● npcd.service - SYSV: Visit the Website at http://sourceforge.net/projects/pnp4nagios/
   Loaded: loaded (/etc/rc.d/init.d/npcd; bad; vendor preset: disabled)
   Active: active (running) since Mon 2018-07-02 10:41:07 EDT; 1 day 18h ago
     Docs: man:systemd-sysv-generator(8)
 Main PID: 76423 (npcd)
   CGroup: /system.slice/npcd.service
           └─76423 /usr/local/nagios/bin/npcd -d -f /usr/local/nagios/etc/pnp/npcd.cfg

Jul 02 10:41:07 usa0300lv1759 systemd[1]: Starting SYSV: Visit the Website at http://sourceforge.net/projects/pnp4nagios/...
Jul 02 10:41:07 usa0300lv1759 npcd[76417]: NPCD started.
Jul 02 10:41:07 usa0300lv1759 systemd[1]: Failed to read PID from file /usr/local/nagiosxi/var/subsys/npcd.pid: Invalid argument
Jul 02 10:41:07 usa0300lv1759 systemd[1]: Started SYSV: Visit the Website at http://sourceforge.net/projects/pnp4nagios/.


systemctl status mariadb

Code: Select all

 mariadb.service - MariaDB database server
   Loaded: loaded (/usr/lib/systemd/system/mariadb.service; enabled; vendor preset: disabled)
   Active: active (running) since Mon 2018-07-02 10:41:05 EDT; 1 day 18h ago
 Main PID: 75941 (mysqld_safe)
   CGroup: /system.slice/mariadb.service
           ├─75941 /bin/sh /usr/bin/mysqld_safe --basedir=/usr
           └─76175 /usr/libexec/mysqld --basedir=/usr --datadir=/var/lib/mysql --plugin-dir=/usr/lib64/mysql/plugin --log-error=/var/log/...

Jul 02 10:41:03 usa0300lv1759 systemd[1]: Starting MariaDB database server...
Jul 02 10:41:03 usa0300lv1759 mariadb-prepare-db-dir[75910]: Database MariaDB is probably initialized in /var/lib/mysql already, not...done.
Jul 02 10:41:03 usa0300lv1759 mariadb-prepare-db-dir[75910]: If this is not the case, make sure the /var/lib/mysql is empty before r...-dir.
Jul 02 10:41:03 usa0300lv1759 mysqld_safe[75941]: 180702 10:41:03 mysqld_safe Logging to '/var/log/mariadb/mariadb.log'.
Jul 02 10:41:03 usa0300lv1759 mysqld_safe[75941]: 180702 10:41:03 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
Jul 02 10:41:05 usa0300lv1759 systemd[1]: Started MariaDB database server.
Hint: Some lines were ellipsized, use -l to show in full.
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 »

Let's see the httpd error log again, I don't see what could be causing these 500 errors
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 »

Have attached all logs for your reference ..

Also when we are accessing localhost homepage we are able to access it but when we click on "Access Nagios XI" we are getting 500 error page as shared before.

thought to update you! in existing environment we have gearmand service running to offload the checks load is that cause any issue while restoring backup ?
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 »

Please run the following

Code: Select all

service postgresql start
systemctl start mariadb
systemctl enable mariadb
systemctl enable postgresql
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 »

done, but still 500 error page while accessing web page. http://serverip/nagiosxi/

[root@usa0***** 50004256]# service postgresql start
Redirecting to /bin/systemctl start postgresql.service
[root@usa03***** 50004256]# systemctl start mariadb
[root@usa03***** 50004256]# systemctl enable mariadb
[root@usa03***** 50004256]# systemctl enable postgresql

systemctl status postgresql

Code: Select all

 postgresql.service - PostgreSQL database server
   Loaded: loaded (/usr/lib/systemd/system/postgresql.service; enabled; vendor preset: disabled)
   Active: active (running) since Wed 2018-07-04 10:48:48 EDT; 1 day 18h ago
 Main PID: 39179 (postgres)
   CGroup: /system.slice/postgresql.service
           ├─27089 postgres: nagiosxi nagiosxi 127.0.0.1(44816) idle
           ├─39179 /usr/bin/postgres -D /var/lib/pgsql/data -p 5432
           ├─39180 postgres: logger process
           ├─39182 postgres: checkpointer process
           ├─39183 postgres: writer process
           ├─39184 postgres: wal writer process
           ├─39185 postgres: autovacuum launcher process
           ├─39186 postgres: stats collector process
           ├─39188 postgres: nagiosxi nagiosxi 127.0.0.1(39506) idle
           ├─39189 postgres: nagiosxi nagiosxi 127.0.0.1(39508) idle
           ├─39191 postgres: nagiosxi nagiosxi 127.0.0.1(39512) idle
           ├─39193 postgres: nagiosxi nagiosxi 127.0.0.1(39516) idle
           ├─39194 postgres: nagiosxi nagiosxi 127.0.0.1(39518) idle
           ├─39196 postgres: nagiosxi nagiosxi 127.0.0.1(39520) idle
           ├─39340 postgres: nagiosxi nagiosxi 127.0.0.1(39540) idle
           ├─40070 postgres: nagiosxi nagiosxi 127.0.0.1(39638) idle
           ├─42480 postgres: nagiosxi nagiosxi 127.0.0.1(33434) idle
           ├─42584 postgres: nagiosxi nagiosxi 127.0.0.1(33444) idle
           ├─42586 postgres: nagiosxi nagiosxi 127.0.0.1(33448) idle
           ├─42589 postgres: nagiosxi nagiosxi 127.0.0.1(33450) idle
           ├─42602 postgres: nagiosxi nagiosxi 127.0.0.1(33456) idle
           └─42603 postgres: nagiosxi nagiosxi 127.0.0.1(33458) idle

Jul 04 10:48:46 usa0300lv1759 systemd[1]: Starting PostgreSQL database server...
Jul 04 10:48:47 usa0300lv1759 pg_ctl[39175]: LOG:  could not bind IPv6 socket: Cannot assign requested address
Jul 04 10:48:47 usa0300lv1759 pg_ctl[39175]: HINT:  Is another postmaster already running on port 5432? If not, wait a few seconds... retry.
Jul 04 10:48:48 usa0300lv1759 systemd[1]: Started PostgreSQL database server.
Hint: Some lines were ellipsized, use -l to show in full.

systemctl status mariadb

Code: Select all

● mariadb.service - MariaDB database server
   Loaded: loaded (/usr/lib/systemd/system/mariadb.service; enabled; vendor preset: disabled)
   Active: active (running) since Mon 2018-07-02 10:41:05 EDT; 3 days ago
 Main PID: 75941 (mysqld_safe)
   CGroup: /system.slice/mariadb.service
           ├─75941 /bin/sh /usr/bin/mysqld_safe --basedir=/usr
           └─76175 /usr/libexec/mysqld --basedir=/usr --datadir=/var/lib/mysql --plugin-dir=/usr/lib64/mysql/plugin --log-error=/var/log/...

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 »

The only 500 errors I could see in the logs from you accessing the login page was from not being able to connect to those services.
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 »

Error is still same while accessing http://myserverip/nagiosxi/

http://myserverip/ (accessible ) attached screenshot and when we click on "Access NagiosXI" getting http 500 error (Attached error)

just now when i check all services status all are running except nagios. don't know whats going on and what we are missing?

Code: Select all

[root@usa03**** crt]# systemctl status nagios
● nagios.service - LSB: Starts and stops the Nagios monitoring server
   Loaded: loaded (/etc/rc.d/init.d/nagios; bad; vendor preset: disabled)
   Active: failed (Result: resources) since Fri 2018-07-06 05:12:10 EDT; 5h 51min ago
     Docs: man:systemd-sysv-generator(8)
  Process: 45271 ExecStart=/etc/rc.d/init.d/nagios start (code=exited, status=0/SUCCESS)
 Main PID: 42829 (code=exited, status=1/FAILURE)

Jul 06 05:12:08 usa0300lv1759 nagios[45302]: Error: Failed to load module '/usr/local/lib/mod_gearman2/mod_gearman2.o'.
Jul 06 05:12:08 usa0300lv1759 nagios[45302]: ndomod: NDOMOD 2.1.2 (11-14-2016) Copyright (c) 2009 Nagios Core Development Team and...ibutors
Jul 06 05:12:08 usa0300lv1759 nagios[45302]: ndomod: Successfully connected to data sink.  0 queued items to flush.
Jul 06 05:12:08 usa0300lv1759 nagios[45302]: ndomod registered for process data
Jul 06 05:12:08 usa0300lv1759 nagios[45271]: Starting nagios: done.
Jul 06 05:12:08 usa0300lv1759 systemd[1]: PID 45302 read from file /usr/local/nagios/var/nagios.lock does not exist or is a zombie.
Jul 06 05:12:10 usa0300lv1759 systemd[1]: nagios.service never wrote its PID file. Failing.
Jul 06 05:12:10 usa0300lv1759 systemd[1]: Failed to start LSB: Starts and stops the Nagios monitoring server.
Jul 06 05:12:10 usa0300lv1759 systemd[1]: Unit nagios.service entered failed state.
Jul 06 05:12:10 usa0300lv1759 systemd[1]: nagios.service failed.
Hint: Some lines were ellipsized, use -l to show in full.

and just to update you on another server i am able to install the Nagios XI 2014 R2.7

so now we have two VM's
1-
RHEL 7.4 having 5.4.13 ( on which currently we are working upon)
2-
RHEL 7.4 having 2014 R2.7 (older version we are running in live environment)

As this thread is going too long and still we are not able to identify what we are missing, can we do remote session where you can directly work and troubleshoot if needed. keeping both VM as per requirement.
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 »

rtsupport wrote:As this thread is going too long and still we are not able to identify what we are missing, can we do remote session where you can directly work and troubleshoot if needed. keeping both VM as per requirement.
I think this is an excellent idea as I agree the thread is long and getting hard to work with, can you please open a support ticket at
https://support.nagios.com/tickets/

Reference this thread and we will close the thread and can setup a support session.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

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

Post by tmcdonald »

Closing the thread as we have a ticket open.
Former Nagios employee
Locked