Page 1 of 1

how to clear "check for updates"

Posted: Thu Jan 10, 2013 2:19 pm
by david_sloboda
I have a remote host running Nagios XI that is behind a proxy and has other issues.
I do not want this host checking for updates automatically.
When the host ran Nagios XI 2011 r3.3 this worked correctly.

I upgraded the host to Nagios XI 2012 r1.3 today.
The upgrade worked correctly.

On nagiosadmin login the host now (as per attached screen capture) shows the popup indicating a new release is available.

Code: Select all

Update Check Problem: Last update check failed.
Latest Available Version:	2012R1.1
Installed Version:	       2012R1.3
Last Update Check:	2013-01-10 20:13:03
I have set the Nagios XI server to stop checking for updates Admin > System Config > Manage System Config
I have cleared the browser session cache with SHIFT + CTRL + R
I have run
service nagios stop
service nagios start

How do I clear the server flag that still thinks 2012R1.1 is a new release?

Thank you,
David Sloboda

Re: how to clear "check for updates"

Posted: Thu Jan 10, 2013 2:38 pm
by abrist
Have you logged out and back in once?

If so, try the following:

Code: Select all

psql nagiosxi nagiosxi
UPDATE xi_options SET value=1 WHERE name='last_update_check_succeeded';
\q
It will fix up the flag in the flag in the db. Just make sure to log out and then back in before you test if the update notification has been removed.

Re: how to clear "check for updates"

Posted: Thu Jan 10, 2013 3:15 pm
by david_sloboda
Thank you for your response.
I have indeed logged out and logged back in again.
I have cleared all history from the browser and all cached data. I have shut off the web browser and restarted it.
I have run the psql command as shown below.
The error persists.

There is an icon "information and alerts" in the lower right hand corner of the GUI.
I am wondering if that icon is running a parallel "update check"

How do I clear the server flag that still thinks 2012 r1.1 is a new release?
How do I tell the server that the installed version 2012 r1.3 is the Latest Available Version? That would solve the issue.

There is also in the GUI lower left hand corner a link "check for updates"
This takes me to http://www.nagios.com/checkforupdates/?...
which says that Nagios XI is up-to-date.
It appears this does not change the setting on the Nagios XI host.

Code: Select all

root@host ~# psql nagiosxi nagiosxi
Welcome to psql 8.1.23, the PostgreSQL interactive terminal.

Type:  \copyright for distribution terms
       \h for help with SQL commands
       \? for help with psql commands
       \g or terminate with semicolon to execute query
       \q to quit

nagiosxi=> UPDATE xi_options SET value=1 WHERE name='last_update_check_succeeded';
UPDATE 1
nagiosxi=> \q
root@host ~# 
Thank you,
David Sloboda

Re: how to clear "check for updates"

Posted: Thu Jan 10, 2013 3:37 pm
by scottwilkerson
If you setup the proxy settings in Admin -> Proxy Configuration

Then, Admin -> Check For Updates -> Check For Updates Now should get it up to date.

Re: how to clear "check for updates"

Posted: Thu Jan 10, 2013 4:45 pm
by david_sloboda
enabling the proxy, including the checkbox "Enable Proxy For Update Checks," has fixed the notifications.
The "Check For Updates" now shows the host as up to date.

Thank you for the time and attention.
I appreciate it.
David Sloboda