Upgrade to 5.3 screws up commands definition

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
rajasegar
Posts: 1018
Joined: Sun Mar 30, 2014 10:49 pm

Upgrade to 5.3 screws up commands definition

Post 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$
}
5 x Nagios 5.6.9 Enterprise Edition
RHEL 6 & 7
rrdcached & ramdisk optimisation
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Upgrade to 5.3 screws up commands definition

Post 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".
Be sure to check out our Knowledgebase for helpful articles and solutions!
avandemore
Posts: 1597
Joined: Tue Sep 27, 2016 4:57 pm

Re: Upgrade to 5.3 screws up commands definition

Post 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.
Previous Nagios employee
rajasegar
Posts: 1018
Joined: Sun Mar 30, 2014 10:49 pm

Re: Upgrade to 5.3 screws up commands definition

Post 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.
5 x Nagios 5.6.9 Enterprise Edition
RHEL 6 & 7
rrdcached & ramdisk optimisation
Locked