summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 9b94f99)
raw | patch | inline | side by side (parent: 9b94f99)
author | Thomas Guyot-Sionnest <dermoth@users.sourceforge.net> | |
Thu, 10 Jul 2008 10:03:55 +0000 (10:03 +0000) | ||
committer | Thomas Guyot-Sionnest <dermoth@users.sourceforge.net> | |
Thu, 10 Jul 2008 10:03:55 +0000 (10:03 +0000) |
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@2025 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 e9e7219007091d4d206efc92b07403b43c149da2..7f5c00963116b7942ccb88ce191dac694a785b1e 100644 (file)
--- a/plugins/check_disk.c
+++ b/plugins/check_disk.c
/* Process for every path in list */
for (path = path_select_list; path; path=path->name_next) {
- if (verbose > 3 && path->freespace_percent->warning != NULL && path->freespace_percent->critical != NULL)
+ if (verbose >= 3 && path->freespace_percent->warning != NULL && path->freespace_percent->critical != NULL)
printf("Thresholds(pct) for %s warn: %f crit %f\n",path->name, path->freespace_percent->warning->end,
path->freespace_percent->critical->end);
- if (verbose > 3 && path->group != NULL)
+ if (verbose >= 3 && path->group != NULL)
printf("Group of %s: %s\n",path->name,path->group);
/* reset disk result */
fsp.fsu_files += tmpfsp.fsu_files; /* Total file nodes. */
fsp.fsu_ffree += tmpfsp.fsu_ffree; /* Free file nodes. */
- if (verbose > 3)
+ if (verbose >= 3)
printf("Group %s: add %llu blocks (%s) \n", path->group, tmpfsp.fsu_bavail, temp_list->name);
/* printf("Group %s: add %u blocks (%s)\n", temp_list->name); *//* path->group, tmpfsp.fsu_bavail, temp_list->name); */
}
- if (verbose > 2)
+ if (verbose >= 2)
asprintf (&output, "%s%s", output, details);
for (me = mount_list; me; me = me->me_next) {
if (np_regex_match_mount_entry(me, &re)) {
fnd = TRUE;
- if (verbose > 3)
+ if (verbose >= 3)
printf("%s %s matching expression %s\n", me->me_devname, me->me_mountdir, optarg);
/* add parameter if not found. overwrite thresholds if path has already been added */
stat_path (struct parameter_list *p)
{
/* Stat entry to check that dir exists and is accessible */
- if (verbose > 3)
+ if (verbose >= 3)
printf("calling stat on %s\n", p->name);
if (stat (p->name, &stat_buf[0])) {
- if (verbose > 3)
+ if (verbose >= 3)
printf("stat failed on %s\n", p->name);
printf("DISK %s - ", _("CRITICAL"));
die (STATE_CRITICAL, _("%s %s: %s\n"), p->name, _("is not accessible"), strerror(errno));