diff --git a/share/doc/xsd/host.xsd b/share/doc/xsd/host.xsd index f6565baec4..a504583829 100644 --- a/share/doc/xsd/host.xsd +++ b/share/doc/xsd/host.xsd @@ -13,6 +13,8 @@ ERROR = 3 An error ocurrer while monitoring the host DISABLED = 4 The host is disabled won't be monitored MONITORING_ERROR = 5 Monitoring the host (from error) + MONITORING_INIT = 6 Monitoring the host (from init) + MONITORING_DISABLED = 7 Monitoring the host (from disabled) --> diff --git a/src/oca/java/src/org/opennebula/client/host/Host.java b/src/oca/java/src/org/opennebula/client/host/Host.java index e76f54e5e4..b81dd1ea79 100644 --- a/src/oca/java/src/org/opennebula/client/host/Host.java +++ b/src/oca/java/src/org/opennebula/client/host/Host.java @@ -37,10 +37,10 @@ public class Host extends PoolElement{ private static final String[] HOST_STATES = {"INIT", "MONITORING_MONITORED", "MONITORED", "ERROR", "DISABLED", - "MONITORING_ERROR"}; + "MONITORING_ERROR", "MONITORING_INIT", "MONITORING_DISABLED"}; private static final String[] SHORT_HOST_STATES = - {"init", "update", "on", "err", "off", "retry"}; + {"init", "update", "on", "err", "off", "retry", "init", "off"}; /** * Creates a new Host representation. diff --git a/src/oca/ruby/opennebula/host.rb b/src/oca/ruby/opennebula/host.rb index 70a913da21..58fe274c55 100644 --- a/src/oca/ruby/opennebula/host.rb +++ b/src/oca/ruby/opennebula/host.rb @@ -33,7 +33,7 @@ module OpenNebula :monitoring => "host.monitoring" } - HOST_STATES=%w{INIT MONITORING_MONITORED MONITORED ERROR DISABLED MONITORING_ERROR} + HOST_STATES=%w{INIT MONITORING_MONITORED MONITORED ERROR DISABLED MONITORING_ERROR MONITORING_INIT MONITORING_DISABLED} SHORT_HOST_STATES={ "INIT" => "init", diff --git a/src/ozones/Server/public/js/ozones.js b/src/ozones/Server/public/js/ozones.js index ee70bb595c..a2d6de841e 100644 --- a/src/ozones/Server/public/js/ozones.js +++ b/src/ozones/Server/public/js/ozones.js @@ -54,7 +54,9 @@ var oZones = { "MONITORED", "ERROR", "DISABLED", - "MONITORING_ERROR"][value]); + "MONITORING_ERROR", + "MONITORING_INIT", + "MONITORING_DISABLED"][value]); break; case "HOST_SIMPLE": case "host_simple": @@ -63,7 +65,9 @@ var oZones = { "ON", "ERROR", "OFF", - "RETRY"][value]); + "RETRY", + "INIT", + "OFF"][value]); break; case "VM": case "vm": diff --git a/src/sunstone/public/js/opennebula.js b/src/sunstone/public/js/opennebula.js index cb928a8cb7..8a0eb448a8 100644 --- a/src/sunstone/public/js/opennebula.js +++ b/src/sunstone/public/js/opennebula.js @@ -62,7 +62,9 @@ var OpenNebula = { "MONITORED", "ERROR", "DISABLED", - "MONITORING_ERROR"][value]); + "MONITORING_ERROR", + "MONITORING_INIT", + "MONITORING_DISABLED"][value]); break; case "HOST_SIMPLE": case "host_simple": @@ -71,7 +73,9 @@ var OpenNebula = { "ON", "ERROR", "OFF", - "RETRY"][value]); + "RETRY", + "INIT", + "OFF"][value]); break; case "VM": case "vm":