Page 1 of 1
After upgrade to 5.4.0.2 Database Backend error
Posted: Tue Jan 31, 2017 8:44 am
by mvndnburg
I just upgraded from 5.3.3 to 5.4.0.2 on RHEL 6.8, using the package for standalone installation.
There were no errors during the installation, but afterwards the 'Database Backend' item in XI System Component Status in the GUI displayed the red error.
I checked the forum and found
this post.
Commenting out the following code in
/usr/local/nagiosxi/cron/sysstat.php solved the issue.
Code: Select all
# # Check if we are on a systemctl or not and if we are checking ndo2db
# if (file_exists('/usr/lib/systemd')) {
# if ($darr["daemon"] == 'ndo2db') {
# $cmdline = sprintf("systemctl status %s", $darr["daemon"]);
# }
# }
- was this error reintroduced in 5.4.0.2, or specifically in the standalone installation?
- what harm does it to remove this part from
sysstat.php ?
For information, the md5sum of our sysstat.php is b6f16324d4dfd0a7156f3cf31db798b2.
Re: After upgrade to 5.4.0.2 Database Backend error
Posted: Tue Jan 31, 2017 9:19 am
by BanditBBS
5.4.1 Changelog has this fix in it:
Code: Select all
- Fixed issue where some systems would show ndo2db as not running in the GUI even though the daemon is running [TPS#10636] -JO
Re: After upgrade to 5.4.0.2 Database Backend error
Posted: Tue Jan 31, 2017 9:59 am
by mvndnburg
The systemctl line is not present in 5.3.3 (I checked this in the sysstat.php in our PRD environment, which has not yet been updated) but it is present in the code that I deployed with the standalone installation package.
Despite the developer component, it seems that it did make it into our version of 5.4.0.2...
Re: After upgrade to 5.4.0.2 Database Backend error
Posted: Tue Jan 31, 2017 10:03 am
by BanditBBS
mvndnburg wrote:The systemctl line is not present in 5.3.3 (I checked this in the sysstat.php in our PRD environment, which has not yet been updated) but it is present in the code that I deployed with the standalone installation package.
Despite the developer component, it seems that it did make it into our version of 5.4.0.2...
Not sure what version you are running, there is no 5.4.0.2. The versions are 5.4.0 and 5.4.1. If you are running 5.4.0 the fix is in the next release. You can see the versions and changelogs here:
https://assets.nagios.com/downloads/nag ... NGES-5.TXT
Re: After upgrade to 5.4.0.2 Database Backend error
Posted: Tue Jan 31, 2017 10:43 am
by rkennedy
Thanks @BanditBBS!
@mvndnburg - Bandit is correct, this was fixed in the latest version, 5.4.1. Let us know if you have further questions.
Re: After upgrade to 5.4.0.2 Database Backend error
Posted: Wed Feb 01, 2017 2:08 am
by mvndnburg
I installed the
nagiosxi-5-4.0.2.el6.x86_64.tar.gz from
https://repo.nagios.com. Hence my quoting it as 5.4.0.2.
The System Info says
Nagios XI Version : 5.4.0.
We can update when a new Offline install becomes available.
Re: After upgrade to 5.4.0.2 Database Backend error
Posted: Wed Feb 01, 2017 10:25 am
by rkennedy
The offline versions are generally released only when a stable version is out, and has been running smoothly for a bit. It'll be some time as we're only on 5.4.1 currently.
Re: After upgrade to 5.4.0.2 Database Backend error
Posted: Wed Mar 01, 2017 1:55 pm
by tmcdonald
Just checking in since we have not heard from you in a while. Did
@rkennedy's post clear things up?
Re: After upgrade to 5.4.0.2 Database Backend error
Posted: Thu Mar 02, 2017 2:34 am
by mvndnburg
tmcdonald wrote:Just checking in since we have not heard from you in a while. Did
@rkennedy's post clear things up?
Yes, it did, thanks.
You can go ahead and lock the thread, if you want.