Page 6 of 9

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

Posted: Mon Jun 25, 2018 2:47 pm
by scottwilkerson
Ok, the first command didn't work

Let try the following series

Code: Select all

cd /tmp/nagiosxi/subcomponents/ndoutils
./upgrade
cd /tmp/nagiosxi/subcomponents/nagios
./upgrade
cd /tmp/nagiosxi/subcomponents/nagiosplugins
./upgrade
cd /tmp/nagiosxi/subcomponents/pnp
./upgrade

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

Posted: Mon Jun 25, 2018 3:06 pm
by rtsupport
I believe now you are close, it seems we are missing nagios directory from package.

cd /tmp/nagiosxi/subcomponents/ndoutils
./upgrade

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-UPGRADE...
kernel.msgmnb = 131072000
kernel.msgmax = 131072000
kernel.shmmax = 4294967295
kernel.shmall = 268435456
Removing depricated failure_prediction_enabled from NagiosQL
copying updated mysql-upgrade-2.0.0.sql
ERROR 1146 (42S02) at line 1: Table 'nagios.nagios_dbversion' doesn't exist

cd /tmp/nagiosxi/subcomponents/nagios

Code: Select all

[root@localhost pnp]# cd /tmp/nagiosxi/subcomponents/nagios
-bash: cd: /tmp/nagiosxi/subcomponents/nagios: No such file or directory

[root@localhost subcomponents]# ls -l
total 8
drwxr-xr-x.  2 root root   40 Mar 13 12:54 ajaxterm
drwxr-xr-x. 10 root root 4096 Jun 20 10:18 extraplugins
-rwxr-xr-x.  1 root root  524 Mar 13 12:54 install
drwxr-xr-x.  5 root root  227 Jun 20 10:22 mrtg
drwxr-xr-x.  5 root root  179 Jun 25 15:15 nagioscore
drwxr-xr-x.  4 root root   80 Jun 20 10:19 nagiosmobile
drwxr-xr-x.  4 root root  135 Jun 25 15:57 nagiosplugins
drwxr-xr-x.  4 root root  187 Mar 13 12:54 nagiosql
drwxr-xr-x.  5 root root  175 Jun 25 15:56 ndoutils
drwxr-xr-x.  4 root root   91 Jun 20 10:18 nrdp
drwxr-xr-x.  3 root root   77 Jun 20 10:18 nrpe
drwxr-xr-x.  4 root root  111 Jun 20 10:18 nsca
drwxr-xr-x.  5 root root  147 Jun 25 16:01 pnp
drwxr-xr-x.  3 root root   71 Jun 20 10:19 webinject
drwxr-xr-x.  3 root root   98 Jun 20 10:22 wkhtmlx
drwxr-xr-x.  3 root root   57 Jun 20 10:29 xicomponents
drwxr-xr-x.  3 root root   55 Mar 13 12:54 xidashlets
drwxr-xr-x.  3 root root   54 Mar 13 12:54 xiwizards
[root@localhost subcomponents]# pwd
/tmp/nagiosxi/subcomponents

cd /tmp/nagiosxi/subcomponents/nagiosplugins
./upgrade

Code: Select all

/usr/bin/mkdir -p /usr/local/nagios/share
installing fr.gmo as /usr/local/nagios/share/locale/fr/LC_MESSAGES/nagios-plugins.mo
installing de.gmo as /usr/local/nagios/share/locale/de/LC_MESSAGES/nagios-plugins.mo
if test "nagios-plugins" = "gettext-tools"; then \
  /usr/bin/mkdir -p /usr/local/nagios/share/gettext/po; \
  for file in Makefile.in.in remove-potcdate.sin    Makevars.template; do \
    /usr/bin/install -c  -m 644 ./$file \
                    /usr/local/nagios/share/gettext/po/$file; \
  done; \
  for file in Makevars; do \
    rm -f /usr/local/nagios/share/gettext/po/$file; \
  done; \
else \
  : ; \
fi
make[1]: Leaving directory `/tmp/nagiosxi/subcomponents/nagiosplugins/nagios-plugins-2.0.3/po'
make[1]: Entering directory `/tmp/nagiosxi/subcomponents/nagiosplugins/nagios-plugins-2.0.3'
make[2]: Entering directory `/tmp/nagiosxi/subcomponents/nagiosplugins/nagios-plugins-2.0.3'
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/tmp/nagiosxi/subcomponents/nagiosplugins/nagios-plugins-2.0.3'
make[1]: Leaving directory `/tmp/nagiosxi/subcomponents/nagiosplugins/nagios-plugins-2.0.3'

real    0m0.573s
user    0m0.378s
sys     0m0.180s
Nagios Plugins upgraded OK

cd /tmp/nagiosxi/subcomponents/pnp
./upgrade

Code: Select all

make[1]: Entering directory `/tmp/nagiosxi/subcomponents/pnp/pnp-latest/sample-config'
rm -f /usr/local/nagios/share/pnp/conf/config.php
/usr/bin/install -c -m 755 -o nagios -g nagios -d /usr/local/nagios/etc/pnp
/usr/bin/install -c -m 755 -o nagios -g nagios -d /usr/local/nagios/etc/pnp/check_commands
/usr/bin/install -c -m 755 -o nagios -g nagios -d /usr/local/nagios/etc/pnp/pages
/usr/bin/install -c -m 644 -o nagios -g nagios  pnp/pnp4nagios_release /usr/local/nagios/etc/pnp
/usr/bin/install -c -m 644 -o nagios -g nagios  pnp/config.php /usr/local/nagios/etc/pnp
/usr/bin/install -c -m 644 -o nagios -g nagios  pnp/background.pdf /usr/local/nagios/etc/pnp
make[1]: Leaving directory `/tmp/nagiosxi/subcomponents/pnp/pnp-latest/sample-config'
make install-basic
make[1]: Entering directory `/tmp/nagiosxi/subcomponents/pnp/pnp-latest'

*** Main program, Scripts and HTML files installed ***

Please run 'make install-config' to install sample
configuration files

Please run 'make install-init' if you want to use
BULK Mode with NPCD



make[1]: Leaving directory `/tmp/nagiosxi/subcomponents/pnp/pnp-latest'
PNP upgraded OK

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

Posted: Mon Jun 25, 2018 3:11 pm
by scottwilkerson
one more I errored

Code: Select all

cd /tmp/nagiosxi/subcomponents/nagioscore
./upgrade
Then lets try starting them

Code: Select all

    systemctl start ndo2db
    systemctl status ndo2db

Code: Select all

    systemctl start nagios
    systemctl status nagios

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

Posted: Mon Jun 25, 2018 3:26 pm
by rtsupport
hmm.. again stuck with nagios service

cd /tmp/nagiosxi/subcomponents/nagioscore
./upgrade

Code: Select all

/usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/var
/usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/var/archives
/usr/bin/install -c -m 775 -o nagios -g nagcmd -d /usr/local/nagios/var/spool/checkresults
chmod g+s /usr/local/nagios/var/spool/checkresults

*** Main program, CGIs and HTML files installed ***

You can continue with installing Nagios as follows (type 'make'
without any arguments for a list of all possible options):

  make install-init
     - This installs the init script in /etc/rc.d/init.d

  make install-commandmode
     - This installs and configures permissions on the
       directory for holding the external command file

  make install-config
     - This installs sample config files in /usr/local/nagios/etc

make[1]: Leaving directory `/tmp/nagiosxi/subcomponents/nagioscore/nagios-4.2.4'
Warning: nagios.service changed on disk. Run 'systemctl daemon-reload' to reload units.
Job for nagios.service failed because a configured resource limit was exceeded. See "systemctl status nagios.service" and "journalctl -xe" for details.


systemctl start ndo2db

Code: Select all

[root@localhost nagioscore]# systemctl start ndo2db
[root@localhost nagioscore]# 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; 1h 1min 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...
Jun 25 15:21:39 localhost.localdomain ndo2db[29193]: Successfully connected to MySQL database
Jun 25 15:21:39 localhost.localdomain ndo2db[29195]: Successfully connected to MySQL database
Jun 25 15:21:39 localhost.localdomain ndo2db[29195]: Error: mysql_query() failed for 'SELECT instance_id FROM nagios_instances WHER...host''
Jun 25 15:21:39 localhost.localdomain ndo2db[29195]: mysql_error: 'Table 'nagios.nagios_instances' doesn't exist'
Jun 25 15:21:40 localhost.localdomain ndo2db[29195]: Error: mysql_query() failed for 'INSERT INTO nagios_instances SET instance_nam...host''
Jun 25 15:21:40 localhost.localdomain ndo2db[29195]: mysql_error: 'Table 'nagios.nagios_instances' doesn't exist'
Jun 25 16:21:04 localhost.localdomain ndo2db[28455]: Successfully connected to MySQL database
Jun 25 16:21:04 localhost.localdomain ndo2db[28455]: Successfully disconnected from MySQL database
Hint: Some lines were ellipsized, use -l to show in full.


systemctl start nagios

Code: Select all

[root@localhost nagioscore]# systemctl start nagios
Warning: nagios.service changed on disk. Run 'systemctl daemon-reload' to reload units.
Job for nagios.service failed because a configured resource limit was exceeded. See "systemctl status nagios.service" and "journalctl -xe" for details.
[root@localhost nagioscore]# 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 Mon 2018-06-25 16:22:49 EDT; 9s ago
     Docs: man:systemd-sysv-generator(8)
  Process: 28535 ExecStart=/etc/rc.d/init.d/nagios start (code=exited, status=0/SUCCESS)

Jun 25 16:22:47 localhost.localdomain nagios[28561]: wproc: Successfully registered manager as @wproc with query handler
Jun 25 16:22:47 localhost.localdomain nagios[28561]: wproc: Registry request: name=Core Worker 28566;pid=28566
Jun 25 16:22:47 localhost.localdomain nagios[28561]: wproc: Registry request: name=Core Worker 28563;pid=28563
Jun 25 16:22:47 localhost.localdomain nagios[28561]: wproc: Registry request: name=Core Worker 28564;pid=28564
Jun 25 16:22:47 localhost.localdomain nagios[28535]: Starting nagios: done.
Jun 25 16:22:47 localhost.localdomain systemd[1]: PID 28561 read from file /usr/local/nagios/var/nagios.lock does not exist or is a zombie.
Jun 25 16:22:49 localhost.localdomain systemd[1]: nagios.service never wrote its PID file. Failing.
Jun 25 16:22:49 localhost.localdomain systemd[1]: Failed to start LSB: Starts and stops the Nagios monitoring server.
Jun 25 16:22:49 localhost.localdomain systemd[1]: Unit nagios.service entered failed state.
Jun 25 16:22:49 localhost.localdomain systemd[1]: nagios.service failed.
Warning: nagios.service changed on disk. Run 'systemctl daemon-reload' to reload units.
Hint: Some lines were ellipsized, use -l to show in full.
[root@localhost nagioscore]# systemctl daemon-reload
[root@localhost nagioscore]# 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@localhost nagioscore]# 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 16:23:14 EDT; 8s ago
     Docs: man:systemd-sysv-generator(8)
  Process: 28661 ExecStart=/etc/rc.d/init.d/nagios start (code=exited, status=0/SUCCESS)

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

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

Posted: Mon Jun 25, 2018 3:43 pm
by scottwilkerson
I really don't know where to turn with this case.

Every single thing on the server is not correct.

What system OS and arch was the original system again?

And can you remind me why we could not upgrade XI inline?

I want you to have a working stable system and I can already tell what had been done here is not going to get us there.

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

Posted: Mon Jun 25, 2018 4:05 pm
by rtsupport
this is the VM installed on my local machine on " Oracle Virtual Box" having "CentOS Linux release 7.3.1611 (Core)" .

Steps was taken.

Downloaded -- xi-5.4.13 --> Installed --> restore existing Nagios backup which is running on "Nagios XI 2014R2.7" OS (Red Hat Enterprise Linux Server release 6.9 (Santiago) --> upgrade it using ./upgrade script..

and from then working with you with all errors..

As per Nagios Doc. we have to install same Nagios version on new server --> restore backup --> upgrade it.

you Advised to Install latest version on Nagios XI --> restore Backup --> upgrade it.

But if still you are saying issue with OS then i can reinstall the OS and do the installation again.. or if you wish to add anything please do so.

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

Posted: Mon Jun 25, 2018 4:20 pm
by scottwilkerson
Can you remind me why we could not upgrade XI inline to the latest before moving to the new server?

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

Posted: Mon Jun 25, 2018 4:28 pm
by rtsupport
Existing version is running on Red Hat Enterprise Linux Server release 6.9 (Santiago) for which Redhat support will be end by 2020 so we are planning to upgrade the Nagios on RHEL 7 platform.

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

Posted: Mon Jun 25, 2018 4:32 pm
by scottwilkerson
I want to know why you cannot upgrade XI before making the migration to the new server, so the version matches the latest, THEN move to new operating system.

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

Posted: Mon Jun 25, 2018 4:47 pm
by rtsupport
we cannot do up gradation directly on PRD,

If i am right then you are you are pointing ..

Restore PRD backup to Test/Dev environment (same Nagios XI version)--> then upgrade Test environment to latest Nagios XI.. -- > Take Backup --> now restore that backup to new OS with same latest version. ??

Correct me if i am missing something as this we can do..