Merge pull request #5149 from Security-Onion-Solutions/gridraid

Grid Fixes
This commit is contained in:
Mike Reeves
2021-08-13 18:42:34 -04:00
committed by GitHub

View File

@@ -35,7 +35,7 @@ appliance_check() {
}
check_nsm_raid() {
PERCCLI=$(/opt/raidtools/perccli/perccli64 /c0/v0 show|grep Raid|grep Optl)
PERCCLI=$(/opt/raidtools/perccli/perccli64 /c0/v0 show|grep RAID|grep Optl)
MEGACTL=$(/opt/raidtools/megasasctl |grep optimal)
if [[ $APPLIANCE == '1' ]]; then
@@ -52,7 +52,7 @@ check_nsm_raid() {
}
check_boss_raid() {
MVCLI=$(/opt/raidtools/megasasctl |grep optimal)
MVCLI=$(/usr/local/bin/mvcli info -o vd |grep status |grep functional)
if [[ -n $DUDEYOUGOTADELL ]]; then
if [[ -n $MVCLI ]]; then
@@ -83,9 +83,11 @@ check_software_raid() {
appliance_check
check_nsm_raid
check_boss_raid
{%- if salt['grains.get']('sosmodel', '') %}
{%- if grains['sosmodel'] in ['SOSMN', 'SOSSNNV'] %}
check_software_raid
{%- endif %}
{%- endif %}
if [[ -n $SWRAID ]]; then
if [[ $SWRAID == '0' && BOSSRAID == '0' ]]; then