on 03-19-2015 11:34 PM
Hi All,
Can you please advise how to configure alerts, if a process server goes down.We don't have advanced alerting module.
Thank you,
Chandu
The alternative option is writing a redwood script job that can check the status of process server every few minutes and trigger an email. This is not real time, so there will be a significant delay in knowing the status of the process server.
thanks
Nanda
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you Nanda.
I hope the below script will be useful for all who don't have active alerting module. The script wil thow an error if any process server is down and can be used to trigger an email.
{
String query = "select ProcessServer.* from ProcessServer where Name <> 'System'";
String Status1 = "Shutdown";
String Status2 = "PartiallyRunning";
String Status3 = "Connecting";
String Status4 = "Unknown";
for (Iterator it = jcsSession.executeObjectQuery(query, null); it.hasNext();)
{
ProcessServer proc = (ProcessServer) it.next();
String ActualStatus = proc.getStatus().name();
if ((Status1.equals(ActualStatus))||(Status2.equals(ActualStatus))||(Status3.equals(ActualStatus))||(Status4.equals(ActualStatus)))
{
jcsOut.println(proc.getName()+" has status "+ ActualStatus);
throw new RuntimeException();
}
jcsSession.persist();
}
}
Regards,
Chandu
Thanks for submitting this. I had a task assigned that this was perfect for and once I figured out that this could be pasted in as a new Redwood Job Definition I was in good shape.
I used this as the 1st step of a chain. If the step had an error then I assigned it to continue to the 2nd step. I tweaked the first script to allow a second status of Running... this way it runs through all of the process servers and creates an output file that can be attached to an email in the 3rd step of the chain with System_Mail_Send. This way they can see from the attachments which process servers are or are not running (if more than one is down).
{
String query = "select ProcessServer.* from ProcessServer where Name <>
'System'";
String Status1 = "Shutdown";
String Status2 = "PartiallyRunning";
String Status3 = "Connecting";
String Status4 = "Unknown";
String Status5 = "Running";
for (Iterator it = jcsSession.executeObjectQuery(query, null); it.hasNext();)
{
ProcessServer proc = (ProcessServer) it.next();
String ActualStatus = proc.getStatus().name();
if ((Status1.equals(ActualStatus))||(Status2.equals(ActualStatus))||(Status3.equals(ActualStatus))||(Status4.equals(ActualStatus))||(Status5.equals(ActualStatus)))
{
jcsOut.println(proc.getName()+" has status "+ ActualStatus);
}
jcsSession.persist();
}
}
- Don
We are using build M33.104 of CPS.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Chandu
Please refer to the thread below
Cheers
Arun
Hi Chandu
Have you enabled the alert module in CPS? - This I believe is a separate licensing requirement
Have a look at this link
Cheers,
Arun
Hi Tinku,
As suggested by Carpenter in the link, I followed the below procedure.
For each process server:
Navigate to Monitoring > Monitor Tree, select Edit from the context menu of /System/Process Servers/My_Process_Server, On the Monitor Events tab, create an event definition for this, severity 75 - rising, have a job definition wait on this event and send an email.
I don't see any monitor events tab where I can configure the event to trigger my email job. Please see below screenshots. Our CPS version is M33.104.
Please advise.
Regards, Chandu
User | Count |
---|---|
85 | |
10 | |
9 | |
9 | |
6 | |
6 | |
6 | |
5 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.