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:

awk '/"nagiosxi" => array\(/{getline;print}' /usr/local/nagiosxi/html/config.inc.php

Which should output one of the following:


"dbtype" => 'pgsql',

or

"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/

1 (1)
Article Rating (1 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 - Modifying The Contents Of /usr/local/nagios/etc
Viewed 1777 times since Tue, Jan 26, 2016
Nagios XI - Common Upgrade Failures And Solutions
Viewed 3637 times since Thu, Jun 29, 2017
ERROR: Please add the ’Optional’ channel to your Red Hat systems subscriptions
Viewed 11847 times since Tue, Jan 26, 2016
Nagios XI - Configuration Applies, but still get "Configuration File Is Out Of Date" Error
Viewed 1470 times since Tue, Jan 26, 2016
Nagios XI - How To Use CA Certificates With check_ldaps Plugin
Viewed 3007 times since Tue, Jul 26, 2016
Nagios XI - Windows Memory Usage - Physical
Viewed 6634 times since Tue, Jan 26, 2016
NDOUtils - Message Queue Exceeded
Viewed 6238 times since Thu, Jan 21, 2016
Converting PostgreSQL to MySQL for Nagios XI
Viewed 20443 times since Tue, Dec 6, 2016
Nagios XI - Problems Using Nagios XI With Proxies
Viewed 4901 times since Mon, Jan 25, 2016
Nagios XI - Uploaded plugin returns "/bin/bash^M: bad interpreter: No such file or directory"
Viewed 2309 times since Thu, Feb 25, 2016