Build precise queries to find exactly what you need
Press ESC to close
Nagios World Conference 2026:ย Sept. 14-17ย in St. Paul, MN |ย Learn More
I modified the end of this to give critical to any critical issues. Then if nothing critical, it checks for any high alerts which outputs as a warning. ########### if [[ $CRIT_VULNS -gt $CRITICAL_THRESHOLD ]]; then echo “CRITICAL – There are $CRIT_VULNS critical and $HIGH_VULNS high vulnerabilities in $TARGET_SCAN. | $PERF_DATA” exit 2 elif [[ $HIGH_VULNS -gt $WARNING_THRESHOLD ]]; then echo “WARNING – There are $CRIT_VULNS critical and $HIGH_VULNS high vulnerabilities in $TARGET_SCAN. | $PERF_DATA” exit 1 else echo “OK – There are $CRIT_VULNS critical and $HIGH_VULNS high vulnerabilities in $TARGET_SCAN. | $PERF_DATA” exit 0 fi
echo “UNKNOWN – Check script output” exit 3