Clint_Knight_843While my wife was watching Greys Anatomy in the evening I got very bored and extended the checkscript a bit.
now the checkscript is more configurable.
https://us.v-cdn.net/5019921/uploads/editor/g6/zafs7noqes8r.jpg" width="513">
enter object name if an alert should be sent if its not found in activities window and if it should be (re-) started automatically and the mailadress for the alert mails (semicolon seperated)
Report would look like this:
2017-04-27 14:33:32 - U0020408 JOBS.WIN.PING120 Mail:
uc4@local.com;
outside@local.com2017-04-27 14:33:32 - U0020408 EH_Name: EH_RUNID:
2017-04-27 14:33:32 - U0020408 EH_Status: EH_Queue:
2017-04-27 14:33:32 - U0020408 alert: Y autostart: Y
2017-04-27 14:33:32 - U0020408 adding JOBS.WIN.PING120 to alertlist
2017-04-27 14:33:32 - U0020408 starting object JOBS.WIN.PING120...
2017-04-27 14:33:32 - U0007000 'JOBS.WIN.PING120' activated with RunID '0001153155'.
2017-04-27 14:33:32 - U0020408 ===================================================
2017-04-27 14:33:32 - U0020408 JOBS.WIN.PING300 Mail:
uc4@local.com2017-04-27 14:33:32 - U0020408 EH_Name: JOBS.WIN.PING300 EH_RUNID: 1153152
2017-04-27 14:33:32 - U0020408 EH_Status: 1550 EH_Queue: CLIENT_QUEUE
2017-04-27 14:33:32 - U0020408 alert: N autostart: Y
2017-04-27 14:33:32 - U0020408 object running, no action necessary in this case
2017-04-27 14:33:32 - U0020408 ===================================================
First and fourth line of every section is the content of the cinfig vara for this object.
second and third line content of Activities window - if found
alertlist is the list of not-running objects for the email.
thats it - should be more flexible as the previous version....
have fun!