I am running NagiosXI 2014R1.4, checking a host passively with NRDS. Here is the block of code that returns to Nagios server:
Code: Select all
#Nagios Return
if [[ $lineCount -eq 0 ]]; then
echo "LINES OK - No hung lines"
exit $ALERT_OK
else
if [[ $lineCount -ge $THRESHOLD_LINES ]]; then
ALERT_LEVEL="CRITICAL"
EXIT_ALERT=$ALERT_CRITICAL
else
ALERT_LEVEL="WARNING"
EXIT_ALERT=$ALERT_WARNING
fi
echo "LINES $ALERT_LEVEL - $lineCount hung lines |\c"
for output in "${hungLine[@]}"
do
echo "\\n$output\c"
done
exit $EXIT_ALERT
fi
Code: Select all
LINES WARNING - 1 hung lines |
Hung line on VRU qcolvru01 - Board 4 - Line 1 (since 10/01/2014 10:57)I am wondering if I am formatting the output improperly, if there is a setting within Nagios XI I am missing, or if I am experiencing some sort of hard limit from NRDS. Any help is appreciated, thank you.