Forráskód Böngészése

Added check_hpjd port option to news and clarified the port usage error.

abrist 12 éve
szülő
commit
3282a33539
2 módosított fájl, 2 hozzáadás és 1 törlés
  1. 1 0
      NEWS
  2. 1 1
      plugins/check_hpjd.c

+ 1 - 0
NEWS

@@ -5,6 +5,7 @@ This file documents the major additions and syntax changes between releases.
 	Added performance data to check_mysql_query (sreinhardt)
 	New check_file_age option -i/--ignore-missing which returns OK if file is missing (waja)
 	Added performance data to check_nt UPTIME -l seconds|minutes|hours|days (abrist)
+	New check_hpjd -p option for port specification (abrist)
 
 	FIXES
 	Don't let e.g. check_http's -C option reset SSL version if e.g. -S 1 -C 5 is specified

+ 1 - 1
plugins/check_hpjd.c

@@ -344,7 +344,7 @@ process_arguments (int argc, char **argv)
 			break;
 		case 'p':
 			if (!is_intpos(optarg))
-				usage2 (_("Port must be a positive integer"), optarg);
+				usage2 (_("Port must be a positive short integer"), optarg);
 			else
 				port = atoi(optarg);
 			break;