diff --git a/src/im/InformationManager.cc b/src/im/InformationManager.cc index d5614b9ec4..d29f1d143b 100644 --- a/src/im/InformationManager.cc +++ b/src/im/InformationManager.cc @@ -143,8 +143,6 @@ void InformationManager::timer_action() time_t now; ostringstream oss; - struct stat sb; - set<int> discovered_hosts; set<int>::iterator it; @@ -180,14 +178,6 @@ void InformationManager::timer_action() return; } - if (stat(remotes_location.c_str(), &sb) == -1) - { - sb.st_mtime = 0; - - NebulaLog::log("InM",Log::ERROR,"Could not stat remotes directory, " - "will not update remotes."); - } - for(it=discovered_hosts.begin();it!=discovered_hosts.end();it++) { host = hpool->get(*it,true); @@ -255,6 +245,7 @@ void InformationManager::timer_action() { bool update_remotes = false; + //Force remotes update if the host has never been monitored. if (host->get_last_monitored() == 0) { update_remotes = true;