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;
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;
}