Skip to content
Snippets Groups Projects

Update icinga checks and docs

Merged Hahn Axel (hahn) requested to merge 6468-docs-and-harmonize into master
1 file
+ 2
3
Compare changes
  • Side-by-side
  • Inline
+ 2
3
@@ -3,7 +3,6 @@
#
# NAGIOS CLIENT CHECK :: see https://projects.iml.unibe.ch/projects/sysadmin/work_packages/3839/activity
#
# ======================================================================
@@ -19,8 +18,8 @@ for myHost in $lbList
do
ping -c 1 $myHost >$tmpfile || ph.setStatus "critical"
grep "Redirect Host" $tmpfile >/dev/null && ph.setStatus "critical"
ip=`head -1 $tmpfile | cut -f 2 -d '(' | cut -f 1 -d ')'`
loss=`grep "packet loss" $tmpfile | cut -f 6 -d " "`
ip=$(head -1 $tmpfile | cut -f 2 -d '(' | cut -f 1 -d ')')
loss=$(grep "packet loss" $tmpfile | cut -f 6 -d " ")
ph.status "Check LB $myHost $ip - $loss loss"
test "$loss" = "0%" || cat $tmpfile
Loading