3 INSPECTOR_TYPE=${INSPECTOR_TYPE:-sample}
5 function is_inspector_supported {
7 [[ -f $TOP_DIR/lib/inspectors/$inspector ]]
10 function is_inspector {
12 [[ $inspector == $INSPECTOR_TYPE ]]
15 function start_inspector {
16 start_inspector_$INSPECTOR_TYPE
19 function stop_inspector {
20 stop_inspector_$INSPECTOR_TYPE
23 function cleanup_inspector {
24 cleanup_inspector_$INSPECTOR_TYPE
28 if ! is_inspector_supported $INSPECTOR_TYPE; then
29 die $LINENO "INSPECTOR_TYPE=$INSPECTOR_TYPE is not supported."
32 source $TOP_DIR/lib/inspectors/$INSPECTOR_TYPE