[icinga-checkins] icinga.org: icinga-core/fholzer/core: add icinga.cfg external commands

git at icinga.org git at icinga.org
Mon Apr 23 16:55:07 CEST 2012


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

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

add icinga.cfg external commands

---

 tools/icinga_verification.pl |    7 +++++++
 tools/todo                   |    5 -----
 2 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/tools/icinga_verification.pl b/tools/icinga_verification.pl
index 54ca444..9ed41f1 100644
--- a/tools/icinga_verification.pl
+++ b/tools/icinga_verification.pl
@@ -206,6 +206,10 @@ chomp($selinux);
 my $idocheck = qx( ps aux | grep [i]do2db | wc -l );
 chomp($idocheck);
 
+#icinga.cfg parsing
+#icinga external commands
+my $icingaextcmd = get_key_from_ini("$icinga_base/icinga.cfg", 'check_external_commands');
+
 #ido2db.cfg parsing
 #ido2db socket type
 my $ido2dbsocket = get_key_from_ini("$icinga_base/ido2db.cfg", 'socket_type');
@@ -319,6 +323,9 @@ Icinga Informations:
  Icinga DB-Version: $result_icingadb[0]
  ido2db last Connection Info:
  @result_icingaconninfo 
+ Icinga.cfg Information:
+ External Commands(1=on,0=off): $icingaextcmd
+ 
  ido2db Information:
  Server Type: $ido2dbservertype
  SSL Status: $ido2dbssl
diff --git a/tools/todo b/tools/todo
deleted file mode 100644
index 6c27e36..0000000
--- a/tools/todo
+++ /dev/null
@@ -1,5 +0,0 @@
-icinga.cfg parsing
-
-(11:51:31) dnsmichi|home_: is the core running with that icinga.cfg?
-(11:51:38) dnsmichi|home_: ps aux | grep icinga
-(11:52:07) SeLLeRoNe: icinga     984  0.0  0.0  98392  1708 ?        Ssl  01:23   0:03 /usr/local/icinga/bin/icinga -d /usr/local/icinga/etc/icinga.cfg
\ No newline at end of file





More information about the icinga-checkins mailing list