/usr/lib/debian-edu-config/testsuite/nagios is in debian-edu-config 1.818+deb8u2.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | #!/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/nagios3 ] ; then
echo "success: $0: Found /usr/sbin/nagios3 binary."
else
echo "error: $0: Missing /usr/sbin/nagios3."
fi
if [ -x /usr/sbin/nagios3stats ] ; then
for field in NUMSVCCRIT NUMSVCWARN NUMSVCUNKN; do
count="$(nagios3stats -m -d$field)"
if [ 0 = "$count" ] ; then
echo "success: $0: Nagios count $field is zero."
else
echo "error: $0: Nagios count $field is not zero but $count."
fi
done
else
echo "error: $0: Missing /usr/sbin/nagios3stats."
fi
|