Closed NavidSassan closed 2 years ago
In GitLab by @markuslf on Oct 27, 2021, 20:11
tmp, active_connections = result[0].strip().split(':')
: yes, should be tmp, active_connections = result[0].strip().split(': ')
of courseperfdata += lib.base2.get_perfdata('nginx_connections_active', active_connections, None, None, None, 0, args.CRIT)
should be perfdata += lib.base2.get_perfdata('nginx_connections_active', active_connections, None, args.WARN, args.CRIT, 0, None)
(this value is not a continous counter)Here you can find our development guidelines, which are based on those of the Nagios team: https://git.linuxfabrik.ch/linuxfabrik/monitoring-plugins/-/blob/master/CONTRIBUTING.rst
In GitLab by @markuslf on Oct 27, 2021, 20:17
Thanks for your feedback! :thumbsup:
In GitLab by @markuslf on Oct 27, 2021, 20:18
mentioned in commit 10bb4b27a605bbee6420fe284003bea4f78c6fc2
mentioned in commit 269b36c4380ca2ed5a3615b0accdab89136d4dfa
In GitLab by @Gninieb on Oct 27, 2021, 18:24
applies to python 2 and 3 script
For the perfdata of nginx_connections_active it must be slit after colon and blank. Schema of Perfdata ist
nginx-status2 line 131
line 155
I think perfdata schema are the same at in nagios, icinga etc. see Performance Data Metrics Icinga