Operating System - HP-UX
1834156 Members
2254 Online
110064 Solutions
New Discussion

How to disable EMS one of the event

 
SOLVED
Go to solution
Kennethyap
Frequent Advisor

How to disable EMS one of the event

Dear Expert,
How to remove one of the event in EMS that monitor the UPS. The UPS already remove fr thr server. It keep generating the alert log cause my root directory full. Below are the ems client.log.

------------------Start Event--------------------
User event occurred at Mon Jul 18 10:45:53.442917 2005
Process ID: 1129 (/etc/opt/resmon/lbin/p_client) Log Level: Audit
Object Type = RM_MONITOR_REPLY_OBJECT
Resource Name = "/system/events/ups/ups_mond"
Dictionary Name = "/system/events/ups"
Translation Name =
Message Tag = 0
Operation Type = RM_REGISTER
Request ID = 1674.1
Lifetime Options = RM_PERSISTENT_REQUEST
Client Name Length = 11
Client Name:
48 50 5F 48 57 45 5F 53 43 50 00 HP_HWE_SCP.
User Data Length = 0
Request Notification Data Length = 0
Polling Interval = 0
Operator = RM_GREATER_THAN_OR_EQUAL_TO
Resource Type = 0
Threshold Type = RM_SBIT32_TYPE
Threshold Value = 1

Notification Options = 2:
RM_REPEAT_NOTIFICATION

Monitor Reply = RM_ACCEPT
Reply Port = 5
Target Type = RM_TEXTLOG
Target Hostname = "/var/opt/resmon/log/event.log"
Target Port = 0

Flags Word = 3:
_RM_RESTARTED
_RM_FIRST_RESTARTED_REQ

OV Severity = RM_NOT_APPLICABLE
Minimum Polling Interval = 0
Password Length = 0
Client Configuration File = "/var/stm/config/tools/monitor/default_dm_ups.clcfg"

-------------------End Event----------------------

6 REPLIES 6
Indira Aramandla
Honored Contributor

Re: How to disable EMS one of the event

Hi,

/var/stm/config/tools/monitor normally holds the config files for EMS monitors.


IA
Never give up, Keep Trying
Indira Aramandla
Honored Contributor

Re: How to disable EMS one of the event

oops... pressed submit tooo quickly.

The file will be /var/stm/config/tools/monitor/default_dm_ups.clcfg

Look in this file and see where to modify.


IA
Never give up, Keep Trying
Joseph Loo
Honored Contributor
Solution

Re: How to disable EMS one of the event

hi,

use monconfig to disable that event:

# /etc/opt/resmon/lbin/monconfig
. select (D)elete a monitoring request, and delete /system/events/ups.
. select (K)ill (disable) monitoring and (E)nable Monitoring.

# ps -ef|grep dm_usp
to check if the ups is still being monitor by EMS.

regards.
what you do not see does not mean you should not believe
Mahesh Kumar Malik
Honored Contributor

Re: How to disable EMS one of the event

Hi

Use following coammand

# /etc/opt/resmon/lbin/monconfig

and then delete the hardware item you do not want to be monitored under EMS

Regards
Mahesh
Andrew Merritt_2
Honored Contributor

Re: How to disable EMS one of the event

First off, that's not an EMS event that can be disabled by using 'monconfig'; as you say, that message is being logged to client.log, which is one of the files for logging messages from EMS.

I think the problem is that you have removed the hardware but not deconfigured it. Did you deconfigure the UPS through SAM? Specifically, I think ups_mond is trying to access the UPS, and is finding it is not there, so it is exiting. However ups_mond is configured to be running all the time, so gets restarted.

It's also possible to manually deconfigure, I believe, by reversing the steps shown in http://docs.hp.com/en/B2355-90698/ch09s03.html

Andrew
Devender Khatana
Honored Contributor

Re: How to disable EMS one of the event

Hi,

This entry for respawning ups_mond also should be hashed or removed from /etc/inittab.

#ups::respawn:rtprio 0 /usr/lbin/ups_mond -f /etc/ups_conf

Apart from this also remove it from the monitored list as suggested above using /etc/opt/resmon/lbin/monconfig.

HTH,
Devender
Impossible itself mentions "I m possible"