Commit 2118db1a authored by Daniel Schreiber's avatar Daniel Schreiber

Monitoring Scripte

parent 6797d401
#!/bin/bash
. /var/www/django/frms/env/bin/activate
/var/www/django/frms/app/manage.py check_health -v2 >/dev/null 2>&1
if [ $? -eq 0 ]
then
echo "0 saxidapi dummy=0;0;0;0; OK - SaxID API Status"
else
echo "2 saxidapi dummy=0;0;0;0; CRIT - SaxID API Status"
fi
#!/bin/bash
OUT=$(/var/www/django/frms/env/bin/python /var/www/django/frms/app/manage.py check_health -v3)
RC=$?
echo "$OUT"
if [[ $RC -gt 0 ]] ; then
echo "&red Check fehlgeschlagen"
exit $RED
fi
exit $GREEN
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment