Operating System - HP-UX
1833210 Members
3185 Online
110051 Solutions
New Discussion

Re: Event Monitor Notification

 
SOLVED
Go to solution
Nickolas A Gray
Advisor

Event Monitor Notification

I received the following in my email.

/system/events/core_hw/core_hw is >= 3.
Its current value is CRITICAL(5).

If I hadn't been reading my mail this may have been serious (Maintenance turned off the AC)

Is there a way to hook this up to a modem or can I redirect these messages to another email address for paging.
9 REPLIES 9
Joseph C. Denman
Honored Contributor

Re: Event Monitor Notification

in your home dir, create a .forward file.

.forward contains email entries.

example:

sysadm1@xxx.com
If I had only read the instructions first??
Nickolas A Gray
Advisor

Re: Event Monitor Notification

Once again, I am not being clear enough about what I am trying to accomplish. I am looking to set up an alias that just forwards the messages that come from the source

Event Monitor Notification. Since I have never seen this in Solaris, this must be run through a daemon and hopefully has some configuration options. These notifications are important enough that I want to be paged. I don't want a page everytime a cronjob finishes though.
SAM TEAM
Advisor

Re: Event Monitor Notification

You mentioned "Event Monitor Notification"
so I suspect this may have come from EMS.
I haven't seen all of the text of the mail
so I can't know for sure.

As far as I know the only way to administer
EMS is through SAM. From the initial SAM window
you go to "Resource Management" and then on
to "Event Monitoring Service".
Do You Like Green Eggs and Ham? (Sam I Am)
Joseph C. Denman
Honored Contributor

Re: Event Monitor Notification

I'm not sure on how to separate where the notifications are sent.

There may be an easier way, but this is what I have done. I setup a .forward file to send all root mail to my email account (outlook 2000). I then setup rules for outlook to check for in the subject and text. Based on the rule, an email will be forwarded to my pager.


....jcd....
If I had only read the instructions first??
Bill Hassell
Honored Contributor

Re: Event Monitor Notification

As mentioned, you can put a .forward file in root's $HOME directory. You can also fixup the /etc/mail/aliases file which fixes more 'lost' email. The format is:

username: differentuser@remote.com

I would include postmaster, hostmaster, webmaster and mailman aliased to root, and
alias root to your working email address. Then fixup *ALL* machines you manage. Overlooked root email os a very common problem as root users forget to run elm to read root's mail.


Bill Hassell, sysadmin
R Madhavan
Frequent Advisor
Solution

Re: Event Monitor Notification

The EMS can be configured with monconfig utility (available in /etc/opt/resmon/lbin). There are lot of monitors available and you can configure to send the messages by e-mail.
/*
Carlos Fernandez Riera
Honored Contributor

Re: Event Monitor Notification

I use monconfig. It allow to define diferent level of alerts and way of notification (snmp, mail...).

monconfig is the correct tool.
unsupported
Tim Medford
Valued Contributor

Re: Event Monitor Notification

Nickolas - The .forward is probably your best option. Your cron jobs should be redirected to a log file anyway, otherwise the root's mail file is going to get huge!

Here's a sample cron:
30 5 * * * /usr/sbin/myjob 1>/tmp/myjob.log 2>&1

This will redirect stdout and stderr to the log file.

Regards,
Tim
Nickolas A Gray
Advisor

Re: Event Monitor Notification

I think I have been reprimanded. Ouch! Sorry for the delay in letting you know what worked.
monconfig was definately what I was looking for.