Nagios XI updates failing
-
RebeccaIlene
- Posts: 164
- Joined: Tue Apr 02, 2019 8:38 pm
Nagios XI updates failing
Hi Team,
Please find attachment. The version installed on our Nagios server is 5.6.9.
However, we keep getting pop up messages that a new version is available 5.6.5.
When we try and update it, the update fails.
can you please help with this?
Thank you,
Rebecca Murray
Please find attachment. The version installed on our Nagios server is 5.6.9.
However, we keep getting pop up messages that a new version is available 5.6.5.
When we try and update it, the update fails.
can you please help with this?
Thank you,
Rebecca Murray
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: Nagios XI updates failing
Is your XI server behind a proxy server?
-
RebeccaIlene
- Posts: 164
- Joined: Tue Apr 02, 2019 8:38 pm
Re: Nagios XI updates failing
Yes, we have a firewall between all nodes.
-
benjaminsmith
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: Nagios XI updates failing
Hi Rebecca,
The server will need access to the internet to download the required packages from the repositories. When you upgrade, can you post the output of the log to the thread so we can review the errors? You can check the /usr/local/nagiosxi/tmp/upgrade.log directory for this log as well.
The server will need access to the internet to download the required packages from the repositories. When you upgrade, can you post the output of the log to the thread so we can review the errors? You can check the /usr/local/nagiosxi/tmp/upgrade.log directory for this log as well.
You do not have the required permissions to view the files attached to this post.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
RebeccaIlene
- Posts: 164
- Joined: Tue Apr 02, 2019 8:38 pm
Re: Nagios XI updates failing
Hi Benjamin,
Thanks for checking this.
Here is the log details:
---- Starting Nagios XI Backup ----
No entry for terminal type "unknown";
using dumb terminal settings.
Backing up Nagios Core...
tar: Removing leading `/' from member names
tar: /usr/local/nagios/var/service-perfdata: file changed as we read it
tar: /usr/local/nagios/var/rw/nagios.qh: socket ignored
tar: /usr/local/nagios/var/ndo.sock: socket ignored
tar: /usr/local/nagios/var/host-perfdata: file changed as we read it
tar: /usr/local/nagios/var/nagios.log: file changed as we read it
tar: /usr/local/nagios/var: file changed as we read it
Backing up Nagios XI...
tar: Removing leading `/' from member names
Backing up MRTG...
tar: Removing leading `/' from member names
Backing up the SNMP directories
tar: Removing leading `/' from member names
tar: Removing leading `/' from member names
Backing up NRDP...
tar: Removing leading `/' from member names
Backing up Nagvis...
tar: Removing leading `/' from member names
Backing up nagios user home dir...
tar: Removing leading `/' from member names
Backing up MySQL databases...
mysqldump: Got error: 144: "Table './nagios/nagios_logentries' is marked as crashed and last (automatic?) repair failed" when using LOCK TABLES
Error backing up MySQL database 'nagios' - check the password in this script!
Thanks for checking this.
Here is the log details:
---- Starting Nagios XI Backup ----
No entry for terminal type "unknown";
using dumb terminal settings.
Backing up Nagios Core...
tar: Removing leading `/' from member names
tar: /usr/local/nagios/var/service-perfdata: file changed as we read it
tar: /usr/local/nagios/var/rw/nagios.qh: socket ignored
tar: /usr/local/nagios/var/ndo.sock: socket ignored
tar: /usr/local/nagios/var/host-perfdata: file changed as we read it
tar: /usr/local/nagios/var/nagios.log: file changed as we read it
tar: /usr/local/nagios/var: file changed as we read it
Backing up Nagios XI...
tar: Removing leading `/' from member names
Backing up MRTG...
tar: Removing leading `/' from member names
Backing up the SNMP directories
tar: Removing leading `/' from member names
tar: Removing leading `/' from member names
Backing up NRDP...
tar: Removing leading `/' from member names
Backing up Nagvis...
tar: Removing leading `/' from member names
Backing up nagios user home dir...
tar: Removing leading `/' from member names
Backing up MySQL databases...
mysqldump: Got error: 144: "Table './nagios/nagios_logentries' is marked as crashed and last (automatic?) repair failed" when using LOCK TABLES
Error backing up MySQL database 'nagios' - check the password in this script!
-
benjaminsmith
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: Nagios XI updates failing
Hi Rebecca,
Thanks for posting the upgrade log. The log entries table in the database is corrupted, log into the shell as root and run the following command:
Then try running the upgrade again. If you get any errors please post the log again.
Document
Repairing the Nagios XI Database
Thanks for posting the upgrade log. The log entries table in the database is corrupted, log into the shell as root and run the following command:
Code: Select all
/usr/local/nagiosxi/scripts/repair_databases.sh
Document
Repairing the Nagios XI Database
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
RebeccaIlene
- Posts: 164
- Joined: Tue Apr 02, 2019 8:38 pm
Re: Nagios XI updates failing
Hi Benjamin,
Have tried to repair the database as suggested. There was a recent update for 5.6.10 and this has successfully been updated.
However, it still shows that 5.6.5 is the latest update and whenever we login it comes up stating that the Nagios has to be updated.
Please find attached screenshot. Not sure what is causing this. Can you please suggest?
Regards,
Rebecca Murray
Have tried to repair the database as suggested. There was a recent update for 5.6.10 and this has successfully been updated.
However, it still shows that 5.6.5 is the latest update and whenever we login it comes up stating that the Nagios has to be updated.
Please find attached screenshot. Not sure what is causing this. Can you please suggest?
Regards,
Rebecca Murray
You do not have the required permissions to view the files attached to this post.
-
benjaminsmith
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: Nagios XI updates failing
Hi Rebecca,
Thanks for posting the screenshot and it does show that the latest version has been installed (5.6.10). However, the dashlet is showing that the latest version is 5.6.5, and the last update check was on 11/2/2020.
It looks like the XI server may not be able to contact our license server (api.nagios.com). Also, check the system time on the server as it may be
incorrect
Changing the System Time
Thanks for posting the screenshot and it does show that the latest version has been installed (5.6.10). However, the dashlet is showing that the latest version is 5.6.5, and the last update check was on 11/2/2020.
It looks like the XI server may not be able to contact our license server (api.nagios.com). Also, check the system time on the server as it may be
incorrect
Changing the System Time
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
RebeccaIlene
- Posts: 164
- Joined: Tue Apr 02, 2019 8:38 pm
Re: Nagios XI updates failing
Hi Benjamin,
Thank you for your suggestions. Have verified the time zone and telnet "api.nagios.com" on the server giving the port at 443.
Please let me know if this is not the correct port.
We have also restarted the server to check if this may fix it, but no difference.
Regards,
Rebecca Murray
Thank you for your suggestions. Have verified the time zone and telnet "api.nagios.com" on the server giving the port at 443.
Please let me know if this is not the correct port.
We have also restarted the server to check if this may fix it, but no difference.
Regards,
Rebecca Murray
-
benjaminsmith
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: Nagios XI updates failing
Hi Rebecca,
You mentioned that you have a proxy enabled, so it's likely not connecting properly, but let's reset the upgrade status in the web interface and verify that this is not the issue. You can follow the instructions on the following KB article:
Nagios XI - Reset Upgrade Status In Web Interface
Once this is reset, check the updates page again.
Next, run the following curl command and post the output to the thread.
You mentioned that you have a proxy enabled, so it's likely not connecting properly, but let's reset the upgrade status in the web interface and verify that this is not the issue. You can follow the instructions on the following KB article:
Nagios XI - Reset Upgrade Status In Web Interface
Once this is reset, check the updates page again.
Next, run the following curl command and post the output to the thread.
Code: Select all
curl -k -L -v https://api.nagios.com
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Be sure to check out our Knowledgebase for helpful articles and solutions!