new checks

This commit is contained in:
Moritz Rudert (helios)
2013-01-20 18:06:00 +01:00
parent 46ef150932
commit 9e5842723d
7 changed files with 175 additions and 56 deletions

17
check_rkhunter Executable file
View File

@@ -0,0 +1,17 @@
#!/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"