Commit ee7c9b4b authored by Voigt, Lars's avatar Voigt, Lars

Merge remote-tracking branch 'upstream/master'

parents 7ca2a1de 2118db1a
Pipeline #35039 passed with stage
......@@ -44,7 +44,7 @@ class TokenAuthUserAdmin(admin.ModelAdmin):
continue
try:
url = user.remote_reverse("health")
url = user.remote_reverse("api:health")
r = requests.get(url, headers=headers, timeout=5)
if r.status_code == 200:
......
#!/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