Service::Ptr service = static_pointer_cast<Service>(GetObject());
/* service dependencies */
- Log(LogDebug, "ido", "service dependencies for '" + service->GetName() + "'");
+ Log(LogDebug, "db_ido", "service dependencies for '" + service->GetName() + "'");
DbQuery query_del1;
query_del1.Table = GetType()->GetTable() + "dependencies";
OnQuery(query_del1);
BOOST_FOREACH(const Service::Ptr& parent, service->GetParentServices()) {
- Log(LogDebug, "ido", "service parents: " + parent->GetName());
+ Log(LogDebug, "db_ido", "service parents: " + parent->GetName());
/* service dependencies */
Dictionary::Ptr fields1 = boost::make_shared<Dictionary>();
}
/* custom variables */
- Log(LogDebug, "ido", "service customvars for '" + service->GetName() + "'");
+ Log(LogDebug, "db_ido", "service customvars for '" + service->GetName() + "'");
DbQuery query_del2;
query_del2.Table = "customvariables";
String key;
Value value;
BOOST_FOREACH(boost::tie(key, value), customvars) {
- Log(LogDebug, "ido", "service customvar key: '" + key + "' value: '" + Convert::ToString(value) + "'");
+ Log(LogDebug, "db_ido", "service customvar key: '" + key + "' value: '" + Convert::ToString(value) + "'");
Dictionary::Ptr fields2 = boost::make_shared<Dictionary>();
fields2->Set("varname", Convert::ToString(key));
return;
if (!comment) {
- Log(LogWarning, "ido", "comment does not exist. not adding it.");
+ Log(LogWarning, "db_ido", "comment does not exist. not adding it.");
return;
}
- Log(LogDebug, "ido", "adding service comment (id = " + comment->Get("legacy_id") + ") for '" + service->GetName() + "'");
+ Log(LogDebug, "db_ido", "adding service comment (id = " + comment->Get("legacy_id") + ") for '" + service->GetName() + "'");
/* add the service comment */
AddCommentByType(service, comment);
/* add the hostcheck service comment to the host as well */
if (host->GetCheckService() == service) {
- Log(LogDebug, "ido", "adding host comment (id = " + comment->Get("legacy_id") + ") for '" + host->GetName() + "'");
+ Log(LogDebug, "db_ido", "adding host comment (id = " + comment->Get("legacy_id") + ") for '" + host->GetName() + "'");
AddCommentByType(host, comment);
}
}
fields1->Set("comment_type", 1);
fields1->Set("internal_comment_id", comment->Get("legacy_id"));
} else {
- Log(LogDebug, "ido", "unknown object type for adding comment.");
+ Log(LogDebug, "db_ido", "unknown object type for adding comment.");
return;
}
if (!host)
return;
- Log(LogDebug, "ido", "removing service comments for '" + service->GetName() + "'");
+ Log(LogDebug, "db_ido", "removing service comments for '" + service->GetName() + "'");
DbQuery query1;
query1.Table = "comments";
return;
if (!comment) {
- Log(LogWarning, "ido", "comment does not exist. not deleting it.");
+ Log(LogWarning, "db_ido", "comment does not exist. not deleting it.");
return;
}
- Log(LogDebug, "ido", "removing service comment (id = " + comment->Get("legacy_id") + ") for '" + service->GetName() + "'");
+ Log(LogDebug, "db_ido", "removing service comment (id = " + comment->Get("legacy_id") + ") for '" + service->GetName() + "'");
/* Status */
DbQuery query1;
return;
if (!downtime) {
- Log(LogWarning, "ido", "downtime does not exist. not adding it.");
+ Log(LogWarning, "db_ido", "downtime does not exist. not adding it.");
return;
}
- Log(LogDebug, "ido", "adding service downtime (id = " + downtime->Get("legacy_id") + ") for '" + service->GetName() + "'");
+ Log(LogDebug, "db_ido", "adding service downtime (id = " + downtime->Get("legacy_id") + ") for '" + service->GetName() + "'");
/* add the service downtime */
AddDowntimeByType(service, downtime);
/* add the hostcheck service downtime to the host as well */
if (host->GetCheckService() == service) {
- Log(LogDebug, "ido", "adding host downtime (id = " + downtime->Get("legacy_id") + ") for '" + host->GetName() + "'");
+ Log(LogDebug, "db_ido", "adding host downtime (id = " + downtime->Get("legacy_id") + ") for '" + host->GetName() + "'");
AddDowntimeByType(host, downtime);
}
}
fields1->Set("downtime_type", 1);
fields1->Set("internal_downtime_id", downtime->Get("legacy_id"));
} else {
- Log(LogDebug, "ido", "unknown object type for adding downtime.");
+ Log(LogDebug, "db_ido", "unknown object type for adding downtime.");
return;
}
if (!host)
return;
- Log(LogDebug, "ido", "removing service downtimes for '" + service->GetName() + "'");
+ Log(LogDebug, "db_ido", "removing service downtimes for '" + service->GetName() + "'");
DbQuery query1;
query1.Table = "scheduleddowntime";
return;
if (!downtime) {
- Log(LogWarning, "ido", "downtime does not exist. not adding it.");
+ Log(LogWarning, "db_ido", "downtime does not exist. not adding it.");
return;
}
- Log(LogDebug, "ido", "removing service downtime (id = " + downtime->Get("legacy_id") + ") for '" + service->GetName() + "'");
+ Log(LogDebug, "db_ido", "removing service downtime (id = " + downtime->Get("legacy_id") + ") for '" + service->GetName() + "'");
/* Status */
DbQuery query1;
return;
if (!downtime) {
- Log(LogWarning, "ido", "downtime does not exist. not updating it.");
+ Log(LogWarning, "db_ido", "downtime does not exist. not updating it.");
return;
}
- Log(LogDebug, "ido", "updating triggered service downtime (id = " + downtime->Get("legacy_id") + ") for '" + service->GetName() + "'");
+ Log(LogDebug, "db_ido", "updating triggered service downtime (id = " + downtime->Get("legacy_id") + ") for '" + service->GetName() + "'");
double now = Utility::GetTime();
unsigned long actual_start_time = static_cast<long>(now);
if (!host)
return;
- Log(LogDebug, "ido", "add acknowledgement for '" + service->GetName() + "'");
+ Log(LogDebug, "db_ido", "add acknowledgement for '" + service->GetName() + "'");
double now = Utility::GetTime();
unsigned long entry_time = static_cast<long>(now);
if (!host)
return;
- Log(LogDebug, "ido", "add notification for '" + service->GetName() + "'");
+ Log(LogDebug, "db_ido", "add notification for '" + service->GetName() + "'");
/* start and end happen at the same time */
double now = Utility::GetTime();