[icinga-checkins] icinga.org: icinga-core/fholzer/core: bugfix get_ido2db and get_icinga_version

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


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

Author: Franz Holzer <office at frankstar.at>
Date:   Mon Apr 23 14:45:04 2012 +0200

bugfix get_ido2db and get_icinga_version

---

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

diff --git a/tools/icinga_verification.pl b/tools/icinga_verification.pl
index be8a7b3..9f0df5d 100644
--- a/tools/icinga_verification.pl
+++ b/tools/icinga_verification.pl
@@ -414,7 +414,7 @@ sub find_icinga_dir {
 
 sub get_icinga_version {
     if (which('icinga')) {
-        open( my $fh, '-|', "icinga --help" );
+		open( my $fh, '-|', which('icinga') . " --help")
         while (my $line = <$fh>) {
             if ($line =~ /^Icinga (.*)/) {
                 return $1;
@@ -428,7 +428,7 @@ sub get_icinga_version {
 
 sub get_ido2db_version {
     if (which('ido2db')) {
-        open( my $fh, '-|', "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