mirror of
https://github.com/CentOS/ansible-role-mbs
synced 2026-02-02 18:19:58 +08:00
Basic AMQP monitoring for fedmsg-hub/mbs
Signed-off-by: Fabian Arrotin <arrfab@centos.org>
This commit is contained in:
10
files/zabbix/zabbix-mbs-amqp-status.sh
Normal file
10
files/zabbix/zabbix-mbs-amqp-status.sh
Normal file
@@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
# Called by Zabbix to check if we have error message in fedmsg-hub about ubm/amqp connection error
|
||||
|
||||
PATH=$PATH:/usr/local/bin:/sbin:/usr/sbin/
|
||||
|
||||
|
||||
journalctl --no-pager --since="1 hour ago" -u fedmsg-hub |grep -E 'twisted.internet.error.ConnectionLost|twisted.internet.error.ConnectionRefusedError|twisted.internet.error.TimeoutError'
|
||||
|
||||
zabbix_sender -c /etc/zabbix/zabbix_agentd.conf -k amqp.connection.status -o "$?" 2>&1 >/dev/null
|
||||
|
||||
Reference in New Issue
Block a user