Page 1 of 1

Installation fails with "chkconfig ndo2db on" error

Posted: Sun Jan 31, 2021 8:10 pm
by genna
Hi,
I'm installing version 5.4.10 . We currently have this version in PRD and I need to test upgrade process.

The install fails with following message

Running './D-chkconfigalldaemons'...
nagiosxi.service is not a native service, redirecting to /sbin/chkconfig.
Executing /sbin/chkconfig nagiosxi on
nagios.service is not a native service, redirecting to /sbin/chkconfig.
Executing /sbin/chkconfig nagios on
npcd.service is not a native service, redirecting to /sbin/chkconfig.
Executing /sbin/chkconfig npcd on
ndo2db.service is not a native service, redirecting to /sbin/chkconfig.
Executing /sbin/chkconfig ndo2db on
Failed to execute operation: Cannot send after transport endpoint shutdown
RESULT=1

===================
INSTALLATION ERROR!
===================
Installation step failed - exiting.
Check for error messages in the install log (install.log).

If you require assistance in resolving the issue, please include install.log
in your communications with Nagios XI technical support.


I 'm attaching installation log

Please help
Regards
Genna

Re: Installation fails with "chkconfig ndo2db on" error

Posted: Mon Feb 01, 2021 4:19 pm
by benjaminsmith
Hi Genna,

There are a few SQL errors in that log, let's try to run the database repair script, and if successful, run the upgrade once more.

Code: Select all

/usr/local/nagiosxi/scripts/repair_databases.sh
If not, please send the new install log along with the system profile for us to review. Thanks, Benjamin

To send us your system profile.
Login to the Nagios XI GUI using a web browser.
Click the "Admin" > "System Profile" Menu
Click the "Download Profile" button

Re: Installation fails with "chkconfig ndo2db on" error

Posted: Mon Feb 01, 2021 6:04 pm
by genna
Hi Benjamin
Thanks for your response. I think I did not explain myself properly. When I said I wanted to test upgrade I was trying to prevent discussion on why I'm installing such an old version.
The problem I'm having is with the brand new installation. I'm running ./fullinstal in offline mode
On an off chance that repair script would fix my issue I have run it and then tried to run ./fullinstall and ./update again. Neither worked - with message nothing to do. Yet I can see that install is not completed - all config files in /usr/local/nagios/var directory are missing.
Thanks

Re: Installation fails with "chkconfig ndo2db on" error

Posted: Tue Feb 02, 2021 4:42 pm
by benjaminsmith
Hi genna,

Okay, that makes sense. It's unable to configure the services, and failing in that part of the installation ( see D-chkconfigalldaemons ). What operating system are you installing this on to?

--Benjamin

Re: Installation fails with "chkconfig ndo2db on" error

Posted: Tue Feb 02, 2021 6:34 pm
by genna
Hi Benjamin
I'm running RHEL:
Red Hat Enterprise Linux Server release 7.9 (Maipo)

Re: Installation fails with "chkconfig ndo2db on" error

Posted: Wed Feb 03, 2021 3:04 pm
by benjaminsmith
Hi @genna,

Okay, thanks for letting me know. The old install used chconfig to enable services, and this gets re-directed to systemctl. Please run the following commands and post any error ouptut so we can review why they are not getting enabled.

Code: Select all

systemctl enable ndo2db
systemctl status ndo2db
It could be ndo2db failing or the next service which is ntpd, please run the following as well.

Code: Select all

systemctl enable ntpd
systemctl status ntpd
--Benjaminin