From e0cfe77e09751446bb00e60abb3dbb909c8bdb13 Mon Sep 17 00:00:00 2001 From: Jan Wagner Date: Wed, 10 May 2023 15:39:06 +0000 Subject: [PATCH] Adding d/p/20_chech_nt_fix_encoding from upstream --- debian/patches/20_chech_nt_fix_encoding | 46 +++++++++++++++++++++++++ debian/patches/series | 1 + 2 files changed, 47 insertions(+) create mode 100644 debian/patches/20_chech_nt_fix_encoding diff --git a/debian/patches/20_chech_nt_fix_encoding b/debian/patches/20_chech_nt_fix_encoding new file mode 100644 index 0000000..f730df6 --- /dev/null +++ b/debian/patches/20_chech_nt_fix_encoding @@ -0,0 +1,46 @@ +From b2659391aba7e4a79b678aba5cc21b443626f81f Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Lorenz=20K=C3=A4stle?= +Date: Wed, 26 Apr 2023 10:13:51 +0200 +Subject: [PATCH 1/2] check_nt: change encoding from latin1 to utf8 + +--- + plugins/check_nt.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/plugins/check_nt.c b/plugins/check_nt.c +index 59c135dba..babe3b642 100644 +--- a/plugins/check_nt.c ++++ b/plugins/check_nt.c +@@ -341,7 +341,7 @@ int main(int argc, char **argv){ + + 2) If the counter you're going to measure is percent-based, the code will detect + the percent sign in its name and will attribute minimum (0%) and maximum (100%) +- values automagically, as well the ¨%" sign to graph units. ++ values automagically, as well the ¨%" sign to graph units. + + 3) OTOH, if the counter is "absolute", you'll have to provide the following + the counter unit - that is, the dimensions of the counter you're getting. Examples: + +From fcf68d702e590bd3e58fb7556f420330ddf0a0ae Mon Sep 17 00:00:00 2001 +From: Lorenz <12514511+RincewindsHat@users.noreply.github.com> +Date: Thu, 27 Apr 2023 00:42:30 +0200 +Subject: [PATCH 2/2] Update plugins/check_nt.c + +Co-authored-by: datamuc +--- + plugins/check_nt.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/plugins/check_nt.c b/plugins/check_nt.c +index babe3b642..d73d83cea 100644 +--- a/plugins/check_nt.c ++++ b/plugins/check_nt.c +@@ -341,7 +341,7 @@ int main(int argc, char **argv){ + + 2) If the counter you're going to measure is percent-based, the code will detect + the percent sign in its name and will attribute minimum (0%) and maximum (100%) +- values automagically, as well the ¨%" sign to graph units. ++ values automagically, as well the "%" sign to graph units. + + 3) OTOH, if the counter is "absolute", you'll have to provide the following + the counter unit - that is, the dimensions of the counter you're getting. Examples: diff --git a/debian/patches/series b/debian/patches/series index 1f0cd27..ff76318 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -11,6 +11,7 @@ 17_fix_exit_codes 18_check_mysql_fix_typo 19_check_nwstat_fix_typ +20_chech_nt_fix_encoding # feature patches 30_check_radius_radcli_1.3.1_support 31_checl_mailq_separate_submission_queue