summaryrefslogtreecommitdiffstats
path: root/plugins/check_disk.c
diff options
context:
space:
mode:
authorThomas Guyot-Sionnest <dermoth@users.sourceforge.net>2008-02-13 15:10:53 +0000
committerThomas Guyot-Sionnest <dermoth@users.sourceforge.net>2008-02-13 15:10:53 +0000
commit4868143e4e47ef68fe667335476d22797aa86853 (patch)
tree80f430d42cbb430dadb4aabad3539e9dc2a90616 /plugins/check_disk.c
parent58a612e3ad7dcb68f08959e082df7ba45ffc12f4 (diff)
downloadmonitoring-plugins-4868143e4e47ef68fe667335476d22797aa86853.tar.gz
Fix broken intending (The whole file use spaces only except my last patch and 1-3 other places).
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1932 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/check_disk.c')
-rw-r--r--plugins/check_disk.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/plugins/check_disk.c b/plugins/check_disk.c
index 29aec629..a281d85f 100644
--- a/plugins/check_disk.c
+++ b/plugins/check_disk.c
@@ -385,10 +385,10 @@ main (int argc, char **argv)
385 asprintf (&perf, "%s %s", perf, 385 asprintf (&perf, "%s %s", perf,
386 perfdata ((!strcmp(me->me_mountdir, "none") || display_mntp) ? me->me_devname : me->me_mountdir, 386 perfdata ((!strcmp(me->me_mountdir, "none") || display_mntp) ? me->me_devname : me->me_mountdir,
387 dused_units, units, 387 dused_units, units,
388 (warning_high_tide != UINT_MAX ? TRUE : FALSE), warning_high_tide, 388 (warning_high_tide != UINT_MAX ? TRUE : FALSE), warning_high_tide,
389 (critical_high_tide != UINT_MAX ? TRUE : FALSE), critical_high_tide, 389 (critical_high_tide != UINT_MAX ? TRUE : FALSE), critical_high_tide,
390 TRUE, 0, 390 TRUE, 0,
391 TRUE, dtotal_units)); 391 TRUE, dtotal_units));
392 392
393 if (disk_result==STATE_OK && erronly && !verbose) 393 if (disk_result==STATE_OK && erronly && !verbose)
394 continue; 394 continue;
@@ -539,7 +539,7 @@ process_arguments (int argc, char **argv)
539 } 539 }
540 } else { 540 } else {
541 if (*optarg == '@') { 541 if (*optarg == '@') {
542 warn_freespace_units = optarg; 542 warn_freespace_units = optarg;
543 } else { 543 } else {
544 asprintf(&warn_freespace_units, "@%s", optarg); 544 asprintf(&warn_freespace_units, "@%s", optarg);
545 } 545 }
@@ -685,7 +685,7 @@ process_arguments (int argc, char **argv)
685 if (np_regex_match_mount_entry(temp_list->best_match, &re)) { 685 if (np_regex_match_mount_entry(temp_list->best_match, &re)) {
686 686
687 if (verbose >=3) 687 if (verbose >=3)
688 printf("ignoring %s matching regex\n", temp_list->name); 688 printf("ignoring %s matching regex\n", temp_list->name);
689 689
690 temp_list = np_del_parameter(temp_list, previous); 690 temp_list = np_del_parameter(temp_list, previous);
691 /* pointer to first element needs to be updated if first item gets deleted */ 691 /* pointer to first element needs to be updated if first item gets deleted */
@@ -828,17 +828,17 @@ print_path (const char *mypath)
828void 828void
829set_all_thresholds (struct parameter_list *path) 829set_all_thresholds (struct parameter_list *path)
830{ 830{
831 if (path->freespace_units != NULL) free(path->freespace_units); 831 if (path->freespace_units != NULL) free(path->freespace_units);
832 set_thresholds(&path->freespace_units, warn_freespace_units, crit_freespace_units); 832 set_thresholds(&path->freespace_units, warn_freespace_units, crit_freespace_units);
833 if (path->freespace_percent != NULL) free (path->freespace_percent); 833 if (path->freespace_percent != NULL) free (path->freespace_percent);
834 set_thresholds(&path->freespace_percent, warn_freespace_percent, crit_freespace_percent); 834 set_thresholds(&path->freespace_percent, warn_freespace_percent, crit_freespace_percent);
835 if (path->usedspace_units != NULL) free (path->usedspace_units); 835 if (path->usedspace_units != NULL) free (path->usedspace_units);
836 set_thresholds(&path->usedspace_units, warn_usedspace_units, crit_usedspace_units); 836 set_thresholds(&path->usedspace_units, warn_usedspace_units, crit_usedspace_units);
837 if (path->usedspace_percent != NULL) free (path->usedspace_percent); 837 if (path->usedspace_percent != NULL) free (path->usedspace_percent);
838 set_thresholds(&path->usedspace_percent, warn_usedspace_percent, crit_usedspace_percent); 838 set_thresholds(&path->usedspace_percent, warn_usedspace_percent, crit_usedspace_percent);
839 if (path->usedinodes_percent != NULL) free (path->usedinodes_percent); 839 if (path->usedinodes_percent != NULL) free (path->usedinodes_percent);
840 set_thresholds(&path->usedinodes_percent, warn_usedinodes_percent, crit_usedinodes_percent); 840 set_thresholds(&path->usedinodes_percent, warn_usedinodes_percent, crit_usedinodes_percent);
841 if (path->freeinodes_percent != NULL) free (path->freeinodes_percent); 841 if (path->freeinodes_percent != NULL) free (path->freeinodes_percent);
842 set_thresholds(&path->freeinodes_percent, warn_freeinodes_percent, crit_freeinodes_percent); 842 set_thresholds(&path->freeinodes_percent, warn_freeinodes_percent, crit_freeinodes_percent);
843} 843}
844 844