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 »

Sorry I typed this one wrong

Code: Select all

systemctl start postgresql
Also lets run the following

Code: Select all

rm -f /usr/local/nagios/var/ndo2db.lock
systemctl start ndo2db
and then

Code: Select all

systemctl start nagios.service
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
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 »

systemctl start postgresql

Code: Select all

[root@localhost ~]# systemctl start postgresql
[root@localhost ~]#
[root@localhost ~]# systemctl status postgresql
● postgresql.service - PostgreSQL database server
   Loaded: loaded (/usr/lib/systemd/system/postgresql.service; enabled; vendor preset: disabled)
   Active: active (running) since Sun 2018-06-24 05:32:07 EDT; 1min 36s ago
  Process: 1044 ExecStart=/usr/bin/pg_ctl start -D ${PGDATA} -s -o -p ${PGPORT} -w -t 300 (code=e                                                                       xited, status=0/SUCCESS)
  Process: 1019 ExecStartPre=/usr/bin/postgresql-check-db-dir ${PGDATA} (code=exited, status=0/SU                                                                       CCESS)
 Main PID: 2250 (postgres)
   CGroup: /system.slice/postgresql.service
           ├─2250 /usr/bin/postgres -D /var/lib/pgsql/data -p 5432
           ├─2431 postgres: logger process
           ├─2545 postgres: checkpointer process
           ├─2546 postgres: writer process
           ├─2547 postgres: wal writer process
           ├─2548 postgres: autovacuum launcher process
           └─2549 postgres: stats collector process

Jun 24 05:31:57 localhost.localdomain systemd[1]: Starting PostgreSQL database server...
Jun 24 05:32:07 localhost.localdomain systemd[1]: Started PostgreSQL database server.


rm -f /usr/local/nagios/var/ndo2db.lock

Code: Select all

[root@localhost ~]# rm -f /usr/local/nagios/var/ndo2db.lock
[root@localhost ~]# systemctl start ndo2db
[root@localhost ~]# systemctl status ndo2db
● ndo2db.service - Nagios Data Out Daemon
   Loaded: loaded (/usr/lib/systemd/system/ndo2db.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Sun 2018-06-24 05:34:36 EDT; 15s ago
     Docs: http://www.nagios.org/documentation
  Process: 2858 ExecStopPost=/bin/rm -f /usr/local/nagios/var/ndo2db.pid (code=exited, status=0/S                                                                       UCCESS)
  Process: 2856 ExecStart=/usr/local/nagios/bin/ndo2db -c /usr/local/nagios/etc/ndo2db.cfg -f (co                                                                       de=exited, status=127)
 Main PID: 2856 (code=exited, status=127)

Jun 24 05:34:36 localhost.localdomain systemd[1]: Started Nagios Data Out Daemon.
Jun 24 05:34:36 localhost.localdomain systemd[1]: Starting Nagios Data Out Daemon...
Jun 24 05:34:36 localhost.localdomain systemd[1]: ndo2db.service: main process exited, code=.../a
Jun 24 05:34:36 localhost.localdomain systemd[1]: Unit ndo2db.service entered failed state.
Jun 24 05:34:36 localhost.localdomain systemd[1]: ndo2db.service failed.
Hint: Some lines were ellipsized, use -l to show in full.


systemctl status nagios.service

Code: Select all

[root@localhost ~]# 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 Sun 2018-06-24 05:35:27 EDT; 25s ago
     Docs: man:systemd-sysv-generator(8)
  Process: 2933 ExecStart=/etc/rc.d/init.d/nagios start (code=exited, status=0/SUCCESS)

Jun 24 05:35:25 localhost.localdomain nagios[2959]: wproc: Successfully registered manager as @wproc with query handler
Jun 24 05:35:25 localhost.localdomain nagios[2959]: wproc: Registry request: name=Core Worker 2964;pid=2964
Jun 24 05:35:25 localhost.localdomain nagios[2959]: wproc: Registry request: name=Core Worker 2961;pid=2961
Jun 24 05:35:25 localhost.localdomain nagios[2959]: wproc: Registry request: name=Core Worker 2962;pid=2962
Jun 24 05:35:25 localhost.localdomain nagios[2933]: Starting nagios: done.
Jun 24 05:35:25 localhost.localdomain systemd[1]: PID 2959 read from file /usr/local/nagios/var/nagios.lock does not exist or is a zombie.
Jun 24 05:35:27 localhost.localdomain systemd[1]: nagios.service never wrote its PID file. Failing.
Jun 24 05:35:27 localhost.localdomain systemd[1]: Failed to start LSB: Starts and stops the Nagios monitoring server.
Jun 24 05:35:27 localhost.localdomain systemd[1]: Unit nagios.service entered failed state.
Jun 24 05:35:27 localhost.localdomain systemd[1]: nagios.service 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 »

This looks like you are missing a file
rtsupport wrote: Process: 2856 ExecStart=/usr/local/nagios/bin/ndo2db -c /usr/local/nagios/etc/ndo2db.cfg -f (co de=exited, status=127)
Main PID: 2856 (code=exited, status=127)
Can you show the output of the following commands:

Code: Select all

ls -la /usr/local/nagios/bin/ndo2db 
file /usr/local/nagios/bin/ndo2db
ls -la /usr/local/nagios/etc/ndo2db.cfg
file /usr/local/nagios/etc/ndo2db.cfg
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
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 »

here you go..

[root@localhost ~]# ls -la /usr/local/nagios/bin/ndo2db
-rwxr-xr-x 1 nagios nagios 401882 Sep 2 2015 /usr/local/nagios/bin/ndo2db
[root@localhost ~]# file /usr/local/nagios/bin/ndo2db
/usr/local/nagios/bin/ndo2db: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.18, BuildID[sha1]=aa37c35108c0ca6743d31b4b24d322106ec3d3cd, not stripped
[root@localhost ~]# ls -la /usr/local/nagios/etc/ndo2db.cfg
-rw-rw-r-- 1 apache nagios 2229 May 28 2015 /usr/local/nagios/etc/ndo2db.cfg
[root@localhost ~]# file /usr/local/nagios/etc/ndo2db.cfg
/usr/local/nagios/etc/ndo2db.cfg: ASCII text
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 »

What do you get if you run this?

Code: Select all

sudo su nagios -c '/usr/local/nagios/bin/ndo2db -c /usr/local/nagios/etc/ndo2db.cfg -f'
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
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 »

below is the output --

[root@localhost ~]# sudo su nagios -c '/usr/local/nagios/bin/ndo2db -c /usr/local/nagios/etc/ndo2db.cfg -f'
/usr/local/nagios/bin/ndo2db: error while loading shared libraries: libmysqlclient.so.16: cannot open shared object file: No such file or directory
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 »

Ok, so this appears to not have the correct libraries

When you ran the upgrade script what happened?
rtsupport wrote:Ad advised, ran upgrade scrip but no luck..
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
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 »

it says .. upgrade complete.. do you want me to run it again.. ?
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 »

more specifically, lets do this

Code: Select all

cd /tmp/nagiosxi/subcomponents
./install
This should re-compile all of the software with the libraries on this OS

Then try starting ndo2db again

Code: Select all

systemctl start ndo2db
systemctl status ndo2db
if that works, then nagios

Code: Select all

systemctl start nagios
systemctl status nagios
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
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 »

Agian failed at starting nagios service..

cd /tmp/nagiosxi/subcomponents

Code: Select all

make[2]: Leaving directory `/tmp/nagiosxi/subcomponents/ndoutils/ndoutils-2.1.2/src'
gcc -fPIC -g -O2 -I/usr/include/mysql -DHAVE_CONFIG_H  -o sockdebug sockdebug.c io.o utils.o   -lm -lnsl
make[1]: Leaving directory `/tmp/nagiosxi/subcomponents/ndoutils/ndoutils-2.1.2/src'
/usr/bin/install -c -m 644 startup/default-service /usr/lib/systemd/system/ndo2db.service
NDOUTILS-POST
kernel.msgmnb = 131072000
kernel.msgmax = 131072000
kernel.shmmax = 4294967295
kernel.shmall = 268435456
NOTE: If prompted, enter the MySQL root password
ERROR 1007 (HY000) at line 1: Can't create database 'nagios'; database exists
ERROR: Subcomponent 'ndoutils' installation failed - exiting.
You have new mail in /var/spool/mail/root
[root@localhost subcomponents]#

systemctl start ndo2db

Code: Select all

[root@localhost subcomponents]# systemctl start ndo2db
[root@localhost subcomponents]# systemctl status ndo2db
● ndo2db.service - Nagios Data Out Daemon
   Loaded: loaded (/usr/lib/systemd/system/ndo2db.service; enabled; vendor preset: disabled)
   Active: active (running) since Mon 2018-06-25 15:20:57 EDT; 4s ago
     Docs: http://www.nagios.org/documentation
 Main PID: 29099 (ndo2db)
   CGroup: /system.slice/ndo2db.service
           └─29099 /usr/local/nagios/bin/ndo2db -c /usr/local/nagios/etc/ndo2db.cfg -f

Jun 25 15:20:57 localhost.localdomain systemd[1]: Started Nagios Data Out Daemon.
Jun 25 15:20:57 localhost.localdomain systemd[1]: Starting Nagios Data Out Daemon...


systemctl start nagios

Code: Select all

Job for nagios.service failed because a configured resource limit was exceeded. See "systemctl status nagios.service" and "journalctl -xe" for details.
[root@localhost subcomponents]#
[root@localhost subcomponents]# 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 Mon 2018-06-25 15:21:41 EDT; 13s ago
     Docs: man:systemd-sysv-generator(8)
  Process: 29160 ExecStart=/etc/rc.d/init.d/nagios start (code=exited, status=0/SUCCESS)

Jun 25 15:21:39 localhost.localdomain nagios[29186]: wproc: Successfully registered manager as @wproc with query handler
Jun 25 15:21:39 localhost.localdomain nagios[29186]: wproc: Registry request: name=Core Worker 29188;pid=29188
Jun 25 15:21:39 localhost.localdomain nagios[29186]: wproc: Registry request: name=Core Worker 29189;pid=29189
Jun 25 15:21:39 localhost.localdomain nagios[29186]: wproc: Registry request: name=Core Worker 29190;pid=29190
Jun 25 15:21:39 localhost.localdomain nagios[29160]: Starting nagios: done.
Jun 25 15:21:39 localhost.localdomain systemd[1]: PID 29186 read from file /usr/local/nagios/var/nagios.lock does not exist or is a zombie.
Jun 25 15:21:41 localhost.localdomain systemd[1]: nagios.service never wrote its PID file. Failing.
Jun 25 15:21:41 localhost.localdomain systemd[1]: Failed to start LSB: Starts and stops the Nagios monitoring server.
Jun 25 15:21:41 localhost.localdomain systemd[1]: Unit nagios.service entered failed state.
Jun 25 15:21:41 localhost.localdomain systemd[1]: nagios.service failed.
Hint: Some lines were ellipsized, use -l to show in full.
Locked