From 2c50b91b1a580ef4d6c8893d3200bc80896f1789 Mon Sep 17 00:00:00 2001 From: Jan Dittberner Date: Sat, 23 Jan 2016 20:48:32 +0100 Subject: [PATCH] Fix performance data output This commit fixes the unit of measure of daysvalid to be conformant to the performance data specification at http://docs.icinga.org/latest/de/perfdata.html#pluginperfdata by omiting the invalid unit 'd' at the end of the value. --- check_xmppng | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/check_xmppng b/check_xmppng index da46d7a..052db5c 100755 --- a/check_xmppng +++ b/check_xmppng @@ -2,7 +2,7 @@ # -*- coding: utf-8 -*- # # Nagios compatible check for XMPP servers. -# Copyright (C) 2015 Jan Dittberner +# Copyright (C) 2015-2016 Jan Dittberner # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -486,7 +486,7 @@ class DaysValidContext(nagiosplugin.Context): def performance(self, metric, resource): if resource.checkcerts and metric.value is not None: - return nagiosplugin.Performance('daysvalid', metric.value, 'd') + return nagiosplugin.Performance('daysvalid', metric.value, '') return None