Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
Directory
Deep911
Thank you for writing the plugin. It's working with DS3400 and DS3300, but it did not notice all errors.
This error:
The following failures have been found:
Unreadable sector(s) detected
Storage Subsystem: DS3300
Unreadable sectors detected: 1
gave me the output (null).
you must change
*failure*)
case "$RESULT" in
*failed*|*Failed*)
echo $RESULT
echo "CRITICAL"
exit $STATE_CRITICAL
;;
to
*failure*)
case "$RESULT" in
*failed*|*Failed*|*failures*)
echo $RESULT
echo "CRITICAL"
exit $STATE_CRITICAL
;;
for the right output like this.
The following failures have been found: Unreadable sector(s) detected Storage Subsystem: DS3300 Unreadable sectors detected: 1
CRITICAL
This error:
The following failures have been found:
Unreadable sector(s) detected
Storage Subsystem: DS3300
Unreadable sectors detected: 1
gave me the output (null).
you must change
*failure*)
case "$RESULT" in
*failed*|*Failed*)
echo $RESULT
echo "CRITICAL"
exit $STATE_CRITICAL
;;
to
*failure*)
case "$RESULT" in
*failed*|*Failed*|*failures*)
echo $RESULT
echo "CRITICAL"
exit $STATE_CRITICAL
;;
for the right output like this.
The following failures have been found: Unreadable sector(s) detected Storage Subsystem: DS3300 Unreadable sectors detected: 1
CRITICAL
Owner's reply
Your patch kills the functionality to report "preferred path" errors as warnings. Anyway I can filter for *unreadable* to fix this. Thanks for the input!