[nagios_client] check_procs needs to use ereg-argument-array to find the fedmsg-gateway-3 command on F31 systems

This commit is contained in:
Stephen Smoogen 2020-01-07 23:07:07 +00:00 committed by Pierre-Yves Chibon
parent baaedd371f
commit db6b450288

View file

@ -1,5 +1,5 @@
{% if (( ansible_distribution_major_version == "8" ) and ( ansible_distribution == "RedHat" )) or ((ansible_distribution_major_version|int >= 30) and (ansible_distribution == "Fedora")) %}
command[check_fedmsg_gateway_proc]={{ libdir }}/nagios/plugins/check_procs -c 1:1 -C 'fedmsg-gateway-3' -u fedmsg
command[check_fedmsg_gateway_proc]={{ libdir }}/nagios/plugins/check_procs -c 1:1 --ereg-argument-array='fedmsg-gateway-3' -u fedmsg
{% else %}
command[check_fedmsg_gateway_proc]={{ libdir }}/nagios/plugins/check_procs -c 1:1 -C 'fedmsg-gateway' -u fedmsg
{% endif %}