diff options
author | abrist <abrist@nagios.com> | 2014-01-24 19:04:37 (GMT) |
---|---|---|
committer | Jan Wagner <waja@cyconet.org> | 2014-07-20 21:35:54 (GMT) |
commit | 8e187dfefef1397b1f87a1008e162e46a74f4782 (patch) | |
tree | 6a81ae0915f02a9a0181da7832093991bb5a936e | |
parent | 3c7d24478c7e79f288d4e79278168c3fe5b73a45 (diff) | |
download | monitoring-plugins-8e187dfefef1397b1f87a1008e162e46a74f4782.tar.gz |
Added check_hpjd port option to news and clarified the port usage error.
-rw-r--r-- | NEWS | 4 | ||||
-rw-r--r-- | plugins/check_hpjd.c | 2 |
2 files changed, 5 insertions, 1 deletions
@@ -1,5 +1,9 @@ | |||
1 | This file documents the major additions and syntax changes between releases. | 1 | This file documents the major additions and syntax changes between releases. |
2 | 2 | ||
3 | 2.1 | ||
4 | ENHANCEMENTS | ||
5 | New check_hpjd -p option for port specification (abrist) | ||
6 | |||
3 | 2.0 11th July 2014 | 7 | 2.0 11th July 2014 |
4 | ENHANCEMENTS | 8 | ENHANCEMENTS |
5 | check_mailq now supports auto detection of qmail, postfix, exim and nullmailer with | 9 | check_mailq now supports auto detection of qmail, postfix, exim and nullmailer with |
diff --git a/plugins/check_hpjd.c b/plugins/check_hpjd.c index 1ee4d13..5fe0698 100644 --- a/plugins/check_hpjd.c +++ b/plugins/check_hpjd.c | |||
@@ -344,7 +344,7 @@ process_arguments (int argc, char **argv) | |||
344 | break; | 344 | break; |
345 | case 'p': | 345 | case 'p': |
346 | if (!is_intpos(optarg)) | 346 | if (!is_intpos(optarg)) |
347 | usage2 (_("Port must be a positive integer"), optarg); | 347 | usage2 (_("Port must be a positive short integer"), optarg); |
348 | else | 348 | else |
349 | port = atoi(optarg); | 349 | port = atoi(optarg); |
350 | break; | 350 | break; |