#!/bin/sh omconfig=/opt/dell/srvadmin/sbin/omconfig $omconfig system alertaction event=powersupply alert=true broadcast=true execappath="/data/scripts/dellomsa_notifications.sh powersupply" $omconfig system alertaction event=powersupplywarn alert=true broadcast=true execappath="/data/scripts/dellomsa_notifications.sh powersupplywarn" $omconfig system alertaction event=tempwarn alert=true broadcast=true execappath="/data/scripts/dellomsa_notifications.sh tempwarn" $omconfig system alertaction event=tempfail alert=true broadcast=true execappath="/data/scripts/dellomsa_notifications.sh tempfail" $omconfig system alertaction event=fanwarn alert=true broadcast=true execappath="/data/scripts/dellomsa_notifications.sh fanwarn" $omconfig system alertaction event=fanfail alert=true broadcast=true execappath="/data/scripts/dellomsa_notifications.sh fanfail" $omconfig system alertaction event=voltwarn alert=true broadcast=true execappath="/data/scripts/dellomsa_notifications.sh voltwarn" $omconfig system alertaction event=voltfail alert=true broadcast=true execappath="/data/scripts/dellomsa_notifications.sh voltfail" $omconfig system alertaction event=intrusion alert=true broadcast=true execappath="/data/scripts/dellomsa_notifications.sh intrusion" $omconfig system alertaction event=redundegrad alert=true broadcast=true execappath="/data/scripts/dellomsa_notifications.sh redundegrad" $omconfig system alertaction event=redunlost alert=true broadcast=true execappath="/data/scripts/dellomsa_notifications.sh redunlost" $omconfig system alertaction event=memprefail alert=true broadcast=true execappath="/data/scripts/dellomsa_notifications.sh memprefail" $omconfig system alertaction event=memfail alert=true broadcast=true execappath="/data/scripts/dellomsa_notifications.sh memfail" $omconfig system alertaction event=hardwarelogwarn alert=true broadcast=true execappath="/data/scripts/dellomsa_notifications.sh hardwarelogwarn" $omconfig system alertaction event=hardwarelogfull alert=true broadcast=true execappath="/data/scripts/dellomsa_notifications.sh hardwarelogfull" $omconfig system alertaction event=processorwarn alert=true broadcast=true execappath="/data/scripts/dellomsa_notifications.sh processorwarn" $omconfig system alertaction event=processorfail alert=true broadcast=true execappath="/data/scripts/dellomsa_notifications.sh processorfail" $omconfig system alertaction event=watchdogasr alert=true broadcast=true execappath="/data/scripts/dellomsa_notifications.sh watchdogasr" $omconfig system alertaction event=batterywarn alert=true broadcast=true execappath="/data/scripts/dellomsa_notifications.sh batterywarn" $omconfig system alertaction event=batteryfail alert=true broadcast=true execappath="/data/scripts/dellomsa_notifications.sh batteryfail" $omconfig system alertaction event=systempowerwarn alert=true broadcast=true execappath="/data/scripts/dellomsa_notifications.sh systempowerwarn" $omconfig system alertaction event=systempowerfail alert=true broadcast=true execappath="/data/scripts/dellomsa_notifications.sh systempowerfail" $omconfig system alertaction event=systempeakpower alert=true broadcast=true execappath="/data/scripts/dellomsa_notifications.sh systempeakpower" $omconfig system alertaction event=removableflashmediapresent alert=true broadcast=true execappath="/data/scripts/dellomsa_notifications.sh removableflashmediapresent" $omconfig system alertaction event=removableflashmediaremoved alert=true broadcast=true execappath="/data/scripts/dellomsa_notifications.sh removableflashmediaremoved" $omconfig system alertaction event=removableflashmediafail alert=true broadcast=true execappath="/data/scripts/dellomsa_notifications.sh removableflashmediafail" $omconfig system alertaction event=storagesyswarn alert=true broadcast=true execappath="/data/scripts/dellomsa_notifications.sh storagesyswarn" $omconfig system alertaction event=storagesysfail alert=true broadcast=true execappath="/data/scripts/dellomsa_notifications.sh storagesysfail" $omconfig system alertaction event=storagectrlwarn alert=true broadcast=true execappath="/data/scripts/dellomsa_notifications.sh storagectrlwarn" $omconfig system alertaction event=storagectrlfail alert=true broadcast=true execappath="/data/scripts/dellomsa_notifications.sh storagectrlfail" $omconfig system alertaction event=pdiskwarn alert=true broadcast=true execappath="/data/scripts/dellomsa_notifications.sh pdiskwarn" $omconfig system alertaction event=pdiskfail alert=true broadcast=true execappath="/data/scripts/dellomsa_notifications.sh pdiskfail" $omconfig system alertaction event=vdiskwarn alert=true broadcast=true execappath="/data/scripts/dellomsa_notifications.sh vdiskwarn" $omconfig system alertaction event=vdiskfail alert=true broadcast=true execappath="/data/scripts/dellomsa_notifications.sh vdiskfail" $omconfig system alertaction event=enclosurewarn alert=true broadcast=true execappath="/data/scripts/dellomsa_notifications.sh enclosurewarn" $omconfig system alertaction event=enclosurefail alert=true broadcast=true execappath="/data/scripts/dellomsa_notifications.sh enclosurefail" $omconfig system alertaction event=storagectrlbatterywarn alert=true broadcast=true execappath="/data/scripts/dellomsa_notifications.sh storagectrlbatterywarn" $omconfig system alertaction event=storagectrlbatteryfail alert=true broadcast=true execappath="/data/scripts/dellomsa_notifications.sh storagectrlbatteryfail" exit 0