 |
SoftTree Technologies
Technical Support Forums
|
|
Author |
Message |
seanc217
Joined: 23 May 2007 Posts: 272
|
|
scheduler shutdown notification |
|
Hi
Is there a way to send a notification if the scheduler is shutdown?
Thanks!
|
|
Sat Nov 15, 2008 3:17 pm |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7949
|
|
|
|
Sure. Depending on which facilities are available to you, you can use simple process monitor looking for the scheduler command line in process list (shell script based on ps + grep + sendmail) or you can lookup if there is a process listening on port 1096 (use netstat; you will need to enable server mode in 24x7 settings if it is not already enabled), you can also create remote monitor pinging the scheduler on port 1096 and sending an alert if there is no response. If you have some jobs running periodically, you can also monitor their logs for updates, etc.... and of course if you have system or 3rd party process monitoring tools you can use them too, take a look for example at "Process Monitor HOW-TO for Linux" http://www.linuxdocs.org/HOWTOs/Process-Monitor-HOWTO.html. And finally, there is a built-in support for the scheduler fail-over. See High Availability topic in the on-line manual.
If you need further help with this, please let us know which method you prefer for the monitoring.
|
|
Sat Nov 15, 2008 3:36 pm |
|
 |
seanc217
Joined: 23 May 2007 Posts: 272
|
|
|
|
OK that's what I was thinking.
I did not know if there was a way inside the scheduler to have a notification sent on shutdown.
Maybe you can consider this for an enhancement request?
Thanks!
|
|
Sat Nov 15, 2008 4:02 pm |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7949
|
|
|
|
In that case you can simply add a line at the end of master.sh file to send an email. That line will be executed by the system after the scheduler process termination.
|
|
Sat Nov 15, 2008 4:41 pm |
|
 |
seanc217
Joined: 23 May 2007 Posts: 272
|
|
|
|
OK Thanks!
|
|
Sat Nov 15, 2008 4:42 pm |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|