[icinga-checkins] icinga.org: icinga-core/fholzer/core: delete deactivated checks

git at icinga.org git at icinga.org
Mon Apr 23 12:22:34 CEST 2012


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

Author: Franz Holzer <office at frankstar.at>
Date:   Mon Apr 23 12:22:35 2012 +0200

delete deactivated checks

---

 tools/icinga_verification.pl |   22 ++--------------------
 1 files changed, 2 insertions(+), 20 deletions(-)

diff --git a/tools/icinga_verification.pl b/tools/icinga_verification.pl
index fe0eb46..d182aee 100644
--- a/tools/icinga_verification.pl
+++ b/tools/icinga_verification.pl
@@ -81,7 +81,8 @@ if (! $icinga_base ) {
 
 # MySQL Config if MySQL is used
 
-#ido2db Mysql Config
+#ido2db Mysql Config parsing
+
 #ido2db Server Host Name
 my $mysqlserver_cfg =  get_key_from_ini("$icinga_base/ido2db.cfg", 'db_host');
 #ido2db DB User
@@ -263,27 +264,8 @@ if ( !$mysqlcheck ) {
     }
 
     $dbh_cfg->disconnect();
-
-    # ido2db.cfg Connection test
-#    $dbh_cfg = DBI->connect(
-#       "dbi:mysql:database=$mysqldb_cfg; host=$mysqlserver_cfg:mysql_server_prepare=1",
-#        "$mysqluser_cfg",
-#        "$mysqlpw_cfg",
-#        {   PrintError => 0,
-#            RaiseError => 0
-#        }
-#        )
-#        or $dbh_cfg_error =
-#        "ido2db.cfg - MySQL Connect Failed. - check your config";
-#
-#    chomp($dbh_cfg_error);
-
-#    if ( !$dbh_cfg_error ) {
-#        $dbh_cfg->disconnect();
-#    }
 }
 
-
 # Test Print Out
 # later create a fileout with the output
 





More information about the icinga-checkins mailing list