Checked source and tested, in 4.1.420 it was AgentExecuteAction and in 4.2.395 it is AgentExecuteCommand
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts Menu
[
{
"id": 178
},
{
"id": 179
},
{
"id": 181
}
]
sub CheckDownStatus(obj)
{
foreach(o : obj->children) {
if(!o->isInMaintenanceMode)
{
downsince = GetDCIRawValue(o, FindDCIByName(o, "Down"));
if(downsince > 80)
{
return 80;
}
}
}
return 0;
}
// AP Zone 1
PushDCIData($node, 3115, CheckDownStatus(FindObject("9347", $node)));
// AP Zone 2
PushDCIData($node, 3117, CheckDownStatus(FindObject("12216", $node)));
sub CheckDownStatus(obj)
{
foreach(o : obj->children) {
if(!o->isInMaintenanceMode)
{
downsince = GetDCIRawValue(o, FindDCIByName(o, "Down"));
if(downsince > 80)
{
return 80;
}
}
}
return 0;
}
test = $dci->id;
// AP Zone 1
if(test = "3115"){ return CheckDownStatus(FindObject("9347", $node));}
// AP Zone 2
if(test = "3117"){ return CheckDownStatus(FindObject("12216", $node));}