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
./upgradeCode: 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
./upgradeCode: 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
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
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
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
Code: Select all
cd /tmp/nagiosxi/subcomponents/nagioscore
./upgradeCode: Select all
systemctl start ndo2db
systemctl status ndo2dbCode: Select all
systemctl start nagios
systemctl status nagiosCode: 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.
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.
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.