eidas health check binary
This commit is contained in:
parent
63a07de7dd
commit
04a5ca91c4
1 changed files with 15 additions and 0 deletions
15
global/overlay/usr/lib/nagios/plguins/check_eidas_health.sh
Normal file
15
global/overlay/usr/lib/nagios/plguins/check_eidas_health.sh
Normal file
|
@ -0,0 +1,15 @@
|
|||
#!/bin/bash
|
||||
|
||||
. /usr/lib/nagios/plugins/utils.sh
|
||||
|
||||
status=`wget --no-check-certificate -qO- https://$1:444/manage/health`
|
||||
echo $status | jq -r '.status' | grep -q "UP"
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "CRITICAL - Service FAIL"
|
||||
echo $status
|
||||
exit $STATE_CRITICAL
|
||||
else
|
||||
echo "OK - Service healthy"
|
||||
echo $status
|
||||
exit $STATE_OK
|
||||
fi
|
Loading…
Add table
Reference in a new issue