Page 2 of 2

Re: Persistent error message displayed

Posted: Mon Aug 05, 2019 3:07 pm
by smblair
Which RPM contains the script? I can extract it and run it in another directory. My concern is that, since this script has never run since 5.4.13, are there enough schema and other changes to make this risky? I am actually surprised that XI is still running.

*** UPDATE ***
I found the script in the base nagiosxi RPM in /tmp/nagiosxi/. I copied that directory tree to /root and can execute from within. The question is still, "Is it safe to do this?"

Re: Persistent error message displayed

Posted: Mon Aug 05, 2019 4:08 pm
by scottwilkerson
smblair wrote:*** UPDATE ***
I found the script in the base nagiosxi RPM in /tmp/nagiosxi/. I copied that directory tree to /root and can execute from within. The question is still, "Is it safe to do this?"
that should work just fine, it should run all the updates sequentially

from within that directory you should be able to run

Code: Select all

./rpmupgrade

Re: Persistent error message displayed

Posted: Mon Aug 05, 2019 4:11 pm
by smblair
Ok, rather than prolong this, I removed noexec from /tmp and /var/tmp and reinstalled all 5.6.5 RPMs. The error indication is gone, the system profile indicates the correct version (5.6.5) and all seems well. There was an import that failed due to a missing table. You will see it in the attached log.

Re: Persistent error message displayed

Posted: Mon Aug 05, 2019 4:18 pm
by scottwilkerson
great!

I don't believe this should be an issue at all.

Can you apply configuration from the CLI?

Code: Select all

cd /usr/local/nagiosxi/scripts
./reconfigure_nagios.sh

Re: Persistent error message displayed

Posted: Mon Aug 05, 2019 4:26 pm
by smblair
No, same failure.
> Importing config files into the CCM
- Importing: /usr/local/nagios/etc/import/xitempates.cfg .. ERROR
"Table for import definition 'timeperiod' is not available!<span class="greenmessage">Entry name::xi_contact_generic inside tbl_contacttemplate successfully inserted</span><br>

Re: Persistent error message displayed

Posted: Mon Aug 05, 2019 4:50 pm
by scottwilkerson
I think you have a bad file stuck in the import directory, lets move that file out and try to re-run the apply config

Code: Select all

mv /usr/local/nagios/etc/import/xitempates.cfg ~/xitempates.cfg
cd /usr/local/nagiosxi/scripts
./reconfigure_nagios.sh

Re: Persistent error message displayed

Posted: Tue Aug 06, 2019 9:01 am
by smblair
Script ran with some warnings about specific host configs, which we will address. I think we can close this incident. Thanks for your help.

Re: Persistent error message displayed

Posted: Tue Aug 06, 2019 9:04 am
by scottwilkerson
smblair wrote:Script ran with some warnings about specific host configs, which we will address. I think we can close this incident. Thanks for your help.
Great!

Locking