Просмотр исходного кода

check_ide_smart.c: Default to nagios style output

Per M-P tracker issue #1224 created by dermoth. Check_ide_smart plugin should default to the nagios style output, but leave -n flag as optional with depricated message.
This is now default behavior, and may be altered shortly to add the previous default as an optional flag. - SR
Spenser Reinhardt 12 лет назад
Родитель
Сommit
ab420dd290
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      plugins/check_ide_smart.c

+ 2 - 1
plugins/check_ide_smart.c

@@ -281,11 +281,12 @@ main (int argc, char *argv[])
 		smart_read_values (fd, &values);
 		smart_read_thresholds (fd, &thresholds);
 		retval = nagios (&values, &thresholds);
+		printf( _("-n, This flag is depricated, and will be removed in a future release. Nagios output is now the default.\n") );
 		break;
 	default:
 		smart_read_values (fd, &values);
 		smart_read_thresholds (fd, &thresholds);
-		print_values (&values, &thresholds);
+		retval = nagios (&values, &thresholds);
 		break;
 	}
 	close (fd);