diff options
author | Marcel Haerry <haerry@puzzle.ch> | 2008-04-22 11:43:26 +0200 |
---|---|---|
committer | Marcel Haerry <haerry@puzzle.ch> | 2008-04-22 11:43:26 +0200 |
commit | 09790b4f100dc0268a65e99a84dc19100594fa75 (patch) | |
tree | 7f846dff622e0feaca87e5c23e615ce0df12f3ed /files/plugins/selinuxenforced | |
parent | b7d5281fa67ff330c28571c9b8df602acba65437 (diff) | |
parent | ebe1a5fdc83e550529fb11f6dd136bda38a0c689 (diff) |
merged immerda
Diffstat (limited to 'files/plugins/selinuxenforced')
-rwxr-xr-x | files/plugins/selinuxenforced | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/files/plugins/selinuxenforced b/files/plugins/selinuxenforced new file mode 100755 index 0000000..16a3f66 --- /dev/null +++ b/files/plugins/selinuxenforced @@ -0,0 +1,27 @@ +#!/bin/sh +# -*- sh -*- +# +# Plugin to monitor the status of selinux +# +# Contributed by admin(at)immerda.ch + +if [ "$1" = "autoconf" ]; then + echo yes + exit 0 +fi + +if [ "$1" = "config" ]; then + echo 'graph_title enforced amount' + echo 'graph_args --upper-limit 1 -l 0 ' + echo 'graph_vlabel Is the system selinux enforced?' + echo 'graph_scale no\n'; + echo 'graph_category selinux' + echo 'enforced.label IsEnforced' + #echo 'enforced.draw AREA' + echo 'enforced.draw LINE2' + + exit 0 +fi + +echo -n "enforced.value " && cat /selinux/enforce + |