SUMMARY: X4500 e-mail alerts (part 2)
- From: Chris Banal <banal@xxxxxxxxxx>
- Date: Thu, 20 Dec 2007 12:00:06 -0800
Sun Managers,
After exchanging a few e-mails with Doug Hughes who replied to my
summary. I was inspired to try snmp traps despite being told by a Sun
engineer that the X4500 ILOM did not produce traps for disk events. This
isn't quite what I was looking for but it will "do the trick" (tm).
Using NET-SNMP's snmptrapd I was able to setup snmp traps and the X4500
sent traps which were converted to e-mails on drive disconnections and
unconfigurations. I am by no means a snmptrapd expert but the following
info should help others get started if they run into the same issue I did.
- NET-SNMP comes with snmptrapd and a script called traptoemail which
produces e-mails from traps. The following config file sets up a default
trap handler to send e-mails
demo:~> cat snmptrapd.conf
###########################################################################
#
# snmptrapd.conf
#
# - created by the snmpconf configuration program
#
###########################################################################
# SECTION: Trap Handlers
#
# Here we define what programs are run when a trap is
# received by the trap receiver.
# traphandle: When traps are received, a program can be run.
# When traps are received, the list of configured trap
# handles is consulted and any configured program is run.
# If no handler is found, any handler with "default" as the
# traphandle type is run instead. The information contained
# in trap is passed to the program via standard input (see
# the snmptrapd.conf manual page for details).
#
# arguments: oid|"default" program args
traphandle default /usr/bin/traptoemail -f foo@xxxxxxx -s
mailhost.bar.com foo@xxxxxxx
- Download the X4500 MIBs from the Sun
(http://www.sun.com/servers/x64/x4500/downloads.jsp)
- Copy the SUN-ILOM-PET-EVENTS to the mib directory for NET-SNMP.
demo:~/common/snmp> cp SUN-ILOM-PET-EVENTS.mib
/usr/share/snmp/mibs/SUN-ILOM-PET-EVENTS.txt
- Start snmptrapd have it load the above config file and
SUN-ILOM-PET-EVENTS mib.
demo:~> snmptrapd -m SUN-ILOM-PET-MIB -c ./snmptrapd.conf
- Configure the X4500 (Thumper) ILOM to send snmp traps.
- Configuration -> Alert Management
- Point the alerts to your snmptrapd host (the alert type will read
impipet)
- The following is an example mail when a drive was removed from the X4500.
Host: demo.bar.com (UDP: [10.4.5.100]:1025)
RFC1213-MIB::sysUpTime.0 138
RFC1155-SMI::internet.6.3.1.1.4.1.0 SUN-ILOM-PET-MIB::petTrapDriveSlotDriveRemovedOrAbsent
SUN-ILOM-PET-MIB::petEvts.1 "00 00 00 00 30 30 31 34 34 46 36 42 39 45 45 39
00 77 12 BE 75 26 FF FF 20 20 02 20 71 00 00 00
FF FF 00 00 00 00 00 19 00 00 00 2A 03 08 80 0C
03 68 64 64 32 33 2E 73 74 61 74 65 00 80 0E 03
53 55 4E 20 46 49 52 45 20 58 34 35 30 30 00 C1
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00
"
RFC1155-SMI::internet.6.3.18.1.3.0 10.4.5.100
RFC1155-SMI::internet.6.3.18.1.4.0 "AMITest"
Thank you,
Chris Banal
Rhythm & Hues Studios
Ph. (310) 448-7947
Chris Banal wrote:
Sun Managers,_______________________________________________
I received 3 e-mails asking for a summary because they had similar
issues. One e-mail from Bryan Allen with a perl daemon that checks the
fault manager periodically for errors.
I was hoping Sun had some sort of Diagnostic Reporter similar to the
3000 arrays. After the lack of responses from Sunmanagers mailing list
I opened up a case with Sun and was told no such tool exists.
Hopefully Sun will provide something in the future but at the moment
it looks like you have to write your own / use a 3rd party script to
periodically check the fault manager or zfs status.
Thank you,
Chris Banal
Rhythm & Hues Studios
sunmanagers mailing list
sunmanagers@xxxxxxxxxxxxxxx
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
- References:
- X4500 e-mail alerts
- From: Chris Banal
- SUMMARY: X4500 e-mail alerts
- From: Chris Banal
- X4500 e-mail alerts
- Prev by Date: SUMMARY: Method for monitoring metastat over multiple machines
- Next by Date: PowerPath does not display consolidated device paths
- Previous by thread: SUMMARY: X4500 e-mail alerts
- Next by thread: diffrence between SANtricity - CAM
- Index(es):
Relevant Pages
|
|