#!/bin/sh # check_mk check f. LSI Controller # # 10/2010 Matthias Henze # Lizenz: GPL v2 if which mpt-status >/dev/null ; then echo '<<>>' for i in $(mpt-status -p | grep Found | cut -d " " -f 3 | cut -d "=" -f 2 | cut -d "," -f 1) do mpt-status -i $i -n | grep phys_id done echo '<<>>' for i in $(mpt-status -p | grep Found | cut -d " " -f 3 | cut -d "=" -f 2 | cut -d "," -f 1) do mpt-status -i $i -n | grep vol_id done fi