#!/bin/sh if test -r /etc/debian-edu/config ; then . /etc/debian-edu/config fi # Only Main-Server got Nagios running if echo "$PROFILE" | grep -q Main-Server ; then : else exit 0 fi if [ -x /usr/sbin/icinga2 ] ; then echo "success: $0: Found /usr/sbin/icinga2 binary." else echo "error: $0: Missing /usr/sbin/icinga2." fi if [ -f /etc/apache2/conf-enabled/icingaweb2.conf ] ; then echo "success: $0: The Icinga 2 web site is enabled." else echo "error: $0: The Icinga 2 web site is missing." fi if [ -f /etc/icingaweb2/roles.ini ] ; then echo "success: $0: The Icinga 2 web site configuration succeeded." else echo "error: $0: The Icinga 2 web site configuration is missing." fi