mirror of
https://github.com/Icinga/icinga2.git
synced 2026-06-09 08:42:59 -04:00
Build fix.
This commit is contained in:
parent
abff177ab5
commit
962d0e5fb2
2 changed files with 5 additions and 5 deletions
|
|
@ -437,9 +437,9 @@ Dictionary::Ptr Host::CalculateDynamicMacros(void) const
|
|||
|
||||
if (hostcheck) {
|
||||
macros->Set("HOSTSTATEID", 99);
|
||||
macros->Set("HOSTSTATETYPE", Service::StateTypeToString(hostcheck->GetStateType());
|
||||
macros->Set("HOSTATTEMPT", hostcheck->GetCurrentAttempt());
|
||||
macros->Set("MAXHOSTATTEMPT", hostcheck->GetMaxAttempts());
|
||||
macros->Set("HOSTSTATETYPE", Service::StateTypeToString(hostcheck->GetStateType()));
|
||||
macros->Set("HOSTATTEMPT", hostcheck->GetCurrentCheckAttempt());
|
||||
macros->Set("MAXHOSTATTEMPT", hostcheck->GetMaxCheckAttempts());
|
||||
}
|
||||
|
||||
return macros;
|
||||
|
|
|
|||
|
|
@ -278,8 +278,8 @@ Dictionary::Ptr Service::CalculateDynamicMacros(void) const
|
|||
macros->Set("SERVICESTATE", StateToString(GetState()));
|
||||
macros->Set("SERVICESTATEID", GetState());
|
||||
macros->Set("SERVICESTATETYPE", StateTypeToString(GetStateType()));
|
||||
macros->Set("SERVICEATTEMPT", GetCurrentAttempt());
|
||||
macros->Set("MAXSERVICEATTEMPT", GetMaxAttempts());
|
||||
macros->Set("SERVICEATTEMPT", GetCurrentCheckAttempt());
|
||||
macros->Set("MAXSERVICEATTEMPT", GetMaxCheckAttempts());
|
||||
|
||||
return macros;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue