Page 1 of 1

Offline upgrade

Posted: Fri Dec 16, 2016 7:38 pm
by CFT6Server
We are upgrading Nagios XI with the offline option. Seems to be ok. I am looking through the logs and it seems there are number of wizards that refer to offline folders that aren't there etc. Is this normal and expected? or should I be downloading these manually?

As an example:

Code: Select all

Installing 'wizards/windowswmi.zip'
TMPNAME: 5i4et
Archive:  /tmp/nagiosxi/subcomponents/xiwizards/wizards/windowswmi.zip
23620045450418ce262a53b894422b3ca4f26d4a
   creating: windowswmi/
  inflating: windowswmi/CHANGES.TXT
  inflating: windowswmi/config.xml
  inflating: windowswmi/install.sh
   creating: windowswmi/plugins/
  inflating: windowswmi/plugins/check_wmi_plus.conf
   creating: windowswmi/plugins/check_wmi_plus.d/
  inflating: windowswmi/plugins/check_wmi_plus.d/CommandExamples.chtml
  inflating: windowswmi/plugins/check_wmi_plus.d/README.txt
  inflating: windowswmi/plugins/check_wmi_plus.d/WarnCritExamples.chtml
  inflating: windowswmi/plugins/check_wmi_plus.d/check_sql.ini
  inflating: windowswmi/plugins/check_wmi_plus.d/check_sql_express.ini
  inflating: windowswmi/plugins/check_wmi_plus.d/check_wmi_plus.ini
  inflating: windowswmi/plugins/check_wmi_plus.d/checkexchange.ini
  inflating: windowswmi/plugins/check_wmi_plus.d/checkiis.ini
  inflating: windowswmi/plugins/check_wmi_plus.d/events.ini
  inflating: windowswmi/plugins/check_wmi_plus.d/samples.ini
  inflating: windowswmi/plugins/check_wmi_plus.ini
  inflating: windowswmi/plugins/check_wmi_plus.pl
  inflating: windowswmi/sanity.sh
   creating: windowswmi/templates/
  inflating: windowswmi/templates/windowswmi.cfg
  inflating: windowswmi/windowswmi.inc.php
windowswmi
WIZARD NAME: windowswmi
CMD=grep register_configwizard /usr/local/nagiosxi/tmp/5i4et/windowswmi/windowswmi.inc.php | wc -l
1
OUT=1
Wizard looks ok...
CMD: cp -rf /usr/local/nagiosxi/tmp/5i4et/windowswmi /usr/local/nagiosxi/html/includes/configwizards/
CMD: rm -rf /usr/local/nagiosxi/tmp/5i4et
PROCESSING CONFIG FILE /usr/local/nagiosxi/html/includes/configwizards/windowswmi/config.xml
PLUGIN:
PLUGIN ATTRIBUTE filename => check_wmi_plus.ini
COPYING PLUGIN: /usr/local/nagiosxi/html/includes/configwizards/windowswmi/plugins/check_wmi_plus.ini
             TO: /usr/local/nagios/libexec/check_wmi_plus.ini
PLUGIN:
PLUGIN ATTRIBUTE filename => check_wmi_plus.pl
COPYING PLUGIN: /usr/local/nagiosxi/html/includes/configwizards/windowswmi/plugins/check_wmi_plus.pl
             TO: /usr/local/nagios/libexec/check_wmi_plus.pl
PLUGIN:
PLUGIN ATTRIBUTE filename => check_wmi_plus.conf
COPYING PLUGIN: /usr/local/nagiosxi/html/includes/configwizards/windowswmi/plugins/check_wmi_plus.conf
             TO: /usr/local/nagios/libexec/check_wmi_plus.conf
TEMPLATE:
TEMPLATE ATTRIBUTE filename => windowswmi.cfg
COPYING TEMPLATE: /usr/local/nagiosxi/html/includes/configwizards/windowswmi/templates/windowswmi.cfg
              TO: /usr/local/nagios/etc/import/configwizard-windowswmi.cfg
SKIPPING NAGIOS CORE RESTART...
CHECKING FOR INSTALL SCRIPT '/usr/local/nagiosxi/html/includes/configwizards/windowswmi/install.sh'...
RUNNING INSTALL SCRIPT...
cp: cannot stat `/tmp/nagiosxi/packages/offline_install/Downloads/wmicinstall.py': No such file or directory
chmod: cannot access `wmicinstall.py': No such file or directory
/usr/local/nagiosxi/html/includes/configwizards/windowswmi/install.sh: line 52: ./wmicinstall.py: No such file or directory
INSTALL SCRIPT FINISHED. RESULT='0'
CMD: . /usr/local/nagiosxi/var/xi-sys.cfg && chown -R $nagiosuser /usr/local/nagiosxi/html/includes/configwizards/windowswmi
I will see these lines referring to an offline_install folder:
cp: cannot stat `/tmp/nagiosxi/packages/offline_install/Downloads/wmicinstall.py': No such file or directory
chmod: cannot access `wmicinstall.py': No such file or directory

Is this a concern for upgrades?

Here's another:

Code: Select all

CMD: cp -rf /usr/local/nagiosxi/tmp/mn3bd/windowsserver /usr/local/nagiosxi/html/includes/configwizards/
CMD: rm -rf /usr/local/nagiosxi/tmp/mn3bd
PROCESSING CONFIG FILE /usr/local/nagiosxi/html/includes/configwizards/windowsserver/config.xml
CONFIG FILE DOESN'T EXIST
CHECKING FOR INSTALL SCRIPT '/usr/local/nagiosxi/html/includes/configwizards/windowsserver/install.sh'...
INSTALL SCRIPT DOES NOT EXIST.
CMD: . /usr/local/nagiosxi/var/xi-sys.cfg && chown -R $nagiosuser /usr/local/nagiosxi/html/includes/configwizards/windowsserver

Re: Offline upgrade

Posted: Mon Dec 19, 2016 10:27 am
by avandemore
It's not a concern unless you want to use those components. You can add, update and manage those details at any point via:

https://assets.nagios.com/downloads/nag ... izards.pdf

Re: Offline upgrade

Posted: Thu Dec 22, 2016 2:15 pm
by CFT6Server
Assuming that we are using these wizards, does this means it isn't getting upgraded? Also the log refers to an offline path. Can we predownload and include them for offline upgrade instead of going through the site and redownloading and upgrading all the wizards manually.

Re: Offline upgrade

Posted: Thu Dec 22, 2016 3:13 pm
by avandemore
Wizards/components are bundled into the installer. If they have an upgrade available which is not in the installer then it's going to have to be done manually.

I can put in a Feature Request if you like for bulk processing of handling this, but it's not likely to be addressed immediately. That a complicated thing updating so many items as some of them are interdependent and a lot can go wrong.

Re: Offline upgrade

Posted: Thu Dec 22, 2016 4:16 pm
by CFT6Server
I don't really need to upgrade the wizards, but looks like the offline upgrade process does go through its own updates of the components, so I am just trying to see if this impacts functionality as we would have to review the logs of the upgrade and go through it line by line to see which component gave errors.

So if messages like
CHECKING FOR INSTALL SCRIPT '/usr/local/nagiosxi/html/includes/configwizards/windowsserver/install.sh'...
INSTALL SCRIPT DOES NOT EXIST.

Then I guess it is safe to ignore?

For the WMI reference, looks like it does extract some files and copies the plugin files, just not sure if this is expected.... so does this mean the WMI wizard didn't completed?
CHECKING FOR INSTALL SCRIPT '/usr/local/nagiosxi/html/includes/configwizards/windowswmi/install.sh'...
RUNNING INSTALL SCRIPT...
cp: cannot stat `/tmp/nagiosxi/packages/offline_install/Downloads/wmicinstall.py': No such file or directory
chmod: cannot access `wmicinstall.py': No such file or directory
/usr/local/nagiosxi/html/includes/configwizards/windowswmi/install.sh: line 52: ./wmicinstall.py: No such file or directory
INSTALL SCRIPT FINISHED. RESULT='0'

Re: Offline upgrade

Posted: Thu Dec 22, 2016 4:19 pm
by avandemore
Yes it's safe to ignore.

The thing that bites a few is they don't understand each upgrade is going to overwrite those things. So if you've upgraded or changed out default things, they can get restored to default in an upgrade.

Re: Offline upgrade

Posted: Thu Dec 22, 2016 4:32 pm
by CFT6Server
Thanks for confirming.

Re: Offline upgrade

Posted: Thu Dec 22, 2016 4:49 pm
by avandemore
No problem, let us know if you have further issues. Are we ok to lock this thread?

Re: Offline upgrade

Posted: Thu Dec 22, 2016 5:18 pm
by CFT6Server
Yes and thanks.