This is a cache of https://support.nagios.com/kb/article/nagios-xi-reset-upgrade-status-in-web-interface-851.html. It is a snapshot of the page at 2025-05-14T00:09:15.745+0000.
Nagios <strong>xi</strong> - Reset Upgrade Status In Web Interface
Home » Categories » Multiple Categories

Nagios xi - Reset Upgrade Status In Web Interface

Problem Description

When upgrading Nagios xi using the web interface the upgrade progress may stall with the message "Upgrade in progress". Sometimes you will need to clear this message manually due to unforeseen circumstances, this KB article explains how to clear the message.

 

 

Requirements

There are two pieces of information you require to execute the command in this KB article:

  1. Database Type
  2. Database Password

 

Database Type

Nagios xi versions before 5.x used a PostgreSQL database for storing the Nagios xi preferences. In Nagios xi 5.x this was moved over to the MySQL/MariaDB database. The command you will execute in this KB article differs between PostgreSQL and MySQL/MariaDB. To determine which one you are using execute the following command your Nagios xi server:

grep dbtype /usr/local/nagiosxi/html/config.inc.php

Which should output one of the following:

For MySQL -

$cfg['dbtype'] = ''; // this setting is no longer used - use settings below
        "dbtype" => 'mysql',
        "dbtype" => 'mysql',
        "dbtype" => 'mysql',
or

For PostgreSQL -

$cfg['dbtype'] = ''; // this setting is no longer used - use settings below
        "dbtype" => 'pgsql',
        "dbtype" => 'mysql',
        "dbtype" => 'mysql',

 

Database Password

The "nagiosxi" database has a username and password associated with it. The default username is "nagiosxi" and the default password is "n@gweb". If you have changed the password you will need to refer to the config.inc.php file, open it in the vi editor with the following command:

vi /usr/local/nagiosxi/html/config.inc.php

 

Locate the following nagiosxi section:

    "nagiosxi" => array(
        "dbtype" => 'mysql',
        "dbserver" => '',
        "user" => 'nagiosxi',
        "pwd" => 'n@gweb',
        "db" => 'nagiosxi',

 

You can see the user and pwd fields contain the values you will require in the following command.

 

 

Reset Upgrade Status

The following command will reset the upgrade status on Nagios xi (using the default username and password listed above):

MySQL/MariaDB:

mysql -u'nagiosxi' -p'n@gweb' nagiosxi -e "update xi_commands set status_code = '2' where command = '1120';"

 

PostgreSQL:

psql -U nagiosxi -W -d nagiosxi -c "update xi_commands set status_code = '2' where command = '1120'"

You will be prompted for the password at the command line.

 

Once the command has been executed you can navigate to the web interface Admin > System Information > Check For Updates and the upgrade status will now be reset.

 

 

Final Thoughts

For any support related questions please visit the Nagios Support Forums at:

http://support.nagios.com/forum/



Special Offer For Knowledgebase Visitors! Get a huge discount on Nagios Log Server by clicking below.

Get 60% Off Nagios Log Server!

Did you know? Nagios provides complete monitoring of: Windows, Linux, UNIX, Servers, Websites, SNMP, DHCP, DNS, Email, Storage, Files, Apache, IIS, EC2, and more!

3 (2)
Article Rating (2 Votes)
Rate this article
  • Icon PDFExport to PDF
  • Icon MS-WordExport to MS Word
Attachments Attachments
There are no attachments for this article.
Related Articles RSS Feed
Nagios xi - How To Use CA Certificates With check_ldaps Plugin
Viewed 12609 times since Tue, Jul 26, 2016
Nagios xi - Some BPI Checks Show "Unknown BPI Group Index" After Upgrade
Viewed 4586 times since Wed, Sep 18, 2019
Nagios xi - ERROR: unable to open include file: /etc/mrtg/conf.d/xxxxxxx.cfg
Viewed 8468 times since Wed, Jun 1, 2016
Nagios xi - Host Still Visible After Deletion (Ghost Hosts)
Viewed 12373 times since Tue, Jan 27, 2015
Nagios xi - Configuration Applies, No Changes Take Place
Viewed 8683 times since Tue, Jan 27, 2015
Nagios xi - Scheduled Reports Not Running
Viewed 6035 times since Thu, Aug 10, 2017
Nagios xi - Empty Screen for Wizard, Component, Dashlet
Viewed 8076 times since Wed, Jan 27, 2016
Nagios xi - Event Data Is Stale
Viewed 5984 times since Wed, Jan 27, 2016
Nagios xi - Resetting The nagiosadmin Password
Viewed 46825 times since Mon, Jan 25, 2016
Nagios xi - CentOS 6 Installation Problems xi 2011R1.7 2011R1.8
Viewed 5214 times since Tue, Feb 2, 2016