diff options
author | Holger Weiss <holger@zedat.fu-berlin.de> | 2013-09-29 22:03:24 (GMT) |
---|---|---|
committer | Holger Weiss <holger@zedat.fu-berlin.de> | 2013-09-29 22:03:24 (GMT) |
commit | 0b6423f9c99d9edf8c96fefd0f6c453859395aa1 (patch) | |
tree | 1c2b6b21704a294940f87c7892676998d8371707 /web/attachments/92703-check_disk.patch | |
download | site-0b6423f9c99d9edf8c96fefd0f6c453859395aa1.tar.gz |
Import Nagios Plugins site
Import the Nagios Plugins web site, Cronjobs, infrastructure scripts,
and configuration files.
Diffstat (limited to 'web/attachments/92703-check_disk.patch')
-rw-r--r-- | web/attachments/92703-check_disk.patch | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/web/attachments/92703-check_disk.patch b/web/attachments/92703-check_disk.patch new file mode 100644 index 0000000..920b56e --- /dev/null +++ b/web/attachments/92703-check_disk.patch | |||
@@ -0,0 +1,11 @@ | |||
1 | --- check_disk.c.orig 2004-07-02 09:50:32.000000000 -0600 | ||
2 | +++ check_disk.c 2004-07-02 15:02:59.000000000 -0600 | ||
3 | @@ -191,7 +191,7 @@ | ||
4 | psize = fsp.fsu_blocks*fsp.fsu_blocksize/mult; | ||
5 | asprintf (&perf, "%s %s", perf, | ||
6 | perfdata ((!strcmp(file_system, "none") || display_mntp) ? me->me_devname : me->me_mountdir, | ||
7 | - fsp.fsu_bavail*fsp.fsu_blocksize/mult, units, | ||
8 | + psize-(fsp.fsu_bavail*fsp.fsu_blocksize/mult), units, | ||
9 | TRUE, min ((uintmax_t)psize-(uintmax_t)w_df, (uintmax_t)((1.0-w_dfp/100.0)*psize)), | ||
10 | TRUE, min ((uintmax_t)psize-(uintmax_t)c_df, (uintmax_t)((1.0-c_dfp/100.0)*psize)), | ||
11 | TRUE, 0, | ||