forked from infra/ansible
Zabbix: set owner of centos-monitoring rabbit scripts/units/timers correctly
Signed-off-by: Greg Sutcliffe <fedora@emeraldreverie.org>
This commit is contained in:
parent
2818ab897e
commit
c4a96be6cc
3 changed files with 4 additions and 4 deletions
|
|
@ -27,7 +27,7 @@ def parse_args():
|
|||
parser = ArgumentParser()
|
||||
parser.add_argument("queue_name", nargs="+")
|
||||
parser.add_argument(
|
||||
"--conf", default=CONF_PATH, help="path to NRPE's rabbitmq_args.ini file"
|
||||
"--conf", default=CONF_PATH, help="path to Zabbix's rabbitmq_args.ini file"
|
||||
)
|
||||
parser.add_argument("--vhost", default=VHOST, help="the rabbitmq vhost")
|
||||
parser.add_argument("-z", "--zabbix", help="the Zabbix server")
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
[Unit]
|
||||
Description=Send queue metrics to Zabbix
|
||||
ConditionPathExists=/etc/nrpe.d/rabbitmq_args.ini
|
||||
ConditionPathExists=/etc/zabbix/centos_rabbitmq_args.ini
|
||||
Wants=network-online.target
|
||||
|
||||
[Timer]
|
||||
|
|
|
|||
|
|
@ -4,5 +4,5 @@ Description=Send queue metrics to Zabbix
|
|||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/usr/local/bin/send-rabbitmq-queue -z {{centos_zabbix_server}} -s {{centos_zabbix_host}} --tls-psk-identity "Fedora RabbitMQ" --tls-psk-file /etc/zabbix/centos.psk {{ centos_zabbix_queues | join(" ") }}
|
||||
User=nrpe
|
||||
Group=nrpe
|
||||
User=zabbix
|
||||
Group=zabbix
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue