[icinga-checkins] icinga.org: icinga-core/fholzer/core: add idomod information

git at icinga.org git at icinga.org
Mon Apr 23 16:44:12 CEST 2012


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

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

add idomod information
upgrade ido2db information

---

 tools/icinga_verification.pl |   28 +++++++++++++++++++++++-----
 1 files changed, 23 insertions(+), 5 deletions(-)

diff --git a/tools/icinga_verification.pl b/tools/icinga_verification.pl
index fbe6be3..54ca444 100644
--- a/tools/icinga_verification.pl
+++ b/tools/icinga_verification.pl
@@ -219,12 +219,22 @@ my $ido2dbssl = get_key_from_ini("$icinga_base/ido2db.cfg", 'use_ssl');
 #ido2db Servertype
 my $ido2dbservertype = get_key_from_ini("$icinga_base/ido2db.cfg", 'db_servertype');
 
-#ido2db Server port
-#db_port=
+#ido2db Socket Name
+my $ido2dbsocketname = get_key_from_ini("$icinga_base/ido2db.cfg", 'socket_name');
 
-#ido2db Server Socket
-#db_socket=
 
+#IDOMOD.cfg parsing
+#Output Socket
+my $idomodsocket = get_key_from_ini("$icinga_base/idomod.cfg", 'output_type');
+
+#Output
+my $idomodoutput = get_key_from_ini("$icinga_base/idomod.cfg", 'output');
+
+#idomod SSL Status
+my $idomodssl = get_key_from_ini("$icinga_base/idomod.cfg", 'use_ssl');
+
+#idomod SSL Status
+my $idomodtcpport = get_key_from_ini("$icinga_base/idomod.cfg", 'tcp_port');
 
 # MySQL Checks #
 my $dbh_conn_error = '';
@@ -309,10 +319,18 @@ Icinga Informations:
  Icinga DB-Version: $result_icingadb[0]
  ido2db last Connection Info:
  @result_icingaconninfo 
- ido2db Options:
+ ido2db Information:
  Server Type: $ido2dbservertype
  SSL Status: $ido2dbssl
  Socket Type: $ido2dbsocket
+ Socket Name: $ido2dbsocketname
+ TCP Port: $ido2dbtcpport
+ 
+ idomod Information:
+ Output Type: $idomodsocket
+ Output: $idomodoutput
+ SSL Status: $idomodssl
+ TCP Port: $idomodtcpport
  
  Testing Mysql Connection with ido2db.cfg:
 EOF





More information about the icinga-checkins mailing list