netconnections: Rename PerfData label
Signed-off-by: Sven Velt <sven@velt.de>
This commit is contained in:
parent
1b4ac41953
commit
4075e806f9
|
@ -76,7 +76,7 @@ returncode = plugin.value_wc_to_returncode(count, plugin.options.warn, plugin.op
|
||||||
plugin.add_returncode(returncode)
|
plugin.add_returncode(returncode)
|
||||||
|
|
||||||
plugin.add_output('%s network connections on port %s' % (count, plugin.options.port))
|
plugin.add_output('%s network connections on port %s' % (count, plugin.options.port))
|
||||||
plugin.format_add_performancedata('netconnections', count, '', warn=plugin.options.warn, crit=plugin.options.crit)
|
plugin.format_add_performancedata('netconns_%s' % plugin.options.port, count, '', warn=plugin.options.warn, crit=plugin.options.crit)
|
||||||
|
|
||||||
plugin.exit()
|
plugin.exit()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue