Cheat Sheets

System - RAID State

Description

There should be no RAID errors. Uses Nagios plugin check_raid from Debian package nagios-plugins-contrib to check RAID errors.

Check Script: system-raid-state.sh

#!/bin/bash

if [ -x /usr/lib/nagios/plugins/check_raid ]; then output=$(/usr/lib/nagios/plugins/check_raid) case $? in 1) result_warning "RAID State" "$output" ;; 2) result_failed "RAID State" "$output" ;; 0) result_ok "RAID State" "$output";; esac fi
Comment on Disqus