[icinga-checkins] icinga.org: icinga-core/fholzer/core: add selinux check

git at icinga.org git at icinga.org
Mon Apr 23 16:08:54 CEST 2012


Module: icinga-core
Branch: fholzer/core
Commit: b1cf34a91786c2c596ccdc75fcea7e049547f105
URL:    https://git.icinga.org/?p=icinga-core.git;a=commit;h=b1cf34a91786c2c596ccdc75fcea7e049547f105

Author: Franz Holzer <office at frankstar.at>
Date:   Mon Apr 23 16:08:57 2012 +0200

add selinux check

---

 tools/icinga_verification.pl |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/tools/icinga_verification.pl b/tools/icinga_verification.pl
index 0b4e4a4..44d9abd 100644
--- a/tools/icinga_verification.pl
+++ b/tools/icinga_verification.pl
@@ -194,6 +194,10 @@ my $icingaversion = get_icinga_version();
 # ido2db version
 my $ido2dbversion = get_ido2db_version();
 
+# Selinux Check | selinuxenabled
+my $selinux = which('selinuxenabled') ? qx(getenforce) : 'selinux binary not found';
+chomp($selinux);
+
 ################################
 # Icinga Checks
 ################################
@@ -294,6 +298,9 @@ PHP Information:
  
 MySQL Information:
  $mysqlver
+
+Selinux Status:
+ $selinux 
  
 Icinga Informations:
  icinga version: $icingaversion





More information about the icinga-checkins mailing list