Does anyone have instructions how to install and configure this to generate SNMP alerts? Running Solaris 10 update 8.
FMA is part of the system and doesn't need to be installed or configured. meanwhile SNMP needs to be configured to send traps to your SNMP server. check the solaris documentation about configuring SNMP:
Overview of SNMP and Network Management - Solaris System Management Agent Administration Guide
The problem i'm having is that FMA isn't creating any traps.
Before
NAME STATE READ WRITE CKSUM
ronpool ONLINE 0 0 0
mirror-0 ONLINE 0 0 0
disk1 ONLINE 0 0 0 22.5K resilvered
disk2 ONLINE 0 0 0
spares
disk3 AVAIL
Then I took disk1 offline to test.
NAME STATE READ WRITE CKSUM
ronpool DEGRADED 0 0 0
mirror-0 DEGRADED 0 0 0
disk1 OFFLINE 0 0 0 22.5K resilvered
disk2 ONLINE 0 0 0
Nothing be written to the dump file
rpool/boot/grub$ fmdump -v
TIME UUID SUNW-MSG-ID
fmdump: /var/fm/fmd/fltlog is empty
How do I get this to create a fma trap?
there is nothing like a "FMA trap". if an FMA error is created (which won't happen from admin commands) you'll get an FMA message. and this one should trigger a trap (if SNMP is configured properly).
as far as i know, there isn't even a way to make a FMA message for testing purposes (something like the "logger" command for testing syslog messages).
Shouldn't I be getting a FMA error? Not receiving any messages in the logs.
man fmd has the following blurb. So make sure you have the fmd running. ps -ef|grep -i fmd should confirm. Also post your /etc/syslog.conf, could be an issue with your syslog configuration.
Solaris 10 SNMP is available in basic installations
To disable SNMP
#svcadm disable svc:/application/management/snmpdx:default
Start snmpd
#svcadm enable svc:/application/management/sma:default
Stop snmpd
#svcadm disable svc:/application/management/sma:default
SNMP daemon bins path in
/usr/sfw/sbin/snmpd
Configuration file named snmpd.conf resides here
/etc/sma/snmp
.