improved enforced munin plugin
authormh <mh@immerda.ch>
Sat, 30 May 2009 18:20:54 +0000 (20:20 +0200)
committermh <mh@immerda.ch>
Sat, 30 May 2009 18:20:54 +0000 (20:20 +0200)
files/plugins/selinuxenforced

index 16a3f66..e157e3d 100755 (executable)
@@ -23,5 +23,8 @@ if [ "$1" = "config" ]; then
         exit 0
 fi
 
-echo -n "enforced.value " && cat /selinux/enforce
-
+if [ -r /selinux/enforce ]; then
+  echo -n "enforced.value " && cat /selinux/enforce
+else
+  echo "enforced.value 0"
+fi