summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: fd0a7d3)
raw | patch | inline | side by side (parent: fd0a7d3)
author | Ton Voon <tonvoon@users.sourceforge.net> | |
Sat, 8 Mar 2003 12:08:24 +0000 (12:08 +0000) | ||
committer | Ton Voon <tonvoon@users.sourceforge.net> | |
Sat, 8 Mar 2003 12:08:24 +0000 (12:08 +0000) |
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@387 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 3c1cfef9519c51ffb692758749be38e69c0b818f..feeff5606bebe7d71a8fd95301ac8dc650bb18a7 100644 (file)
--- a/plugins/check_disk.c
+++ b/plugins/check_disk.c
* currently mounted filesystems. If the percent used disk space is
* above <c_dfp>, a STATE_CRITICAL is returned. If the percent used
* disk space is above <w_dfp>, a STATE_WARNING is returned. If the
- * speicified filesystem cannot be read, a STATE_CRITICAL is returned,
+ * specified filesystem cannot be read, a STATE_CRITICAL is returned,
* other errors with reading the output result in a STATE_UNKNOWN
* error.
*
if (!index (input_buffer, '/'))
continue;
+ /* Fixes AIX /proc fs which lists - for size values */
+ if (strstr (input_buffer, "/proc ") == input_buffer)
+ continue;
+
if (sscanf (input_buffer, "%s %d %d %d %d%% %s", file_system,
&total_disk, &used_disk, &free_disk, &usp, mntp) == 6 ||
sscanf (input_buffer, "%s %*s %d %d %d %d%% %s", file_system,