summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 84a71d0)
raw | patch | inline | side by side (parent: 84a71d0)
author | Ton Voon <tonvoon@users.sourceforge.net> | |
Mon, 30 Jun 2003 17:02:19 +0000 (17:02 +0000) | ||
committer | Ton Voon <tonvoon@users.sourceforge.net> | |
Mon, 30 Jun 2003 17:02:19 +0000 (17:02 +0000) |
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@572 f882894a-f735-0410-b71e-b25c423dba1c
plugins/check_disk.c | patch | blob | history |
diff --git a/plugins/check_disk.c b/plugins/check_disk.c
index 01b316bd4df8f924026bcf9f448b034507aac53e..8bdf64b89f569a8c193b5dcdf0b72c47b0e0ce2a 100644 (file)
--- a/plugins/check_disk.c
+++ b/plugins/check_disk.c
*dptail = se;
dptail = &se->name_next;
break;
- break;
case 'X': /* exclude file system type */
se = (struct name_list *) malloc (sizeof (struct name_list));
se->name = strdup (optarg);
}
}
+ /* Support for "check_disk warn crit [fs]" with thresholds at used level */
c = optind;
if (w_dfp == -1 && argc > c && is_intnonneg (argv[c]))
w_dfp = (100.0 - atof (argv[c++]));
if (c_dfp == -1 && argc > c && is_intnonneg (argv[c]))
c_dfp = (100.0 - atof (argv[c++]));
- if (argc > c && strlen (path) == 0)
- path = argv[c++];
+ if (argc > c && strlen (path) == 0) {
+ se = (struct name_list *) malloc (sizeof (struct name_list));
+ se->name = strdup (argv[c++]);
+ se->name_next = NULL;
+ se->w_df = w_df;
+ se->c_df = c_df;
+ se->w_dfp = w_dfp;
+ se->c_dfp = c_dfp;
+ *pathtail = se;
+ }
if (path_select_list) {
temp_list = path_select_list;