Created
May 22, 2012 15:03
-
-
Save NetworksAreMadeOfString/2769630 to your computer and use it in GitHub Desktop.
Extract from one of my Chef Recipes for configuring the execution alert action in OMSA
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
["powersupply","powersupplywarn","tempwarn","tempfail","fanwarn","fanfail","voltwarn","voltfail","redundegrad","redunlost","memprefail","memfail","hardwarelogwarn","hardwarelogfull","processorwarn","processorfail","watchdogasr","batterywarn","batteryfail","systempowerwarn","systempowerfail","systempeakpower","removableflashmediapresent","removableflashmediaremoved","removableflashmediafail","storagesyswarn","storagesysfail","storagectrlwarn","storagectrlfail","pdiskwarn","pdiskfail","vdiskwarn","vdiskfail","enclosurewarn","enclosurefail","storagectrlbatterywarn","storagectrlbatteryfail"].each do |alert_name| | |
execute "Set up alert for #{alert_name}" do | |
command "/opt/dell/srvadmin/bin/omconfig system alertaction event=#{alert_name} alert=true broadcast=true execappath=\"php /opt/dell/omsa_alerting.php #{alert_name}\"" | |
action :run | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment