nagios/check_rkhunter
Moritz Rudert (helios) 9e5842723d new checks
2013-01-20 18:06:00 +01:00

18 lines
313 B
Bash
Executable File

#!/bin/bash
if [ ! -f /etc/rkhunter.conf ]; then
error="rkhunter.conf not found. So probably rkhunter is not installed!"
status=1
else
error="rkhunter.conf found. So rkhunter is installed."
status=0
fi
if [ "$status" -eq 0 ]; then
echo "[OK] $error"
else
echo "[CRITICAL] $error"
fi
exit "$status"