Skip to content
Snippets Groups Projects
Commit bee00b1e authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

show exitcode of check in the log

parent e2d9fd0a
No related branches found
No related tags found
1 merge request!95127 detect 5xx server error
...@@ -403,9 +403,9 @@ function processCheck(){ ...@@ -403,9 +403,9 @@ function processCheck(){
# _testHttpOk ${_response} >/dev/null # _testHttpOk ${_response} >/dev/null
http.isOk >/dev/null http.isOk >/dev/null
if [ $? -eq 0 ]; then if [ $? -eq 0 ]; then
_elog "${_logPrefix} OK, response was sent to Icinga" _elog "${_logPrefix} rc=$rc - OK, response was sent to Icinga"
else else
_elog "${_logPrefix} WARNING: the check response was NOT sent to Icinga" _elog "${_logPrefix} rc=$rc - WARNING: the check response was NOT sent to Icinga"
_rc=$_rc+1 _rc=$_rc+1
_echo _echo
_echo For Debugging: _echo For Debugging:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment