Hi!
I would suggest calling a script from macro, like this:
1. Create script called "ServiceStateName" in script library:
2. Use %[ServiceStateName] instead of %<currentValue>
Best regards,
Victor
I would suggest calling a script from macro, like this:
1. Create script called "ServiceStateName" in script library:
Code Select
state = GetEventParameter($event, "currentValue");
switch(state)
{
case 0:
return "OK";
case 1:
return "error in parameters";
case 2:
return "cannot connect to server";
case 3:
return "content of does not match";
}
return "UNKNOWN";
2. Use %[ServiceStateName] instead of %<currentValue>
Best regards,
Victor
I agree that this is a flaw in default configuration. I'll change default values of AgentCommandTimeout and portcheck timeout.