[icinga-checkins] icinga.org: icinga-core/fholzer/core: fixed typo in get_version

git at icinga.org git at icinga.org
Mon Apr 23 15:32:39 CEST 2012


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

Author: Franz Holzer <office at frankstar.at>
Date:   Mon Apr 23 15:15:54 2012 +0200

fixed typo in get_version

---

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

diff --git a/tools/icinga_verification.pl b/tools/icinga_verification.pl
index 9f0df5d..ef72ff4 100644
--- a/tools/icinga_verification.pl
+++ b/tools/icinga_verification.pl
@@ -239,10 +239,11 @@ if ( !$mysqlcheck ) {
             RaiseError => 0
         }
         )
-        or die color("red"),
-        "\nMySQL Connect Failed. - check your input or MySQL Process\n",
+        or warn color("red"),
+        "\nMySQL Connect Failed. - Skip Mysql Querys.\n",
         color("reset");
 
+
     # Query icinga DB Version
     $icinga_dbversion = 'SELECT version FROM icinga_dbversion';
     $sth = $dbh_cfg->prepare($icinga_dbversion) or warn $DBI::errstr;
@@ -414,7 +415,7 @@ sub find_icinga_dir {
 
 sub get_icinga_version {
     if (which('icinga')) {
-		open( my $fh, '-|', which('icinga') . " --help")
+		open(my $fh, '-|', which('icinga') . " --help");
         while (my $line = <$fh>) {
             if ($line =~ /^Icinga (.*)/) {
                 return $1;
@@ -428,7 +429,7 @@ sub get_icinga_version {
 
 sub get_ido2db_version {
     if (which('ido2db')) {
-        open( my $fh, '-|', which('ido2db') . " --help")
+        open(my $fh, '-|', which('ido2db') . " --help");
         while (my $line = <$fh>) {
             if ($line =~ /^IDO2DB (.*)/) {
                 return $1;





More information about the icinga-checkins mailing list