From 0b6423f9c99d9edf8c96fefd0f6c453859395aa1 Mon Sep 17 00:00:00 2001 From: Holger Weiss Date: Mon, 30 Sep 2013 00:03:24 +0200 Subject: Import Nagios Plugins site Import the Nagios Plugins web site, Cronjobs, infrastructure scripts, and configuration files. --- web/attachments/137593-check_hpjd.patch | 34 +++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 web/attachments/137593-check_hpjd.patch (limited to 'web/attachments/137593-check_hpjd.patch') diff --git a/web/attachments/137593-check_hpjd.patch b/web/attachments/137593-check_hpjd.patch new file mode 100644 index 0000000..3c3cc8f --- /dev/null +++ b/web/attachments/137593-check_hpjd.patch @@ -0,0 +1,34 @@ +--- check_hpjd.orig 2005-06-07 17:57:13.000000000 +0100 ++++ check_hpjd.c 2005-06-07 18:19:18.000000000 +0100 +@@ -36,8 +36,8 @@ + #define HPJD_PAPER_STATUS ".1.3.6.1.4.1.11.2.3.9.1.1.2.2" + #define HPJD_INTERVENTION_REQUIRED ".1.3.6.1.4.1.11.2.3.9.1.1.2.3" + #define HPJD_GD_PERIPHERAL_ERROR ".1.3.6.1.4.1.11.2.3.9.1.1.2.6" +-#define HPJD_GD_PAPER_JAM ".1.3.6.1.4.1.11.2.3.9.1.1.2.8" +-#define HPJD_GD_PAPER_OUT ".1.3.6.1.4.1.11.2.3.9.1.1.2.9" ++#define HPJD_GD_PAPER_OUT ".1.3.6.1.4.1.11.2.3.9.1.1.2.8" ++#define HPJD_GD_PAPER_JAM ".1.3.6.1.4.1.11.2.3.9.1.1.2.9" + #define HPJD_GD_TONER_LOW ".1.3.6.1.4.1.11.2.3.9.1.1.2.10" + #define HPJD_GD_PAGE_PUNT ".1.3.6.1.4.1.11.2.3.9.1.1.2.11" + #define HPJD_GD_MEMORY_OUT ".1.3.6.1.4.1.11.2.3.9.1.1.2.12" +@@ -134,7 +134,7 @@ + temp_buffer = strtok (input_buffer, "="); + temp_buffer = strtok (NULL, "="); + +- if (temp_buffer == NULL) { ++ if (temp_buffer == NULL && line < 13) { + + result = STATE_UNKNOWN; + strcpy (errmsg, input_buffer); +@@ -179,8 +179,9 @@ + case 12: /* display panel message */ + strcpy (display_message, temp_buffer + 1); + break; +- default: +- break; ++ default: /* fold multiline message */ ++ strncat (display_message, input_buffer, ++ sizeof (display_message) - strlen (display_message) - 1); + } + + } -- cgit v1.2.3-74-g34f1