[icinga-checkins] icinga.org: icinga-core/fholzer/core: FIXME - PATH to syslog not hardcoded

git at icinga.org git at icinga.org
Tue Apr 24 13:41:00 CEST 2012


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

Author: Franz Holzer <office at frankstar.at>
Date:   Tue Apr 24 13:39:40 2012 +0200

FIXME - PATH to syslog not hardcoded

---

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

diff --git a/tools/icinga_verification.pl b/tools/icinga_verification.pl
index 3bbfc4b..1708558 100644
--- a/tools/icinga_verification.pl
+++ b/tools/icinga_verification.pl
@@ -200,6 +200,7 @@ my $selinux = which('selinuxenabled') ? qx(getenforce) : 'selinux binary not fou
 chomp($selinux);
 
 #log file test
+#FIXME - PATH to syslog not hardcoded
 my $idolog = get_error_from_log("/var/log/messages", 'ido2db');
 
 ################################
@@ -513,7 +514,7 @@ sub get_error_from_log ($$) {
         while ( my $line = <$fh> ) {
             chomp($line);
 			print "\nread error:\n $line \nfrom $file","\n", if $verbose;
-            if ( $line =~ /\$key:/ ) {
+            if ( $line =~ /\$key/ ) {
                 return $1;
             }
         }





More information about the icinga-checkins mailing list