mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-29 18:50:08 +03:00
Do not show success message when monitoring information cannot be
updated
This commit is contained in:
parent
aa21f31085
commit
0c2ca58795
@ -555,9 +555,10 @@ int Host::update_monitoring(SqlDB * db)
|
||||
return rc;
|
||||
|
||||
error_xml:
|
||||
db->free_str(sql_xml);
|
||||
error_str = "could not transform the Host to XML: ";
|
||||
error_str += sql_xml;
|
||||
|
||||
error_str = "could not transform the Host to XML.";
|
||||
db->free_str(sql_xml);
|
||||
|
||||
goto error_common;
|
||||
|
||||
|
@ -207,12 +207,13 @@ void MonitorThread::do_message()
|
||||
|
||||
hpool->update(host);
|
||||
|
||||
hpool->update_monitoring(host);
|
||||
if ( hpool->update_monitoring(host) == 0 )
|
||||
{
|
||||
oss << "Host " << host->get_name() << " (" << host->get_oid() << ")"
|
||||
<< " successfully monitored.";
|
||||
|
||||
oss << "Host " << host->get_name() << " (" << host->get_oid() << ")"
|
||||
<< " successfully monitored.";
|
||||
|
||||
NebulaLog::log("InM", Log::DEBUG, oss);
|
||||
NebulaLog::log("InM", Log::DEBUG, oss);
|
||||
}
|
||||
|
||||
host->unlock();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user