2f88b9b6bdd43140ed43274b7c3ac3eea3b16da6
[puppet_munin.git] / files / plugins / selinuxenforced
1 #!/bin/sh
2 # -*- sh -*-
3 #
4 # Plugin to count the daily amount of Virii (qmailscan)
5 #
6 # Contributed by David Obando (david@cryptix.de) - 03.12.2005
7 #
8
9 # define the logfiles. when you rotate them at any other time than 00:00 you have to define two logfiles:
10 #LOG0=/var/spool/qmailscan/quarantine.log
11 #LOG1=/var/spool/qmailscan/quarantine.log.1
12
13 if [ "$1" = "autoconf" ]; then
14         echo yes
15         exit 0
16 fi
17
18 if [ "$1" = "config" ]; then
19         echo 'graph_title enforced amount'
20         echo 'graph_args --upper-limit 1 -l 0 '
21         echo 'graph_vlabel Is the system selinux enforced?'
22         echo 'graph_scale no\n';
23         echo 'graph_category selinux'
24                 echo 'enforced.label IsEnforced'
25         #echo 'enforced.draw AREA'
26                 echo 'enforced.draw LINE2'
27
28         exit 0
29 fi
30
31 echo -n "enforced.value " && cat /selinux/enforce
32