[monitoring-plugins] Added check_hpjd port option to news and ...

Jan Wagner git at monitoring-plugins.org
Mon Jul 21 00:20:08 CEST 2014


    Module: monitoring-plugins
    Branch: master
    Commit: 8e187dfefef1397b1f87a1008e162e46a74f4782
    Author: abrist <abrist at nagios.com>
 Committer: Jan Wagner <waja at cyconet.org>
      Date: Fri Jan 24 14:04:37 2014 -0500
       URL: https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=8e187df

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

---

 NEWS                 | 4 ++++
 plugins/check_hpjd.c | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/NEWS b/NEWS
index f2898ab..d48e1d8 100644
--- a/NEWS
+++ b/NEWS
@@ -1,5 +1,9 @@
 This file documents the major additions and syntax changes between releases.
 
+2.1
+	ENHANCEMENTS
+	New check_hpjd -p option for port specification (abrist)
+
 2.0 11th July 2014
 	ENHANCEMENTS
 	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)
 			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;



More information about the Commits mailing list