[Nagiosplug-devel] Check_disk plugin unified diff

Erik Welch ewelch at nvidia.com
Fri Nov 7 00:17:53 CET 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

- --- ./check_disk.c.new  Thu Nov  6 10:58:28 2008
+++ /tmp/nagios-plugins-1.4.12/plugins/check_disk.c     Wed May  7 03:02:42 2008
@@ -190,14 +190,14 @@
   bindtextdomain (PACKAGE, LOCALEDIR);
   textdomain (PACKAGE);
  
+  mount_list = read_file_system_list (0);
+
   /* Parse extra opts if any */
   argv = np_extra_opts (&argc, argv, progname);
  
   if (process_arguments (argc, argv) == ERROR)
     usage4 (_("Could not parse arguments"));
  
- -  mount_list = read_file_system_list (0);
- -
   /* If a list of paths has not been selected, find entire
      mount list and create list of paths
    */
@@ -639,7 +639,7 @@
       }
       se->group = group;
       set_all_thresholds(se);
- -      /* np_set_best_match(se, mount_list, exact_match); */
+      np_set_best_match(se, mount_list, exact_match);
       stat_path(se);
       path_selected = TRUE;
       break;
@@ -747,7 +747,7 @@
  
       fnd = FALSE;
       path_selected = TRUE;
- -      /* np_set_best_match(path_select_list, mount_list, exact_match); */
+      np_set_best_match(path_select_list, mount_list, exact_match);
       cflags = default_cflags;
  
       break;



Erik Welch - Unix Administrator
NVIDIA
2701 San Tomas Expwy
Santa Clara, CA 95050

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (MingW32)
Comment: For info see http://www.gnupg.org

iEYEARECAAYFAkkTeyAACgkQgGzpy3g56SebYQCdG7mws2AybxsBPR9Opn53I9K9
3HAAniwPRbUOGBV/TUJSae0uHMZ9PLy0
=Bzz0
-----END PGP SIGNATURE-----
-----------------------------------------------------------------------------------
This email message is for the sole use of the intended recipient(s) and may contain
confidential information.  Any unauthorized review, use, disclosure or distribution
is prohibited.  If you are not the intended recipient, please contact the sender by
reply email and destroy all copies of the original message.
-----------------------------------------------------------------------------------




More information about the Devel mailing list