1
0
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:
Jaime Melis 2013-10-15 17:55:20 +02:00
parent 9146b2ef35
commit 0b818bd373
2 changed files with 3 additions and 6 deletions

View File

@ -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;
}

View File

@ -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);