[icinga-checkins] icinga.org: icinga-core/fholzer/core: idea for syslog read

git at icinga.org git at icinga.org
Thu Apr 26 13:38:03 CEST 2012


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

Author: Franz Holzer <office at frankstar.at>
Date:   Thu Apr 26 13:38:08 2012 +0200

idea for syslog read

---

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

diff --git a/tools/icinga_verification.pl b/tools/icinga_verification.pl
index 8177e30..31e7998 100644
--- a/tools/icinga_verification.pl
+++ b/tools/icinga_verification.pl
@@ -79,6 +79,7 @@ if ($help){
 # Script Config
 ################################
 print <<EOF;
+
 ############################################################
 ######    Icinga Sanitycheck and Reporting Script     ######
 ######  by Frankstar / Team Quality Assurance & VM    ######
@@ -225,6 +226,9 @@ chomp($selinux);
 
 #log file test
 #FIXME - PATH to syslog not hardcoded
+#IDEA, read in /etc/rsyslog.config
+#get line with "*.info;mail.none;authpriv.none;cron.none" and save path to variable (centos ie. /var/log/messages
+
 my @idolog = get_error_from_log("/var/log/messages", 'ido2db');
 
 ################################
@@ -703,7 +707,7 @@ sub get_error_from_log ($$) {
         print STDERR "Could not open logfile $file: $!\n";
     }
 }
-
+  
 sub usage{
 print <<EOF;
 





More information about the icinga-checkins mailing list