[icinga-checkins] icinga.org: icinga-core/fholzer/core: Fixed Output for ido2b Mysql Connection

git at icinga.org git at icinga.org
Mon Apr 23 09:50:42 CEST 2012


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

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

Fixed Output for ido2b Mysql Connection

---

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

diff --git a/tools/icinga_verification.pl b/tools/icinga_verification.pl
index 0506614..a8f0cfa 100644
--- a/tools/icinga_verification.pl
+++ b/tools/icinga_verification.pl
@@ -162,7 +162,6 @@ my $idocheck = qx( ps aux | grep [i]do2db | wc -l );
 chomp($idocheck);
 
 # ido2db.cfg parsing
-######## read in complete file and write needed values in an Array !##################
 
 #ido2db socket type
 my $ido2dbsocket = get_key_from_ini("$icinga_base/ido2db.cfg", 'socket_type');
@@ -264,6 +263,7 @@ if ( !$mysqlcheck ) {
 
     if ( !$dbh_cfg_error ) {
         $dbh_cfg->disconnect();
+		$dbh_cfg_error = "Connection OK!"
     }
 }
 





More information about the icinga-checkins mailing list