summaryrefslogtreecommitdiffstats
path: root/web/attachments/329924-snmp_dskmon.diff
diff options
context:
space:
mode:
Diffstat (limited to 'web/attachments/329924-snmp_dskmon.diff')
-rw-r--r--web/attachments/329924-snmp_dskmon.diff30
1 files changed, 30 insertions, 0 deletions
diff --git a/web/attachments/329924-snmp_dskmon.diff b/web/attachments/329924-snmp_dskmon.diff
new file mode 100644
index 0000000..f454346
--- /dev/null
+++ b/web/attachments/329924-snmp_dskmon.diff
@@ -0,0 +1,30 @@
1--- nagios-plugins-1.4.13/contrib/check_snmp_disk_monitor.pl 2002-08-22 07:42:43.000000000 -0700
2+++ nagios-plugins-1.4.13_mod/contrib/check_snmp_disk_monitor.pl 2009-06-03 06:27:33.000000000 -0700
3@@ -27,7 +27,6 @@
4 %mounts = ();
5
6 sub process_options {
7- my( $opt_crit, $opt_warn ) = ();
8 Getopt::Long::Configure( 'bundling' );
9 GetOptions(
10 'V' => \$opt_version, 'version' => \$opt_version,
11@@ -37,8 +36,8 @@
12 'H:s' => \$opt_host, 'hostname:s' => \$opt_host,
13 'p:i' => \$opt_port, 'port:i' => \$opt_port,
14 'C:s' => \$opt_community, 'community:s' => \$opt_community,
15- 'c:i' => \$opt_crit, 'critical:i' => \$opt_crit,
16- 'w:i' => \$opt_warn, 'warning:i' => \$opt_warn,
17+ 'c:i' => \$opt_critical, 'critical:i' => \$opt_critical,
18+ 'w:i' => \$opt_warning, 'warning:i' => \$opt_warning,
19 't:i' => \$TIMEOUT, 'timeout:i' => \$TIMEOUT,
20 'm:s' => \$opt_mountpoint, 'mountpoint:s'=> \$opt_mountpoint
21 );
22@@ -56,7 +55,7 @@
23 }
24
25 sub print_usage {
26- print "Usage: $PROGNAME -H <host> -C <snmp_community> [-s] [-w <low>,<high>] [-c <low>,<high>] [-t <timeout>] -m <mountpoint>\n";
27+ print "Usage: $PROGNAME -H <host> -C <snmp_community> [-s] [-w <limit>] [-c <limit>] [-t <timeout>] -m <mountpoint>\n";
28 }
29
30 sub print_help {