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

set status to critical on conflicts and problems

parent ba77c317
No related branches found
No related tags found
1 merge request!976010 check pqsql
...@@ -254,7 +254,7 @@ case "${sMode}" in ...@@ -254,7 +254,7 @@ case "${sMode}" in
# sum of 7th column (with delta per sec) # sum of 7th column (with delta per sec)
typeset -i iTotal; iTotal=$( echo "$out" | awk '{ sum+=$7} END { print sum;}' ) typeset -i iTotal; iTotal=$( echo "$out" | awk '{ sum+=$7} END { print sum;}' )
if [ $iTotal -gt 0 ]; then if [ $iTotal -gt 0 ]; then
ph.setStatus "warning" ph.setStatus "critical"
fi fi
descr+=" - currently $iTotal per ${deltaunit}" descr+=" - currently $iTotal per ${deltaunit}"
;; ;;
...@@ -292,7 +292,7 @@ case "${sMode}" in ...@@ -292,7 +292,7 @@ case "${sMode}" in
# sum of 7th column (with delta per sec) # sum of 7th column (with delta per sec)
typeset -i iTotal; iTotal=$( echo "$out" | awk '{ sum+=$7} END { print sum;}' ) typeset -i iTotal; iTotal=$( echo "$out" | awk '{ sum+=$7} END { print sum;}' )
if [ $iTotal -gt 0 ]; then if [ $iTotal -gt 0 ]; then
ph.setStatus "warning" ph.setStatus "critical"
fi fi
descr+=" - currently $iTotal per ${deltaunit}" descr+=" - currently $iTotal per ${deltaunit}"
;; ;;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment