cookbook-zabbix/files/default/traps/idp.sh

13 lines
200 B
Bash
Raw Permalink Normal View History

2017-02-07 01:02:03 -05:00
#!/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