X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=dsa-nagios-nrpe-config%2Fdebian%2Fpostinst;h=a90e03e6dcc23d4dcf9a75bbd42eb69b1a3436fe;hb=a46e7c6756ca6dd7b0bfd02c99030e92bd8b447d;hp=36ecebcf359ce21046766174b9aa040163f5bfed;hpb=b9b1308c1f999f539d660f88689fd64acf0351f8;p=mirror%2Fdsa-nagios.git diff --git a/dsa-nagios-nrpe-config/debian/postinst b/dsa-nagios-nrpe-config/debian/postinst index 36ecebc..a90e03e 100644 --- a/dsa-nagios-nrpe-config/debian/postinst +++ b/dsa-nagios-nrpe-config/debian/postinst @@ -12,7 +12,7 @@ if [ -e /etc/nagios/nrpe.cfg ] ; then fi if ! grep '^allowed_hosts=' /etc/nagios/nrpe.cfg > /dev/null; then echo - echo "WARNING: /etc/nagios/nrpe.cfg does not define allowed_hosts. Please fix." + echo "WARNING: /etc/nagios/nrpe.cfg does not define allowed_hosts. Please fix (set allowed_hosts=$NAGIOS_MASTER)." echo else found=0 @@ -30,6 +30,22 @@ if [ -e /etc/nagios/nrpe.cfg ] ; then fi fi +if [ -e /etc/default/nagios-nrpe-server ] ; then + if ! grep '^DAEMON_OPTS="--no-ssl"$' /etc/default/nagios-nrpe-server > /dev/null; then + echo + echo "WARNING: /etc/default/nagios-nrpe-server probably does not set DAEMON_OPTS=\"--no-ssl\". Please fix." + echo + fi +fi + + + +if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then + invoke-rc.d nagios-nrpe-server restart || exit $? +else + /etc/init.d/nagios-nrpe-server restart || exit $? +fi + #DEBHELPER# exit 0