Monitoring shell script if object is down and it should update the child objects status as well


 
Thread Tools Search this Thread
Operating Systems Linux Monitoring shell script if object is down and it should update the child objects status as well
# 1  
Old 06-28-2016
IBM Monitoring shell script if object is down and it should update the child objects status as well

Viewers Please help me to get out of the below issue.. Thanks in advance

Required shell script for Monitoring status of the objects and it should update the child objects status as well.

Requirements:-

1. We are working on IIB (IBM Integration Bus v10) and trying to implement the broker (' we call broker as object ') status updates into logs as well as it should generate an alert to application team. Need a shell script which should write the update of objects and its sub objects into logs when it is down and at the same time it should generate an alert to inform the application team.

please help me to write a code:

some of the information related to IIB which might help you:

Broker start and stop commands:
mqsistart brokername
mqsistop brokername

broker sub object is execution group:
mqsistartmsgflow brokername -e executiongroupname
mqsistopmsgflow brokername -e executiongroupname

broker sub object is execution group and execution sub object is flow:
mqsistartmsgflow brokername -e executiongroupname -m flowname
mqsistopmsgflow brokername -e executiongroupname -m flowname

Broker process are:
- bipbroker
- bipservices
- biphttplistener

The above are the 3 process for the Broker (object).


I want above all the 'objects' called broker, executiongroup and flow these three status update should write into logs if any object is down and at the same time it should generate alert to application team.

Please help on this requirement

Thanks and Regards,
Srinivas

Last edited by dsreddy447; 06-28-2016 at 12:12 PM.. Reason: spelling mistakes
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Programming

How to track table status delete/update/insert status in DB2 V10 z/os?

Dear Team I am using DB2 v10 z/os database . Need expert guidance to figure out best way to track table activities ( Ex Delete, Insert,Update ) Scenario We have a table which is critical and many developer/testing team access on daily basis . We had instance where some deleted... (1 Reply)
Discussion started by: Perlbaby
1 Replies

2. Shell Programming and Scripting

Shell Monitoring Script

Hi guys, I didn't understand this monitoring script request - I don't ask for the script result. If you understand the request, I'm just asking an explanation to simplify it for me. THE Script Request: Our organization keeps various files in directories structured as... (2 Replies)
Discussion started by: moshesa
2 Replies

3. Shell Programming and Scripting

Propagate exist status from a child shell script to a parent.

Hi All, I have a parent shell script A and a child shell script B. 1). If a command i.e a mysqdump fails in shell script B fails then I trap the error with this code if ] then func_exit "Failed to export the cleaned DB1.${MYDBNAME} database to the ${MYARCHIVEDIR} directory"... (1 Reply)
Discussion started by: daveu7
1 Replies

4. Shell Programming and Scripting

Opening Child Shell & Executing a script in the same context

Hi, Is the below possible (SHELL = tcsh)? -- I want to write an 'alias' something like this - alias set_my_work "setenv SOME_VAR;tcsh -i;source work_script.cshrc" The intention is to run this alias and enter a child shell, at the same time ensuring that the work_script.cshrc is source-ed.... (0 Replies)
Discussion started by: mishra.a.c
0 Replies

5. Shell Programming and Scripting

count multiple objects in shell script

Hi all: Trying to count the number of oracle instances on HPUX 11.23 - using ksh. I have multiple instances running and I would like to have a count for how many processes for each instance. Example, run the 'ps -efu oracle' command and for each instance increment a counter. So I am looking for... (4 Replies)
Discussion started by: raggmopp
4 Replies

6. Shell Programming and Scripting

Read java object in shell script

Hi All, Can anybosy please guide me how can I send a complete java object which has multiple values inside it to shell script and read the same from the script. Thanks in advance Neha (0 Replies)
Discussion started by: Neha Goyal
0 Replies

7. Programming

Solaris CPU/memory status monitoring (Shell script or c++)

i'm trying to find a way to monitor the CPU/Memory status of a solaris station using vmstat. I like to write a small script to periodically run vmstat and store the output. Can anyone show me how (preferrably in C++ if possible)? Thanks in advance. (6 Replies)
Discussion started by: shingpui
6 Replies

8. Shell Programming and Scripting

Getting exit status of child in trap handler

Hi, I have a trap problem when calling a child script in the background. I know there are a lot of threads here on the issue of traps and signals, I think I have read all the relevant ones, but still haven't found an answer to my problem. I'm working on Linux or HP, the script as you can see... (4 Replies)
Discussion started by: rimon
4 Replies

9. Shell Programming and Scripting

Parent/child Korn shell script help

I have the following two Korn shell scripts: SHELL1.ksh #!/usr/bin/ksh nohup sas /abc/123/sasprogram1.sas & SHELL2.ksh #!/usr/bin/ksh ./SHELL1.ksh wait nohup sas /abc/123/sasprogram2.sas & My goal is to run SHELL1.ksh within SHELL2.ksh. SHELL1.ksh runs sasprogram1.sas. I would like... (1 Reply)
Discussion started by: sasaliasim
1 Replies

10. Programming

Status of child job after parent is killed

Hi, I have a requirement. Scenario: A parent job invokes a child job and gets killed. The child becomes orphan and gets attached to init. Child job is removed from the pid table as soon as it gets completed. Requirement is i need the status of the child job even after the parent job is... (7 Replies)
Discussion started by: anjul_thegreat
7 Replies
Login or Register to Ask a Question