[icinga-checkins] icinga.org: icinga-core/fholzer/core: Use internal which implementation

git at icinga.org git at icinga.org
Sat Apr 21 20:23:45 CEST 2012


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

Author: Alexander Wirt <formorer at debian.org>
Date:   Sat Apr 21 10:25:05 2012 +0200

Use internal which implementation

---

 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 29c0d71..0b90732 100644
--- a/tools/icinga_verification.pl
+++ b/tools/icinga_verification.pl
@@ -55,11 +55,11 @@ if( $oscheck eq 'MSWin32' ){
 }
 
 # MySQL Config if MySQL is used
-my $mysqlcheck = qx(which mysql);
+my $mysqlcheck = which('mysql');
 my ( $mysqlserver, $mysqluser, $mysqlpw ) = '';
 
 if (!$mysqlcheck ){
-	print "no Mysql Server Found, skip Config\n";
+	print "mysql not found, skipping\n";
 } else {
 
 	print "\nMysql Found! - start Config Script\n";





More information about the icinga-checkins mailing list