Service::OnDowntimeTriggered.connect(boost::bind(&ServiceDbObject::TriggerDowntime, _1, _2));
/* History */
- Service::OnAcknowledgementSet.connect(boost::bind(&ServiceDbObject::AddAcknowledgement, _1, _2, _3, _4, _5, _6));
+ Service::OnAcknowledgementSet.connect(boost::bind(&ServiceDbObject::AddAcknowledgement, _1, _2, _3, _4, _5));
Service::OnNotificationSentToAllUsers.connect(bind(&ServiceDbObject::AddNotification, _1, _2, _3, _4, _5, _6));
}
}
void ServiceDbObject::AddAcknowledgement(const Service::Ptr& service, const String& author, const String& comment,
- AcknowledgementType type, double expiry, const String& authority)
+ AcknowledgementType type, double expiry)
{
Host::Ptr host = service->GetHost();
static void TriggerDowntime(const Service::Ptr& service, const Dictionary::Ptr& downtime);
/* History */
- static void AddAcknowledgement(const Service::Ptr& service, const String& author, const String& comment, AcknowledgementType type, double expiry, const String& authority);
+ static void AddAcknowledgement(const Service::Ptr& service, const String& author, const String& comment, AcknowledgementType type, double expiry);
static void AddNotification(const Service::Ptr& service, const std::set<User::Ptr>& users, NotificationType type, const Dictionary::Ptr& cr, const String& author, const String& text);
};
Service::Ptr service = host->GetCheckService();
if (service) {
- unsigned long notification_type_filter;
- unsigned long notification_state_filter;
+ unsigned long notification_type_filter = 0;
+ unsigned long notification_state_filter = 0;
ObjectLock olock(service);
double notification_interval = -1;
String notification_period;
- unsigned long notification_type_filter;
- unsigned long notification_state_filter;
+ unsigned long notification_type_filter = 0;
+ unsigned long notification_state_filter = 0;
BOOST_FOREACH(const Notification::Ptr& notification, service->GetNotifications()) {
if (notification_interval == -1 || notification->GetNotificationInterval() < notification_interval)
if (notification->GetNotificationStateFilter())
notification_state_filter = notification->GetNotificationStateFilter();
- Log(LogDebug, "compatutility", "notification_type_filter: " + Convert::ToString(notification_type_filter) + " notification_state_filter: " + Convert::ToString(notification_state_filter));
+ Log(LogDebug, "icinga", "notification_type_filter: " + Convert::ToString(notification_type_filter) + " notification_state_filter: " + Convert::ToString(notification_state_filter));
}
} else if (object->GetType() == DynamicType::GetByName("User")) {
custom = static_pointer_cast<User>(object)->GetCustom();
} else {
- Log(LogDebug, "compatutility", "unknown object type for custom vars");
+ Log(LogDebug, "icinga", "unknown object type for custom vars");
return Dictionary::Ptr();
}