Module: check_mk
Branch: master
Commit: 3983050c264441a4f9eb6710ad8d5dfec3bf44f7
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=3983050c264441…
Author: Marcel Schulte <ms(a)mathias-kettner.de>
Date: Mon Sep 24 07:54:11 2018 +0200
5846 FIX win_dhcp_pools: French systems are supported now
The check supports French systems now.
Change-Id: Id8d75b174164de5dfdd6c2bb899be5ba42b1fdf4
---
.werks/5846 | 10 ++++++++++
checks/win_dhcp_pools | 17 +++++++++++++++++
2 files changed, 27 insertions(+)
diff --git a/.werks/5846 b/.werks/5846
new file mode 100644
index 0000000..431a112
--- /dev/null
+++ b/.werks/5846
@@ -0,0 +1,10 @@
+Title: win_dhcp_pools: French systems are supported now
+Level: 1
+Component: checks
+Compatible: compat
+Edition: cre
+Version: 1.6.0i1
+Date: 1537768367
+Class: fix
+
+The check supports French systems now.
diff --git a/checks/win_dhcp_pools b/checks/win_dhcp_pools
index 4421801..5ffc5a6 100644
--- a/checks/win_dhcp_pools
+++ b/checks/win_dhcp_pools
@@ -71,6 +71,11 @@ win_dhcp_pools_default_levels = (10, 5)
win_dhcp_pools_inventorize_empty = False
discovery_win_dhcp_pools = []
+# Attention:
+#
+# Tried to get the win-agent plugin to report always in utf-8, unfortunately without
luck.
+# ...that's the reason why french translations with special characters must get
provided like here.
+
win_dhcp_pools_stats_translate = {
'Entdeckungen': 'Discovers',
'Angebote': 'Offers',
@@ -84,6 +89,18 @@ win_dhcp_pools_stats_translate = {
'Anzahl der verwendeten Adressen': 'No. of Addresses in use',
'Anzahl der freien Adressen': 'No. of free Addresses',
'Anzahl der anstehenden Angebote': 'No. of pending offers',
+ u'D\x82couvertes': 'Discovers',
+ 'Offres': 'Offers',
+ u'Requ\x88tes': 'Requests',
+ 'AR': 'Acks',
+ u'AR n\x82g.': 'Nacks',
+ 'Refus': 'Declines',
+ u'Lib\x82rations': 'Releases',
+ u'Sous-r\x82seau': 'Subnet',
+ u'\x90tendues': 'Scopes',
+ u"Nb d'adresses utilis\x82es": 'No. of Addresses in use',
+ "Nb d'adresses libres": 'No. of free Addresses',
+ "Nb d'offres en attente": 'No. of pending offers',
}
def parse_win_dhcp_pools(info):