]> git.pld-linux.org Git - packages/nagios-plugins.git/commitdiff
- fix check_snmp_disk_monitor (respect -w and -c)
authorMarek Marczykowski <marmarek@pld-linux.org>
Sat, 18 Jul 2009 09:36:36 +0000 (09:36 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- rel 10

Changed files:
    nagios-plugins-check_snmp_disk_monitor-opts.patch -> 1.1
    nagios-plugins.spec -> 1.103

nagios-plugins-check_snmp_disk_monitor-opts.patch [new file with mode: 0644]
nagios-plugins.spec

diff --git a/nagios-plugins-check_snmp_disk_monitor-opts.patch b/nagios-plugins-check_snmp_disk_monitor-opts.patch
new file mode 100644 (file)
index 0000000..7237cb2
--- /dev/null
@@ -0,0 +1,21 @@
+--- contrib/check_snmp_disk_monitor.pl 2009-04-03 15:44:39.000000000 +0200
++++ contrib/check_snmp_disk_monitor.pl.new     2009-07-18 10:28:04.835758511 +0200
+@@ -27,7 +27,6 @@
+ %mounts        = ();
+ sub process_options {
+-    my( $opt_crit, $opt_warn ) = ();
+     Getopt::Long::Configure( 'bundling' );
+     GetOptions(
+         'V'     => \$opt_version,       'version'     => \$opt_version,
+@@ -37,8 +36,8 @@
+         'H:s'   => \$opt_host,          'hostname:s'  => \$opt_host,
+         'p:i'   => \$opt_port,          'port:i'      => \$opt_port,
+         'C:s'   => \$opt_community,     'community:s' => \$opt_community,
+-        'c:i'   => \$opt_crit,          'critical:i'  => \$opt_crit,
+-        'w:i'   => \$opt_warn,          'warning:i'   => \$opt_warn,
++        'c:i'   => \$opt_critical,      'critical:i'  => \$opt_critical,
++        'w:i'   => \$opt_warning,       'warning:i'   => \$opt_warning,
+         't:i'   => \$TIMEOUT,           'timeout:i'   => \$TIMEOUT,    
+         'm:s'   => \$opt_mountpoint,    'mountpoint:s'=> \$opt_mountpoint
+     );
index 686354df16d8e4bf558f5c54415e81c75c1d7b56..5b5b11acceddd2e2e196366a4fa4910faec6c43a 100644 (file)
@@ -9,7 +9,7 @@ Summary:        Host/service/network monitoring program plugins for Nagios
 Summary(pl.UTF-8):     Wtyczki do monitorowania hostów/usług/sieci dla Nagiosa
 Name:          nagios-plugins
 Version:       1.4.13
-Release:       9
+Release:       10
 License:       GPL v2
 Group:         Networking
 Source0:       http://dl.sourceforge.net/nagiosplug/%{name}-%{version}.tar.gz
@@ -38,6 +38,7 @@ Patch22:      %{name}-check_snmp_procs-fix.patch
 Patch23:       %{name}-check_disk_smb-zero-cap.patch
 Patch24:       %{name}-paths.patch
 Patch25:       %{name}-check_snmp_disk_monitor-bulk.patch
+Patch26:       %{name}-check_snmp_disk_monitor-opts.patch
 URL:           http://www.nagiosplugins.org/
 BuildRequires: autoconf
 BuildRequires: automake
@@ -476,6 +477,7 @@ Wtyczki przekazane do projektu Nagios. Część z nich działa, część nie.
 %patch23 -p0
 %patch24 -p1
 %patch25 -p0
+%patch26 -p0
 
 # bring contribs into shape...
 cd contrib
This page took 0.11481 seconds and 4 git commands to generate.