What's the qnap string for a warning or failed disk?
Posted: Mon Sep 16, 2019 11:42 pm
I'm working on setting up my qnap monitoring. I logged into the shell and ran some test commands.
My questions is, there are two fields for warning and critical(see attached) when you setup this device. What would you put in these fields? I'm assuming CRITICAL: ERROR for failed? What about warning?
Code: Select all
@nems:/usr/local/nagios/libexec $ ./check_qnap3.sh 192.168.3.7 public hd1status 0 0
OK: GOOD
@nems:/usr/local/nagios/libexec $ ./check_qnap3.sh 192.168.3.7 public hd0status 0 0
Unknown Part!
@nems:/usr/local/nagios/libexec $ ./check_qnap3.sh 192.168.3.7 public hd2status 0 0
OK: GOOD
@nems:/usr/local/nagios/libexec $ ./check_qnap3.sh 192.168.3.7 public hd3status 0 0
OK: GOOD
@nems:/usr/local/nagios/libexec $ ./check_qnap3.sh 192.168.3.7 public hd4status 0 0
OK: GOOD
@nems:/usr/local/nagios/libexec $ ./check_qnap3.sh 192.168.3.7 public hd5status 0 0
CRITICAL: ERROR
My questions is, there are two fields for warning and critical(see attached) when you setup this device. What would you put in these fields? I'm assuming CRITICAL: ERROR for failed? What about warning?