removed inv for selinux; fixed modedisabled nagios status code
This commit is contained in:
parent
223e92b076
commit
e647ff5af7
@ -3,7 +3,7 @@
|
||||
# Author: Marius Pana <mp@spearhead.systems>
|
||||
|
||||
factory_settings["selinux_default_levels"] = {
|
||||
"modedisabled" : 0,
|
||||
"modedisabled" : 2,
|
||||
"curmodepermissive" : 1,
|
||||
"filemodepermissive" : 2,
|
||||
}
|
||||
@ -12,7 +12,8 @@ def inventory_selinux(info):
|
||||
inventory = []
|
||||
for line in info:
|
||||
# inventory.append( (line[0], "selinux_default_levels") )
|
||||
yield line[0], selinux_default_levels
|
||||
# yield line[0], selinux_default_levels
|
||||
yield None
|
||||
# return inventory
|
||||
|
||||
def check_selinux(item, params, info):
|
||||
@ -34,7 +35,7 @@ check_info["selinux"] = {
|
||||
"inventory_function" : inventory_selinux,
|
||||
"check_function" : check_selinux,
|
||||
"has_perfdata" : False,
|
||||
"service_description" : "SELinux status",
|
||||
"service_description" : "SELinux state",
|
||||
"default_levels_variable" : "selinux_default_levels",
|
||||
'group': 'selinux',
|
||||
}
|
Loading…
Reference in New Issue
Block a user