mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-22 18:50:08 +03:00
im-collectd: the core only sends updates the first time the host is monitored.
This commit is contained in:
parent
9146b2ef35
commit
0b818bd373
@ -98,8 +98,6 @@ int InformationManager::start()
|
||||
return -1;
|
||||
}
|
||||
|
||||
utime(remotes_location.c_str(), 0);
|
||||
|
||||
NebulaLog::log("InM",Log::INFO,"Starting Information Manager...");
|
||||
|
||||
pthread_attr_init (&pattr);
|
||||
@ -257,8 +255,7 @@ void InformationManager::timer_action()
|
||||
{
|
||||
bool update_remotes = false;
|
||||
|
||||
if ((sb.st_mtime != 0) &&
|
||||
(sb.st_mtime > host->get_last_monitored()))
|
||||
if (host->get_last_monitored() == 0)
|
||||
{
|
||||
update_remotes = true;
|
||||
}
|
||||
|
@ -292,8 +292,8 @@ int ObjectXML::xpath(unsigned long long& value, const char * xpath_expr,
|
||||
|
||||
int ObjectXML::xpath(time_t& value, const char * xpath_expr, const time_t& def)
|
||||
{
|
||||
int int_val;
|
||||
int int_def = static_cast<time_t>(def);
|
||||
unsigned long long int_val;
|
||||
unsigned long long int_def = static_cast<time_t>(def);
|
||||
int rc;
|
||||
|
||||
rc = xpath(int_val, xpath_expr, int_def);
|
||||
|
Loading…
x
Reference in New Issue
Block a user