query1.Table = "comments";
} else {
query1.Table = "commenthistory";
- fields1->Set("icinga_node", IcingaApplication::GetInstance()->GetIcingaNodeName());
+ fields1->Set("icinga_node", IcingaApplication::GetInstance()->GetNodeName());
}
query1.Type = DbQueryInsert;
query1.Category = DbCatComment;
query1.Table = "scheduleddowntime";
} else {
query1.Table = "downtimehistory";
- fields1->Set("icinga_node", IcingaApplication::GetInstance()->GetIcingaNodeName());
+ fields1->Set("icinga_node", IcingaApplication::GetInstance()->GetNodeName());
}
query1.Type = DbQueryInsert;
query1.Category = DbCatDowntime;
fields1->Set("comment_data", comment);
fields1->Set("is_sticky", type == AcknowledgementSticky ? 1 : 0);
fields1->Set("end_time", DbValue::FromTimestamp(end_time));
- fields1->Set("icinga_node", IcingaApplication::GetInstance()->GetIcingaNodeName());
+ fields1->Set("icinga_node", IcingaApplication::GetInstance()->GetNodeName());
fields1->Set("instance_id", 0); /* DbConnection class fills in real ID */
query1.Fields = fields1;
fields1->Set("escalated", 0);
fields1->Set("contacts_notified", static_cast<long>(users.size()));
- fields1->Set("icinga_node", IcingaApplication::GetInstance()->GetIcingaNodeName());
+ fields1->Set("icinga_node", IcingaApplication::GetInstance()->GetNodeName());
fields1->Set("instance_id", 0); /* DbConnection class fills in real ID */
query1.Fields = fields1;
fields1->Set("check_source", cr->GetCheckSource());
}
- fields1->Set("icinga_node", IcingaApplication::GetInstance()->GetIcingaNodeName());
+ fields1->Set("icinga_node", IcingaApplication::GetInstance()->GetNodeName());
fields1->Set("instance_id", 0); /* DbConnection class fills in real ID */
query1.Fields = fields1;
fields1->Set("object_id", service); // added in 1.10 see #4754
fields1->Set("logentry_type", type);
fields1->Set("logentry_data", buffer);
- fields1->Set("icinga_node", IcingaApplication::GetInstance()->GetIcingaNodeName());
+ fields1->Set("icinga_node", IcingaApplication::GetInstance()->GetNodeName());
fields1->Set("instance_id", 0); /* DbConnection class fills in real ID */
fields1->Set("percent_state_change", service->GetFlappingCurrent());
fields1->Set("low_threshold", service->GetFlappingThreshold());
fields1->Set("high_threshold", service->GetFlappingThreshold());
- fields1->Set("icinga_node", IcingaApplication::GetInstance()->GetIcingaNodeName());
+ fields1->Set("icinga_node", IcingaApplication::GetInstance()->GetNodeName());
fields1->Set("instance_id", 0); /* DbConnection class fills in real ID */
fields1->Set("output", CompatUtility::GetCheckResultOutput(cr));
fields1->Set("long_output", CompatUtility::GetCheckResultLongOutput(cr));
fields1->Set("perfdata", CompatUtility::GetCheckResultPerfdata(cr));
- fields1->Set("icinga_node", IcingaApplication::GetInstance()->GetIcingaNodeName());
+ fields1->Set("icinga_node", IcingaApplication::GetInstance()->GetNodeName());
fields1->Set("instance_id", 0); /* DbConnection class fills in real ID */
fields1->Set("service_object_id", service);
fields1->Set("end_time", DbValue::FromTimestamp(time_bag.first));
fields1->Set("end_time_usec", time_bag.second);
fields1->Set("command_object_id", service->GetEventCommand());
- fields1->Set("icinga_node", IcingaApplication::GetInstance()->GetIcingaNodeName());
+ fields1->Set("icinga_node", IcingaApplication::GetInstance()->GetNodeName());
fields1->Set("instance_id", 0); /* DbConnection class fills in real ID */
fields1->Set("command_type", CompatUtility::MapExternalCommandType(command));
fields1->Set("command_name", command);
fields1->Set("command_args", boost::algorithm::join(arguments, ";"));
- fields1->Set("icinga_node", IcingaApplication::GetInstance()->GetIcingaNodeName());
+ fields1->Set("icinga_node", IcingaApplication::GetInstance()->GetNodeName());
fields1->Set("instance_id", 0); /* DbConnection class fills in real ID */