We need to be notified via e-mail or pager when hardware is having problems. How have other admins setup the `errpt` command or other commands to monitor hardware issues?
Thanks.
Monitor your errpt with a errpt -c -s. awk out print $1 compare the awked out identifier to a list of identifer # or hardware error you want to monitor if condition exist you can e-mail, page, or logger a console message to your operators, etc...... Learn something everyday or you wasted a day of your life.
Hi
you can add your own entry in the ODM class "errnotify" and with the method parameter you can trigger your own script (write a log , send an e-mail etc). A single error can trigger more than one entry.
1) odmget errnotify > sample
2) edit sample
keep the best suited entry and remove the other entries
edit the en_name with a choosen name of your own and the en_method with a script of your own like this :
By far the best thing to do (though I'm sure that others will disagree with me) is to buy a product like HP's OpenView or download a product like Big Brother or Bog Sister. Having a framework in which to manage your systems will make it easier in the long run. Mike
michael.j.lacey@ntlworld.com
Email welcome if you're in a hurry or something -- but post in tek-tips as well please, and I will post my reply here as well.
LHCB: Thanks for pointing out the "-c" option. I tried errpt -c -s and the -s switch is not available for 4.3.2, maybe it is available with 4.3.3.
I'm going to spend some more time with raylin's ideas for working with the odm classes. That looks like the kind of solution we need here.
MikeLacey: I agree with the need for a framework. At my current client site they use BMC Patrol. I will see about integrating this custom solution into Patrol so they can get notified through that system also.
BMC Patrol is a fine product, I'm sure that you will be able to integrate the solution you choose so that alerts are handled in a structured way. Mike
michael.j.lacey@ntlworld.com
Email welcome if you're in a hurry or something -- but post in tek-tips as well please, and I will post my reply here as well.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.