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.
This commit is contained in:
parent
e8b04bd40d
commit
2c50b91b1a
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue