Persistent error message displayed

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
smblair
Posts: 31
Joined: Thu Nov 16, 2017 3:49 pm

Re: Persistent error message displayed

Post 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?"
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Persistent error message displayed

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
User avatar
smblair
Posts: 31
Joined: Thu Nov 16, 2017 3:49 pm

Re: Persistent error message displayed

Post 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.
You do not have the required permissions to view the files attached to this post.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Persistent error message displayed

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
User avatar
smblair
Posts: 31
Joined: Thu Nov 16, 2017 3:49 pm

Re: Persistent error message displayed

Post 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>
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Persistent error message displayed

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
User avatar
smblair
Posts: 31
Joined: Thu Nov 16, 2017 3:49 pm

Re: Persistent error message displayed

Post 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.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Persistent error message displayed

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked