Operating System - HP-UX
1833043 Members
2505 Online
110049 Solutions
New Discussion

Re: EMS monitoring in cluster

 
SOLVED
Go to solution
aaaA_4
Regular Advisor

EMS monitoring in cluster

Hi,

I would like to monitor, how full is a file system (availMB), which is part of application package and I see two problems:
1. How to achieve, the monitor would be, eventually, active on all nodes of the cluster, if the file system is active only on one node, at any time?
2. How to shut down the monitor, in the case, the application package is down?

Thank you for your tips. They will be appreciated.

n.
11 REPLIES 11
Steven E. Protter
Exalted Contributor

Re: EMS monitoring in cluster

Shalom,

All the scripts you are requesting have been done before.

http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=51050

There are in the three threads that compose that stream hundreds of posts and scripts that can be adapted to meet this request.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
aaaA_4
Regular Advisor

Re: EMS monitoring in cluster

Thank you SEP.

I do not want to implement script-like solution for monitoring, but I would like to use standard means of EMS infrastructure.

Any ideas?

n.
aaaA_4
Regular Advisor

Re: EMS monitoring in cluster

Any ideas???

n.
John Guster
Trusted Contributor

Re: EMS monitoring in cluster

1. you need a monitoring tool. HP OpenView is one; there are many other excellent monitoring tools as well if you choose not use your own script.

With HP OpenView, for an example, you can set up threshold for each file system, once it is met, a ticket or a pager is sent out.

2. the monitor does not need be brought down when the application is down as it is smart enough to know what is mounted and it only monitors mounted file systems. But you do have option to monitor a list of file systems, that is if anyone of them is not mounted, then alert sent out...
John Guster
Trusted Contributor

Re: EMS monitoring in cluster

BTY: HP EMS monitor is for hardware monitoring, not for file system usage monitoring.
Stephen Doud
Honored Contributor
Solution

Re: EMS monitoring in cluster

EMS resource events can be used to trigger a package failover or halt. In the case of availMB, if the file system linked to an EMS resource for the package is mobile (mounted by the package) then you would not want the package to move, but perhaps you would want it to halt.

The Managing Serviceguard manual discusses the procedure for creating a package dependency on a resource that is monitored by EMS.

http://docs.hp.com/en/ha.html -> follow the Serviceguard link -> Managing Serviceguard

Page 167 in the most recent version of the manual discusses the use of EMS resources as ppackage resource dependencies.

The package configuration file also gives examples on how to create a resource dependency.
aaaA_4
Regular Advisor

Re: EMS monitoring in cluster

Hi!

John, I know, HP OpenView is the right choice for my problem, but it is not possible to use this product.

Stephen, I do not want to create a package dependency, I just want to be informed of situation, when the file system is filled up. I expect the monitor (availMB) to be smart enough, to stop monitoring in the case, package is down. As I have tested EMS, monitor is generating warnings ("Its current value is unknown.") in such a situation.

Thank you for your assistance.

Any other ideas?

n.
Stephen Doud
Honored Contributor

Re: EMS monitoring in cluster

If you only want to monitor the available space on a file system without actually triggering a package halt/failover, and if you use the 2-file (legacy) package configuration & control, use the customer_defined_run_cmds and customer_defined_halt_cmds in the control script to start and stop a script that does what you need. Modular package configuration requires an external_script declaration for the same purpose.
aaaA_4
Regular Advisor

Re: EMS monitoring in cluster

OK, but...

as I told you, I do not want to use any script, but prepared EMS infrastructure.

Thank you for your assistance,
n.
Stephen Doud
Honored Contributor

Re: EMS monitoring in cluster

You have two choices:
1) use a set of RESOURCE_* parameters in the package configuration file, and create a resource dependency that when the specified setpoint is reached, triggers a package failover

2) use a script that is called by the .._run_cmds and .._halt_cmds to start/stop the non-triggering monitor.

Serviceguard does not provide a means to use EMS without triggering a package failover when a preset trigger point is reached.
aaaA_4
Regular Advisor

Re: EMS monitoring in cluster

Hello,

I have assumed similar scenario.
Question for me is, how can I, by running customer defined scripts, easily start/stop EMS monitoring. I can not find any easy way, how to do it, just create/delete EMS monitor.

Thank you for your assistance,
n.