AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.


#Power
#Power
 View Only
  • 1.  Automated Error Email Notification on AIX

    Posted Wed February 18, 2009 09:59 AM

    Originally posted by: SystemAdmin


    Hello Folks,

    I would like to setup automated error email notifications for any hardware + software + Hacmp errors.

    How can I do it ?
    I have searched on the internet, i have found something like a script erronotifier or something like that...
    P.S. I don't want to use a third party tool.
    #AIX-Forum


  • 2.  Re: Automated Error Email Notification on AIX

    Posted Wed February 18, 2009 10:29 AM

    Originally posted by: tony.evans


    Write some scripts which look through logs and when they find errors, send e-mails.

    If you don't want to use a third party tool, then you're going to have to write all your own scripts. If you don't know how to write the scripts, you either need to learn (and teaching someone how to do that is beyond the scope of this forum) or you'll need to use third party tools.

    Scripts just automate the kind of manual processes you'd normally run, so if you're not presenting checking logs and error reports manually, then writing scripts might not be the best first step.
    #AIX-Forum


  • 3.  Re: Automated Error Email Notification on AIX

    Posted Sat February 21, 2009 04:04 AM

    Originally posted by: SystemAdmin


    • Could you please suggest some Free Third Party tools which can perform such task.
    This is one of the required and important task for system admins.. I think IBM AIX should consider adding this feature in the upcoming AIX versions.
    #AIX-Forum


  • 4.  Re: Automated Error Email Notification on AIX

    Posted Mon February 23, 2009 08:52 AM

    Originally posted by: gcorneau


    Have you looked at the AIX documentation, specifically the information on the errnotify facility?

    http://publib.boulder.ibm.com/infocenter/systems/scope/aix/index.jsp?topic=/com.ibm.aix.genprogc/doc/genprogc/error_notice.htm

    In addition, there are error notifications for HACMP, again, in the documentation:

    http://publib.boulder.ibm.com/infocenter/systems/scope/aix/index.jsp?topic=/com.ibm.aix.hacmp.insgd/ha_install_hacmp_error.htm

    For AIX 6, I"d bookmark the main page:

    http://publib.boulder.ibm.com/infocenter/systems/scope/aix/index.jsp


    Glen Corneau
    IBM Power Systems Advanced Technical Support
    #AIX-Forum


  • 5.  Re: Automated Error Email Notification on AIX

    Posted Thu September 17, 2009 09:32 AM

    Originally posted by: apple08


    Dear AIX gurus,
    what is the effective in getting the alert, from syslog or error log?
    i was thinking of setting up errnotify, but i beleive that at one is for error log only. would like to filter and ensure only critical alerts being sent out to email. should u have experience setting up and would like to share, would really appreciate your notification. Many thanks in advance
    #AIX-Forum


  • 6.  Re: Automated Error Email Notification on AIX

    Posted Thu September 17, 2009 10:04 AM

    Originally posted by: unixgrl


    Did you read the links provided by Glen in this thread? It is fairly easy to modify errnotify to call a script and do whatever you want. We use errnotify to call a script which has a list of every error we've ever seen and gives it a criticality value. Then, the script can log, email, whatever based on the criticality.

    As for getting things from syslog, usually you'd have some type of monitoring software (BMC, HP, etc) that would scrape syslog looking for specific patterns. If you don't have that, you can write your own script that runs on a regular basis and looks for specific strings. Or, have all your syslog stuff sent to a central host and filter it from there.

    Search on IBM and Google for code-bits that people are willing to share. There's not a lot of code posted on this forum. Generally, we'll point you in the right direction but not do the work for you.
    #AIX-Forum


  • 7.  Re: Automated Error Email Notification on AIX

    Posted Thu September 17, 2009 10:17 AM

    Originally posted by: SystemAdmin


    Finally...someone else speaks up. Sorry, but apple08 has been asking for handouts on here since sign-up. I'm all for helping someone who has done some research as well, but I'm only going to show them how to catch so many fish before I turn the pole over and expect them to TRY to cast at least.
    #AIX-Forum