#!/bin/bash

# OMD: determine our current site. This file is shared between
# all sites of the same version. We make use of the fact that
# this file is called via its symbolic path $OMD_ROOT/bin/check_mk.
# Also we know the site if we are not root.

if [ -z "$OMD_ROOT" ]
then
    echo "You can call check_mk only as OMD site user." >&2
    exit 1
fi

exec python $OMD_ROOT/share/check_mk/modules/check_mk.py "$@"
