cookbook-zabbix/files/default/traps/idp.sh
2017-02-07 01:02:03 -05:00

12 lines
200 B
Bash
Executable file

#!/bin/bash
curl -ks https://localhost/idp/status | grep "idp_version" >/dev/null 2>&1
ret=$?
if [[ "$ret" -ne 0 ]]
then
echo "- shibboleth.idp.status 0"
else
echo "- shibboleth.idp.status 1"
fi