Operating System - HP-UX
1837168 Members
2755 Online
110113 Solutions
New Discussion

Is there a rearm event for EMS?

 
Rick Garland
Honored Contributor

Is there a rearm event for EMS?

Hi all:

Got ia64 running HPUX 11.23 with EMS A.04.10 and STM C.46.15.

Setting up alerts from within EMS via another hp openview product.

Issue is that the EMS keeps sending alerts even after the critical issue has been cleared.

Is there a 'rearm' function for filesystem monitoring within EMS?

9 REPLIES 9
Denver Osborn
Honored Contributor

Re: Is there a rearm event for EMS?

Hi Rick,

I think you're looking for set_fixed.

to list DOWN resources
# /opt/resmon/bin/set_fixed -L

to set state to UP
# /opt/resmon/bin/set_fixed -n name_of_resource


-denver
Rick Garland
Honored Contributor

Re: Is there a rearm event for EMS?

Ran the set_fixed command - the resource I am monitoring is not there.

I am monitoring /system/filesystem/availMb
The example I am using is the /tmp filesystem. I will artificially fill it up so it gets a critical alert. Then I will remove the data and and thus resolve the 'filesystem full' condition.

Yet I still get messages that EMS has detected a changed condition...

What is happening? How can I stop?



Denver Osborn
Honored Contributor

Re: Is there a rearm event for EMS?

maybe a little more info on how the ha monitor was setup would help

can you post the output from:

resls -s /system/filesystem/availMb/tmp
Rick Garland
Honored Contributor

Re: Is there a rearm event for EMS?

NAME: /system/filesystem/availMb
DESCRIPTION: The amount of free space in the file system in megabytes.
TYPE: /system/filesystem/availMb is a Resource Class.

There are 14 resources configured below /system/filesystem/availMb:
Resource Class
/system/filesystem/availMb/arch01_OADBR1
/system/filesystem/availMb/arch02_OADBR1
/system/filesystem/availMb/home
/system/filesystem/availMb/home_skurtz_test
/system/filesystem/availMb/opt
/system/filesystem/availMb/prd01_oraagent
/system/filesystem/availMb/prd01_oracle
/system/filesystem/availMb/root
/system/filesystem/availMb/stand
/system/filesystem/availMb/sysadm
/system/filesystem/availMb/tmp
/system/filesystem/availMb/usr
/system/filesystem/availMb/usr_openv
/system/filesystem/availMb/var
Denver Osborn
Honored Contributor

Re: Is there a rearm event for EMS?

thanks rick, but you forgot to append "/tmp" to the resource...

resls -s /system/filesystem/availMb/tmp

This will show how the monitor for /tmp filesystem is setup.

-denver
Rick Garland
Honored Contributor

Re: Is there a rearm event for EMS?

Sorry bout that.
Here it is. Yes I have polling at 120 sec ( I am impatient). However, I correct the situation and I still get emails saying a state has changed. Even after 1 hr!


NAME: /system/filesystem/availMb/tmp
DESCRIPTION: The amount of free space in the file system in megabytes.
TYPE: /system/filesystem/availMb/tmp is a Resource Instance
whose values are 64-bit floating point values.

There is 1 active monitor request reported for this resource.

The Monitor Request ID in DECIMAL: 127008805
The (PID.Request#) is 1938.37
Operation is RM_GREATER_THAN_OR_EQUAL_TO 1600.000000 with no notification options set
Polling Interval is 120 seconds

The current value of the resource is 1611.000000
Andrew Merritt_2
Honored Contributor

Re: Is there a rearm event for EMS?

> Operation is RM_GREATER_THAN_OR_EQUAL_TO 1600.000000 with no notification options set
Polling Interval is 120 seconds

> The current value of the resource is 1611.000000

So, it will notify you when AvailMB is > 1600. And it is currently 1611, which is greater than 1600, which is why you're getting the notification.

I think you need to change the test to be less than or equal to, to achieve what you want.

Andrew
Rick Garland
Honored Contributor

Re: Is there a rearm event for EMS?

Andrew:

That is what the value is after I clean up.
When I artifically fill up to be less than 1600, I get the alerts.

When I clean up so that availMb is greater than 1600, I am still getting alerts until I bounce the monconfig.


Andrew Merritt_2
Honored Contributor

Re: Is there a rearm event for EMS?

Rick, what sort of alerts are you getting, as you've not enabled any optional notifications for the resource, so you should only get one notification when the conditions is first met.

I'm not completely sure what's happening yet, but you do have the test round the wrong way.

What you have configured will send an alert when the condition is met, i.e. when the free space on the device is greater than 1600. It shouldn't be sending any further notifications as you have the other options unselected (in particular the Repeat option).

I've done some testing with a similar condition to yours, and this is what I see, I get a notification the first time the condition is met. If the free space drops below the value in the test, nothing happens, but when the space is freed so that it exceeds the value specified again, I get a notification.

NAME: /system/filesystem/availMb/tmp
DESCRIPTION: The amount of free space in the file system in megabytes.
TYPE: /system/filesystem/availMb/tmp is a Resource Instance
whose values are 64-bit floating point values.

There is 1 active monitor request reported for this resource.

The Monitor Request ID in DECIMAL: 160497666
The (PID.Request#) is 2449.2
Operation is RM_GREATER_THAN_OR_EQUAL_TO 31.000000 with no notification options set
Polling Interval is 60 seconds

The current value of the resource is 31.400000

email notification:

Subject: hppine44: Event Monitor Notification

>------------ Event Monitoring Service Event Notification ------------<

Notification Time: Fri Apr 29 09:22:20 2005

hppine44 sent Event Monitor notification information:

/system/filesystem/availMb/tmp is >= 31.
Its current value is 31.4.

User Comments:

ITRC test

>---------- End Event Monitoring Service Event Notification ----------<