Add even more checks for zerotier and psql
This commit is contained in:
parent
3cf9b94cea
commit
4bf02aedd3
@ -56,21 +56,27 @@
|
|||||||
- name: Unit ansible-pull.timer
|
- name: Unit ansible-pull.timer
|
||||||
command: check_by_ssh!/usr/local/bin/monitoring-scripts/check_systemd_unit ansible-pull.timer
|
command: check_by_ssh!/usr/local/bin/monitoring-scripts/check_systemd_unit ansible-pull.timer
|
||||||
hostgroup: ansible-pull
|
hostgroup: ansible-pull
|
||||||
# zerotier
|
# docker
|
||||||
- name: Unit zerotier-one.service
|
# Strictly speaking not a tag, but it's best to keep it separated
|
||||||
command: check_by_ssh!/usr/local/bin/monitoring-scripts/check_systemd_unit zerotier-one.service
|
# TODO: Figure out how I'm going to implement Docker checks
|
||||||
hostgroup: zerotier
|
|
||||||
# nagios-checkpgsql
|
# nagios-checkpgsql
|
||||||
- name: PostgreSQL
|
- name: PSQL
|
||||||
command: "check_by_ssh!/usr/lib/nagios/plugins/check_pgsql -H localhost -l nagios -p {{ secret_postgresql_monitoring_password }} -w 2 -c 5"
|
command: "check_by_ssh!/usr/lib/nagios/plugins/check_pgsql -H localhost -l nagios -p {{ secret_postgresql_monitoring_password }} -w 2 -c 5"
|
||||||
hostgroup: nagios-checkpgsql
|
hostgroup: nagios-checkpgsql
|
||||||
|
- name: PSQL Connections
|
||||||
|
command: "check_by_ssh!/usr/lib/nagios/plugins/check_pgsql -H localhost -l nagios -p {{ secret_postgresql_monitoring_password }} -w 2 -c 5 -q 'select (select count(*)::float used from pg_stat_activity) / (select setting::int max_conn from pg_settings where name=$$max_connections$$);' -W 0.5-0.7 -C 0.7-1.0"
|
||||||
|
hostgroup: nagios-checkpgsql
|
||||||
- name: Unit postgresql.service
|
- name: Unit postgresql.service
|
||||||
command: check_by_postgresql!/usr/local/bin/monitoring-scripts/check_systemd_unit postgresql.service
|
command: check_by_ssh!/usr/local/bin/monitoring-scripts/check_systemd_unit postgresql.service
|
||||||
hostgroup: nagios-checkpgsql
|
hostgroup: nagios-checkpgsql
|
||||||
# nagios-nrpeswap
|
# nagios-nrpeswap
|
||||||
- name: Swap Usage
|
- name: Swap Usage
|
||||||
command: check_by_ssh!/usr/lib/nagios/plugins/check_swap -w 20% -c 10%
|
command: check_by_ssh!/usr/lib/nagios/plugins/check_swap -w 20% -c 10%
|
||||||
hostgroup: nagios-nrpeswap
|
hostgroup: nagios-nrpeswap
|
||||||
|
# zerotier
|
||||||
|
- name: Unit zerotier-one.service
|
||||||
|
command: check_by_ssh!/usr/local/bin/monitoring-scripts/check_systemd_unit zerotier-one.service
|
||||||
|
hostgroup: zerotier
|
||||||
register: config
|
register: config
|
||||||
tags: [ nagios, template ]
|
tags: [ nagios, template ]
|
||||||
- name: assure config file is loaded
|
- name: assure config file is loaded
|
||||||
|
Loading…
x
Reference in New Issue
Block a user