1833777 Members
2285 Online
110063 Solutions
New Discussion

Informix with MC/SG

 
SOLVED
Go to solution

Informix with MC/SG

We have few informix servers installed in a different directory structure. I had configured an informix instance with MC/SG. I am using oninit as a MONITOR_PROCESSES for this instance.
How can I use the monitor process command with the full directory strusture instead of using

set -A MONITOR_PROCESSES oninit

This will help me to monitor two informix server instances at the same time.

IF the above does not work, how can we monitor two informix instances at the same time in a UNIX box.

Thanks
Senthil
6 REPLIES 6
Rainer von Bongartz
Honored Contributor

Re: Informix with MC/SG

I monitor on a 'special' oninit process the so called master oninit process.

When you start your INFORMIX engine the first oninit becomes the master which itself start and monitors the otehr oninits.
So you only need to monitor the existence of the master.

You'll find out the master with:

onpid=` $INFORMIXDIR/bin/onstat -g glo | awk '/ vp /, / tot /' | awk '/^ 1 / { print $2 }' `

you can write monitor scripts for both instances and monitor on this PID's

Regards
Rainer


Regards
He's a real UNIX Man, sitting in his UNIX LAN making all his UNIX plans for nobody ...

Re: Informix with MC/SG

Hello Rainer,

Could you send me a sample Informix monitoring Scripts.

Thanks
Senthil
Rainer von Bongartz
Honored Contributor
Solution

Re: Informix with MC/SG


Here you go with the attached monitor script.

BUT as always: Don't take it as granted and only use it as a template.

Regards
Rainer
He's a real UNIX Man, sitting in his UNIX LAN making all his UNIX plans for nobody ...

Re: Informix with MC/SG

Hi Rainier

Thanks

Best Regards
Senthil
Martin Robinson
Frequent Advisor

Re: Informix with MC/SG

If you have more than one instance running, a useful trick is to rename the executable (oninit, in this case) for each instance to oninit.A, oninit.B and so on. Then the ps listing will visibly distinguish between the different instances.

You can also use this technique to distinguish different copies of a similar executable by creating links (hard or soft), so that the ps listing gives you more useful information.
Tim D Fulford
Honored Contributor

Re: Informix with MC/SG

To further my (ex!)colleguges remark

set -A MONITOR_PROCESS oninit.ins1

etc.

I personally would create a seperate SG package for each instance.

Tim
-