File sendreport.sh of Package nagios-nsca-check

#!/bin/sh

DIR="/var/spool/monitoring"

if [ -s "$DIR/report" ]; then
  mv $DIR/report $DIR/$$
  touch $DIR/report
  /usr/sbin/send_nsca < $DIR/$$ > /dev/null
  rm -f $DIR/$$
fi
openSUSE Build Service is sponsored by