AIX

AIX

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


#Power
#Power
#Operatingsystems
#Servers
 View Only
  • 1.  Daily checking of errpt

    Posted 12/10/07 05:23 AM

    Originally posted by: SystemAdmin


    Could anyone give me some advice on the best way to set up some sort of daily check of errpt?
    #AIX-Forum


  • 2.  Re: Daily checking of errpt

    Posted 12/10/07 06:59 AM

    Originally posted by: hdkutz


    http://unix.derkeiler.com/Mailing-Lists/AIX-L/2004-07/0028.html
    Take a look at the above link.
    Cheers,
    ku
    #AIX-Forum


  • 3.  Re: Daily checking of errpt

    Posted 12/10/07 05:16 PM

    Originally posted by: SystemAdmin


    I have this script running on 3 servers to keep me sane. It does require you to install the GNU date found in the coreutils package that came in the install disks (that's how I got around the problem of the beginning of the month). It's run with a crontab entry every morning at a convenient time.

    #!/bin/ksh

    errdate=$(/opt/freeware/bin/date --date="-1 days" +"%m%d0000%y")
    curdir=$(find / -name mailerrs 2>/dev/null | awk -F/ '{ ORS="/"; for( i=1; i<NF; i++ ) print $i }')
    outfile=$(print ${curdir}lasterrs.log)
    sendto="unix@admin.email"
    subject="$(uname -n) errors found over last day"

    errpt -a -s $errdate > $outfile

    if
    then
    mail -s "$subject" $sendto < $outfile
    fi
    #AIX-Forum


  • 4.  Re: Daily checking of errpt

    Posted 03/19/09 09:41 AM

    Originally posted by: apple08


    Dear Gurus and fellow friends,
    do u send yr critical error report to SMS (handphone)? wld appreciate how to start develop and start send the sms to handphone from aix especially the critical error. would advice would be very helpful. many thanks in advance. Thank You
    #AIX-Forum


  • 5.  Re: Daily checking of errpt

    Posted 03/19/09 10:33 AM

    Originally posted by: SystemAdmin


    I run nagios on my AIX systems. Using one of the plugins, it monitors the errpt and notifies me of any problems. It does this via email, but could just as easily send an SMS message. -Mike
    #AIX-Forum


  • 6.  Re: Daily checking of errpt

    Posted 03/19/09 02:41 PM

    Originally posted by: alethad


    Mike,
    I would like to run nagios on my AIX box but I could never get it to compile. The make errors out and I don't know how to troubleshoot it. I am not a PERL person. So I dropped it. I am still running Netsaint.
    Did you compile it on your AIX or are you running nrpe instead?
    Can you tell me how you got it to compile?
    Any help is greatly appreciated.
    #AIX-Forum


  • 7.  Re: Daily checking of errpt

    Posted 03/19/09 02:44 PM

    Originally posted by: SystemAdmin


    I am running NRPE on my AIX systems. I have the nagios server components installed on a linux machine. NRPE works great on the AIX systems and I am monitoring a ton of things via that method. -Mike
    #AIX-Forum


  • 8.  Re: Daily checking of errpt

    Posted 03/19/09 02:50 PM

    Originally posted by: alethad


    OK. I guess I'll need to go explore NRPE. I don't have a Linux box and would really like to run the whole thing from my AIX.

    Thanks for the info.
    #AIX-Forum


  • 9.  Re: Daily checking of errpt

    Posted 03/02/10 07:10 AM

    Originally posted by: SystemAdmin


    Hi

    Configure SSH key authentication on remote AIX server and run plugin on remote server as per the below command.
    /usr/bin/ssh -x -o nagios@$HOSTNAME$ /usr/lib/nagios/libexec/check_disk -w $ARG1$ -c $ARG2$
    #AIX-Forum