Commits

Ruwan Linton committed b490cbe

Minor fixes to Marek's changes on the Zabbix version update

Comments (0)

Files changed (2)

modules/uterm/src/main/java/org/adroitlogic/ultraesb/terminal/commands/MonitoringCommands.java

         @CommandOption(
             shortForm = "v",
             longForm = "version",
-            description = "to choose the version of the Zabbix installation",
+            description = "to choose the version of the Zabbix installation (defaults to version 2.2)",
             argument = true) String version) throws TerminalException {
 
         logger.debug("Start :: zabbixRegister with zabbix url : " + zabbixURL + " with username : " + username);

modules/uterm/src/main/java/org/adroitlogic/ultraesb/uz/ZabbixRegistrar.java

                 } else if (major == 2) {
                         logger.info("Zabbix version found to be {}", this.zabbixVersion);
                 } else {
-                	final String errMsg = "Supported Zabbix versions are: 1.8, 2.0, 2.2. The ESB might not work with the installed version " + this.zabbixVersion + "!";
-                    logger.warn(errMsg);
+                    logger.warn("Supported Zabbix versions are: 1.8, 2.0, 2.2. The ESB might not work with the installed version {}!",
+                            this.zabbixVersion);
                 }
             }
         } catch (UZException e) {