mirror of
https://github.com/Icinga/icinga2.git
synced 2025-09-22 09:17:43 +02:00
Remove unuseful variables
This commit is contained in:
parent
3ce56ac11a
commit
1f5a92a22d
@ -233,8 +233,7 @@ void ClusterEvents::ExecuteCheckFromQueue(const MessageOrigin::Ptr& origin, cons
|
|||||||
|
|
||||||
if (params->Contains("source")) {
|
if (params->Contains("source")) {
|
||||||
double now = Utility::GetTime();
|
double now = Utility::GetTime();
|
||||||
ServiceState state = ServiceUnknown;
|
SendEventExecuteCommand(params, ServiceUnknown, output, now, now, listener, origin, sourceEndpoint);
|
||||||
SendEventExecuteCommand(params, state, output, now, now, listener, origin, sourceEndpoint);
|
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -245,8 +244,7 @@ void ClusterEvents::ExecuteCheckFromQueue(const MessageOrigin::Ptr& origin, cons
|
|||||||
|
|
||||||
if (params->Contains("source")) {
|
if (params->Contains("source")) {
|
||||||
double now = Utility::GetTime();
|
double now = Utility::GetTime();
|
||||||
ServiceState state = ServiceUnknown;
|
SendEventExecuteCommand(params, ServiceUnknown, output, now, now, listener, origin, sourceEndpoint);
|
||||||
SendEventExecuteCommand(params, state, output, now, now, listener, origin, sourceEndpoint);
|
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -295,8 +293,7 @@ void ClusterEvents::ExecuteCheckFromQueue(const MessageOrigin::Ptr& origin, cons
|
|||||||
host->GetName() + "': " + DiagnosticInformation(ex);
|
host->GetName() + "': " + DiagnosticInformation(ex);
|
||||||
|
|
||||||
double now = Utility::GetTime();
|
double now = Utility::GetTime();
|
||||||
ServiceState state = ServiceUnknown;
|
SendEventExecuteCommand(params, ServiceUnknown, output, now, now, listener, origin, sourceEndpoint);
|
||||||
SendEventExecuteCommand(params, state, output, now, now, listener, origin, sourceEndpoint);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if (command_type == "notification_command") {
|
} else if (command_type == "notification_command") {
|
||||||
@ -331,8 +328,7 @@ void ClusterEvents::ExecuteCheckFromQueue(const MessageOrigin::Ptr& origin, cons
|
|||||||
+ "' and user '" + user->GetName() + "' using command '" + command + "': "
|
+ "' and user '" + user->GetName() + "' using command '" + command + "': "
|
||||||
+ DiagnosticInformation(ex, false);
|
+ DiagnosticInformation(ex, false);
|
||||||
double now = Utility::GetTime();
|
double now = Utility::GetTime();
|
||||||
ServiceState state = ServiceUnknown;
|
SendEventExecuteCommand(params, ServiceUnknown, output, now, now, listener, origin, sourceEndpoint);
|
||||||
SendEventExecuteCommand(params, state, output, now, now, listener, origin, sourceEndpoint);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user