Niels_Kwakman_2332

Is it possible to setup a trigger/escalation based on results in the ' activation tab' ?

Discussion created by Niels_Kwakman_2332 on Jan 27, 2015
Latest reply on Jan 27, 2015 by Peter WIRFS
Hi all,

Found this script (check status of WP and CP processes) in another discussion (thanks for that) but have a question about it.
The result of the script is shown in the " activation tab" .
Is it possible to setup an escalation based on results in the " activation tab" ? Maybe by using ' post proces'  or is there another way?
:set &i# = 1 :define &processType#, string, 2 :set &processType#[1] = "WP" :set &processType#[2] = "CP" :while &i# <= 2 :  print "Starting &processType#[&i#] check." :  set &count# = 1 :  set &count# = format(&count#, "000") :  set &processName# = "&$SYSTEM##&processType#[&i#]&count#" :  set &ret# = sys_server_alive(&processName#) !  Return code 20349 indicates process does not exist, so stop loop. :  while &ret# <> 20349 :    if &ret# = "N" !    Do something to alert :      print " &processName# is down!" :    else :      print " &processName# is OK!" :    endif :    set &count# = &count# + 1 :    set &count# = format(&count#, "000") :    set &processName# = "&$SYSTEM##&processType#[&i#]&count#" :    set &ret# = sys_server_alive(&processName#) :  endwhile :  print " &processName# does not exist. &processType#[&i#] check is complete." :  print "" :  set &i# = &i# + 1 :endwhile

Outcomes