# once an issue has been acknowledged/fixed, change the --startindex option
-# Copyright (C) 2009 Peter Palfrader <peter@palfrader.org>
+# Copyright (C) 2009,2012 Peter Palfrader <peter@palfrader.org>
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
use Getopt::Long;
-my $usage = "$PROGRAM_NAME: Usage: $PROGRAM_NAME [--help|--version] [--timeout=<timeout>] [--startindex=<idx>] <host> <community>\n";
+my $usage = "$PROGRAM_NAME: Usage: $PROGRAM_NAME [--help|--version] [--timeout=<timeout>] [--startindex=<idx>] [--verbose] <host> <community>\n";
my $params;
+$params->{'verbosity'} = 0;
Getopt::Long::config('bundling');
if (!GetOptions (
'--help' => \$params->{'help'},
'--timeout=i' => \$params->{'timeout'},
'--startindex=i' => \$params->{'startindex'},
+ '-verbose' => \$params->{'verbosity'},
)) {
die ($usage);
};
my $sev = $snmp_severity{$data{'severity'}->{$idx}};
die("Unexpected severity $data{'severity'}->{$idx}\n") unless $sev;
my $sevint = $severity_int{$sev};
- if ($sevint > 0) {
+ if ($sevint > -$params->{'verbosity'}) {
my $msg = $data{'message'}->{$idx};
if (grep {$_ eq $msg} @ignores) {
$num{$sev.'-ignored'}++;
* dsa-update-unowned-file-status: Use -fstype proc rather than hard
coding /proc in order to match procfs in chroots too.
- -- Tollef Fog Heen <tfheen@debian.org> Mon, 27 Feb 2012 16:29:57 +0100
+ [ Peter Palfrader ]
+ * dsa-check-msa-eventlog: Add --verbose switch to show info level
+ event log entries.
+
+ -- Peter Palfrader <weasel@debian.org> Wed, 29 Feb 2012 15:49:53 +0100
dsa-nagios-checks (92.1) unstable; urgency=low