[icinga-checkins] icinga.org: icinga-core/fholzer/core: add options -r (reporting mode) and -s (sanity checks)
git at icinga.org
git at icinga.org
Wed Apr 25 13:35:09 CEST 2012
Module: icinga-core
Branch: fholzer/core
Commit: 649ba2dce57a35a8cfc6878fc40f5b5a35517041
URL: https://git.icinga.org/?p=icinga-core.git;a=commit;h=649ba2dce57a35a8cfc6878fc40f5b5a35517041
Author: Franz Holzer <office at frankstar.at>
Date: Wed Apr 25 13:24:21 2012 +0200
add options -r (reporting mode) and -s (sanity checks)
---
tools/icinga_verification.pl | 8 +++-----
1 files changed, 3 insertions(+), 5 deletions(-)
diff --git a/tools/icinga_verification.pl b/tools/icinga_verification.pl
index 5706383..6a7f932 100644
--- a/tools/icinga_verification.pl
+++ b/tools/icinga_verification.pl
@@ -55,8 +55,8 @@ my $config_ref = {
# Option parsing
################################
-my $verbose;
-my $result = GetOptions( "verbose" => \$verbose );
+my ($verbose, $reporting, $sanitycheck) = '';
+my $result = GetOptions( "verbose" => \$verbose, "reporting" => \$reporting, "sanitycheck" => \$sanitycheck);
################################
# Script Config
@@ -232,13 +232,12 @@ my $ido2dbservertype = get_key_from_ini("$icinga_base/ido2db.cfg", 'db_servertyp
my $ido2dbsocketname = get_key_from_ini("$icinga_base/ido2db.cfg", 'socket_name');
-#IDOMOD.cfg parsing
+#####IDOMOD.cfg parsing######
#Output Socket
my $idomodsocket = get_key_from_ini("$icinga_base/idomod.cfg", 'output_type');
if ($idomodsocket eq 'unixsocket'){
$idomodsocket = 'unix';
}
-
#Output
my $idomodoutput = get_key_from_ini("$icinga_base/idomod.cfg", 'output');
@@ -299,7 +298,6 @@ if ( !$mysqlcheck ) {
# Test Print Out
# later create a fileout with the output
-
print <<EOF;
############################################################
###### Icinga Verification and Reporting Script ######
More information about the icinga-checkins
mailing list