#!/usr/share/ucs-test/runner bash
# shellcheck shell=bash
## desc: Check for S4 connector rejected objects
## exposure: safe
## bugs: [37011, 37324, 37570]
## packages:
## - univention-nagios-s4-connector
## tags:
##  - apptest
## versions:
##  4.0-0: skip
##  4.0-1: skip
##  4.1-3: fixed

. /usr/share/univention-lib/ucr.sh || exit 137

rc=0
if is_ucr_true connector/s4/autostart; then
	univention-s4connector-list-rejected || rc=$?
	/usr/lib/nagios/plugins/check_univention_s4_connector || rc=$?
fi
exit $rc
