This commit is contained in:
Sylvestre Ledru 2018-01-13 16:09:20 +00:00 committed by GitHub
commit a4edfed6cd
1 changed files with 7 additions and 0 deletions

View File

@ -94,6 +94,8 @@ nrpe_critical=0
nrpe_unknown=0
nrpe_vuln=""
ret=0
__echo()
{
opt="$1"
@ -365,6 +367,9 @@ pvulnstatus()
VULN) pstatus red 'VULNERABLE' "$@";;
OK) pstatus green 'NOT VULNERABLE' "$@";;
esac
case "$vulnstatus" in
UNK|VULN) ret=1
esac
}
@ -980,3 +985,5 @@ fi
if [ "$opt_batch" = 1 -a "$opt_batch_format" = "json" ]; then
_echo 0 ${json_output%?}]
fi
exit $ret