1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-16 22:50:10 +03:00

F #3859: Small fixes in monitoring (#4686)

This commit is contained in:
Pavel Czerný 2020-05-11 10:35:13 +02:00 committed by GitHub
parent c8251dc733
commit 54d60c4223
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 3 deletions

View File

@ -847,6 +847,10 @@ void HostShareNUMA::set_monitorization(Template &ht, unsigned int _vt)
node.set_memory();
}
ht.erase("CORE");
ht.erase("HUGEPAGE");
ht.erase("MEMORY_NODE");
}
// -----------------------------------------------------------------------------

View File

@ -531,11 +531,11 @@ void InformationManager::_vm_state(unique_ptr<Message<OpenNebulaMessages>> msg)
LCMAction::Actions action;
if ( state_str == "POWEROFF" )
if ( missing_state == "POWEROFF" )
{
action = LCMAction::MONITOR_POWEROFF;
}
else if ( state_str == "UNKNOWN" )
else if ( missing_state == "UNKNOWN" )
{
action = LCMAction::MONITOR_DONE;
}
@ -546,7 +546,7 @@ void InformationManager::_vm_state(unique_ptr<Message<OpenNebulaMessages>> msg)
NebulaLog::debug("InM", "VM_STATE update from host: " +
to_string(msg->oid()) + ". VM id: " + to_string(vm->get_oid()) +
", state: " + state_str);
", state: " + missing_state);
lcm->trigger(action, vm->get_oid());