Page 1 of 1

Upgrade to 5.3 screws up commands definition

Posted: Wed Oct 12, 2016 9:47 pm
by rajasegar
The upgrade went and changed the commands and now lots of my services check is down.
This has never happened before.

5.2.9

Code: Select all

define command {
       command_name                  	check_xi_service_snmp_win_load
       command_line                  		$USER1$/check_snmp_load.pl -H $HOSTADDRESS$ $ARG1$  $ARG2$  $ARG3$  $ARG4$  $ARG5$  $ARG6$
}
5.3.0

Code: Select all

define command {
       command_name                  	check_xi_service_snmp_win_load
       command_line                  		$USER1$/check_snmp_load.pl -H $HOSTADDRESS$ $ARG1$
}

Re: Upgrade to 5.3 screws up commands definition

Posted: Thu Oct 13, 2016 9:59 am
by lmiltchev
You must have modified the "default" "check_xi_service_snmp_win_load" command in Nagios XI 5.2.9, prior to upgrading to 5.3.0...

This is the command definition on a "clean" fresh install of Nagios XI 5.2.9:

Code: Select all

define command {
       command_name                             check_xi_service_snmp_win_load
       command_line                             $USER1$/check_snmp_load.pl -H $HOSTADDRESS$ $ARG1$
}
The "default" commands, used by our wizards could, and most probably will be overwritten on upgrade! It is a good idea to use "custom" commands that won't be overwritten on upgrade, instead of modifying the "defaults".

Re: Upgrade to 5.3 screws up commands definition

Posted: Thu Oct 13, 2016 11:02 am
by avandemore
Hi rajasegar,

This is a known issue in major upgrades and there's a warning about it.
===================
XI 5.3.0 Updates
===================
NOTICE: This upgrade script will update ALL XI components, wizards, and dashlets
to the latest available versions. Before running this upgrade the currently
installed versions will be backed up to the /tmp directory.

Are you sure you want to continue? [y/N]
A major upgrade replaces all the wizards as well as other components. A more proactive approach to handling custom edited default commands is targeted for 5.4.0.

Re: Upgrade to 5.3 screws up commands definition

Posted: Thu Oct 13, 2016 8:03 pm
by rajasegar
avandemore wrote:Hi rajasegar,

This is a known issue in major upgrades and there's a warning about it.
===================
XI 5.3.0 Updates
===================
NOTICE: This upgrade script will update ALL XI components, wizards, and dashlets
to the latest available versions. Before running this upgrade the currently
installed versions will be backed up to the /tmp directory.

Are you sure you want to continue? [y/N]
A major upgrade replaces all the wizards as well as other components. A more proactive approach to handling custom edited default commands is targeted for 5.4.0.
Noted. Thanks for the update. A warning would be perfect.
Please close the thread.