mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-07 17:52:46 +01:00
Merge pull request #5149 from Security-Onion-Solutions/gridraid
Grid Fixes
This commit is contained in:
@@ -35,7 +35,7 @@ appliance_check() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
check_nsm_raid() {
|
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)
|
MEGACTL=$(/opt/raidtools/megasasctl |grep optimal)
|
||||||
|
|
||||||
if [[ $APPLIANCE == '1' ]]; then
|
if [[ $APPLIANCE == '1' ]]; then
|
||||||
@@ -52,7 +52,7 @@ check_nsm_raid() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
check_boss_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 $DUDEYOUGOTADELL ]]; then
|
||||||
if [[ -n $MVCLI ]]; then
|
if [[ -n $MVCLI ]]; then
|
||||||
@@ -83,9 +83,11 @@ check_software_raid() {
|
|||||||
appliance_check
|
appliance_check
|
||||||
check_nsm_raid
|
check_nsm_raid
|
||||||
check_boss_raid
|
check_boss_raid
|
||||||
|
{%- if salt['grains.get']('sosmodel', '') %}
|
||||||
{%- if grains['sosmodel'] in ['SOSMN', 'SOSSNNV'] %}
|
{%- if grains['sosmodel'] in ['SOSMN', 'SOSSNNV'] %}
|
||||||
check_software_raid
|
check_software_raid
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
{%- endif %}
|
||||||
|
|
||||||
if [[ -n $SWRAID ]]; then
|
if [[ -n $SWRAID ]]; then
|
||||||
if [[ $SWRAID == '0' && BOSSRAID == '0' ]]; then
|
if [[ $SWRAID == '0' && BOSSRAID == '0' ]]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user