nagios_client: adjust fedmsg monitoring
Copy the fixes from exceptions monitoring to backlog. Fix the calls that were passing a trailing - which isn't needed anymore. Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
parent
c5daa84f53
commit
1c0516c831
2 changed files with 10 additions and 4 deletions
|
@ -11,7 +11,13 @@ try:
|
|||
check_consumer = sys.argv[2]
|
||||
backlog_warning = int(sys.argv[3])
|
||||
backlog_critical = int(sys.argv[4])
|
||||
if os.path.exists('/var/run/fedmsg/monitoring-%s-.socket' % service):
|
||||
fname = '/var/run/fedmsg/monitoring-%s-.socket' % service
|
||||
elif os.path.exists('/var/run/fedmsg/monitoring-%s-3.socket' % service):
|
||||
fname = '/var/run/fedmsg/monitoring-%s-3.socket' % service
|
||||
else:
|
||||
print("UNKNOWN - socket file does not exists")
|
||||
sys.exit(3)
|
||||
|
||||
if not os.path.exists(fname):
|
||||
print("UNKNOWN - %s does not exist" % fname)
|
||||
|
|
|
@ -3,7 +3,7 @@ command[check_fedmsg_cp_busgateway_relay]={{libdir}}/nagios/plugins/check_fedmsg
|
|||
{% if (ansible_distribution == 'RedHat' and ansible_distribution_major_version|int < 8) or (ansible_distribution_major_version|int < 30 and ansible_distribution == 'Fedora') %}
|
||||
command[check_fedmsg_cp_busgateway_gateway]={{libdir}}/nagios/plugins/check_fedmsg_producers_consumers.py fedmsg-gateway GatewayConsumer MonitoringProducer
|
||||
{% else %}
|
||||
command[check_fedmsg_cp_busgateway_gateway]={{libdir}}/nagios/plugins/check_fedmsg_producers_consumers.py fedmsg-gateway- GatewayConsumer MonitoringProducer
|
||||
command[check_fedmsg_cp_busgateway_gateway]={{libdir}}/nagios/plugins/check_fedmsg_producers_consumers.py fedmsg-gateway GatewayConsumer MonitoringProducer
|
||||
{% endif %}
|
||||
command[check_fedmsg_cp_anitya_relay]={{libdir}}/nagios/plugins/check_fedmsg_producers_consumers.py fedmsg-relay RelayConsumer MonitoringProducer
|
||||
command[check_fedmsg_cp_app]={{libdir}}/nagios/plugins/check_fedmsg_producers_consumers.py fedmsg-relay RelayConsumer MonitoringProducer
|
||||
|
@ -19,7 +19,7 @@ command[check_fedmsg_cexceptions_busgateway_relay]={{libdir}}/nagios/plugins/che
|
|||
{% if (ansible_distribution == 'RedHat' and ansible_distribution_major_version|int < 8) or (ansible_distribution_major_version|int < 30 and ansible_distribution == 'Fedora') %}
|
||||
command[check_fedmsg_cexceptions_busgateway_gateway]={{libdir}}/nagios/plugins/check_fedmsg_consumer_exceptions.py fedmsg-gateway GatewayConsumer 1 10
|
||||
{% else %}
|
||||
command[check_fedmsg_cexceptions_busgateway_gateway]={{libdir}}/nagios/plugins/check_fedmsg_consumer_exceptions.py fedmsg-gateway- GatewayConsumer 1 10
|
||||
command[check_fedmsg_cexceptions_busgateway_gateway]={{libdir}}/nagios/plugins/check_fedmsg_consumer_exceptions.py fedmsg-gateway GatewayConsumer 1 10
|
||||
{% endif %}
|
||||
command[check_fedmsg_cexceptions_anitya_relay]={{libdir}}/nagios/plugins/check_fedmsg_consumer_exceptions.py fedmsg-relay RelayConsumer 1 10
|
||||
command[check_fedmsg_cexceptions_app]={{libdir}}/nagios/plugins/check_fedmsg_consumer_exceptions.py fedmsg-relay RelayConsumer 1 10
|
||||
|
@ -35,7 +35,7 @@ command[check_fedmsg_cbacklog_busgateway_relay]={{libdir}}/nagios/plugins/check_
|
|||
{% if (ansible_distribution == 'RedHat' and ansible_distribution_major_version|int < 8) or (ansible_distribution_major_version|int < 30 and ansible_distribution == 'Fedora') %}
|
||||
command[check_fedmsg_cbacklog_busgateway_gateway]={{libdir}}/nagios/plugins/check_fedmsg_consumer_backlog.py fedmsg-gateway GatewayConsumer 10 50
|
||||
{% else %}
|
||||
command[check_fedmsg_cbacklog_busgateway_gateway]={{libdir}}/nagios/plugins/check_fedmsg_consumer_backlog.py fedmsg-gateway- GatewayConsumer 10 50
|
||||
command[check_fedmsg_cbacklog_busgateway_gateway]={{libdir}}/nagios/plugins/check_fedmsg_consumer_backlog.py fedmsg-gateway GatewayConsumer 10 50
|
||||
{% endif %}
|
||||
command[check_fedmsg_cbacklog_anitya_relay]={{libdir}}/nagios/plugins/check_fedmsg_consumer_backlog.py fedmsg-relay RelayConsumer 10 50
|
||||
command[check_fedmsg_cbacklog_app]={{libdir}}/nagios/plugins/check_fedmsg_consumer_backlog.py fedmsg-relay RelayConsumer 10 50
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue