[icinga-checkins] icinga.org: icinga-core/fholzer/core: phpversion in one step

git at icinga.org git at icinga.org
Fri Apr 20 20:42:06 CEST 2012


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

Author: Alexander Wirt <formorer at grml.org>
Date:   Fri Apr 20 16:59:39 2012 +0200

phpversion in one step

---

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

diff --git a/tools/icinga_verification.pl b/tools/icinga_verification.pl
index 78d0d67..b4d3bd0 100644
--- a/tools/icinga_verification.pl
+++ b/tools/icinga_verification.pl
@@ -111,7 +111,8 @@ if (@files == 0) {
 }
 
 # PHP Version
-my @phpversion = qx(php -v);
+my $phpversion = (qx(php -v))[0];
+chomp($phpversion);
 
 #Current Time/Date
 my $date = localtime();
@@ -251,7 +252,7 @@ print " Kernel Version: $osversion";
 print " Environment-$LANG";
 print "\n Webserver Information:\n";
 print @apacheinfo, "\n";
-print "\n PHP Information:\n $phpversion[0]";
+print "\n PHP Information:\n $phpversion";
 print "\n MySQL Information:\n $mysqlver\n";
 print "\n Icinga Informations:\n";
 print " idomod Connections: $idocheck\n";





More information about the icinga-checkins mailing list