Operating System - HP-UX
1752511 Members
4837 Online
108788 Solutions
New Discussion юеВ

How to get mails regarding CRITICAL events...

 
SOLVED
Go to solution
Suraj Singh_1
Trusted Contributor

How to get mails regarding CRITICAL events...

Hi All,

We have around 200 HP servers (both PA & Itanium). I have EMS working on all of these servers. But currently i need to logon to each of these servers to check for any CRITICAL events. I have a cronjob set to do that (the script is attached).

1. What further improvements can be done in the script?

2. I want to know is it possible to setup a central EMS server to monitor the events on all the servers, and the central server in turn sends mail regarding critical events to the system administrator's mail address.

If it is possible, then how? Where can i get a good documentation about it?

Thanks in advance,
Suraj
What we cannot speak about we must pass over in silence.
8 REPLIES 8
Rainer von Bongartz
Honored Contributor

Re: How to get mails regarding CRITICAL events...

When you set up the EMS monitoring request using SAM, then you have an option field

Notify via: SNMP|TCP|UDP|Email|Syslog|Console|Textlog


Why dont't you choose Email, so that every triggered EMS event is e-mailed to you as soon as it occures?

Regards
Rainer


He's a real UNIX Man, sitting in his UNIX LAN making all his UNIX plans for nobody ...
Steven E. Protter
Exalted Contributor

Re: How to get mails regarding CRITICAL events...

EMS is configured by Sam and is really designed to allow an individual server to let people know when there are problems.

I don't know of any tools for centralizing this.

I would however suggest that if you configured all the servers to email a particular server with say an account for each server the following scenario would work:

1) a cron job on the central server checks for email. If it finds any, its runs a notificaiton script based on who is responsible for that server.

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
Mel Burslan
Honored Contributor

Re: How to get mails regarding CRITICAL events...

have you ever considered ISEE deployment ? Especially if you have support agreement with HP for these servers, in case of any EMS event, a ticket gets automatically logged to HP. This is a much better use of your sysadmin time letting hp do the babysitting as they have staff working 24x7 instead of getting EMS pages in the middle of the night about an LPMC or a single bit correctable memory error.
________________________________
UNIX because I majored in cryptology...
Suraj Singh_1
Trusted Contributor

Re: How to get mails regarding CRITICAL events...

Hi All,

Thanks for replies...
I did the following on one of the machines:

Ran "/etc/opt/resmon/lbin/monconfig" and created a new monitor which sends mails to a mail address, say xyz@abc.com.

Please suggest if i can PUSH (i.e., copy) THE CONFIGURATION FILES THUS CREATED (/var/stm/config/tools/monitor/*.sapcfg) TO MY OTHER MACHINES? Please note that i have both PA as well as Itanium machines.

Regards,
Suraj
What we cannot speak about we must pass over in silence.
Eric Antunes
Honored Contributor
Solution

Re: How to get mails regarding CRITICAL events...

Hi Suraj,

Personaly, I made a script (and schedule it) to send me mails about some syslog.log event: I found that the most serious events had the word "vmunix", so I did the script to send me (root) mails with the syslog.log lines with this word (just in case...). Later I did the same with the Oracle alert_SID.log and the word "ORA-"...

Here is the script for syslog.log events (in attachment)

Best Regards,

Eric Antunes
Each and every day is a good day to learn.
Suraj Singh_1
Trusted Contributor

Re: How to get mails regarding CRITICAL events...

Thanks guys,

The solution given by Eric looks great, but i want to know if what i mentioned in my previous post is possible? Will that work?

~Suraj
What we cannot speak about we must pass over in silence.
Juan M Leon
Trusted Contributor

Re: How to get mails regarding CRITICAL events...

Suraj, If you have a NFS exported in all your systems, and you already setup the cronjobs for every box. you can have the script and output logs in the NFS directory, also a second script can be run in the nfs server with 5 or 10 minutes sleep time. once the second script finds any alert on any server log. it will be mailed to your admin group. Hope it helps.
Suraj Singh_1
Trusted Contributor

Re: How to get mails regarding CRITICAL events...

Going ahead with Eric's solution!

Thanks all,
Suraj
What we cannot speak about we must pass over in silence.