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
|
||||
command: check_by_ssh!/usr/local/bin/monitoring-scripts/check_systemd_unit ansible-pull.timer
|
||||
hostgroup: ansible-pull
|
||||
# zerotier
|
||||
- name: Unit zerotier-one.service
|
||||
command: check_by_ssh!/usr/local/bin/monitoring-scripts/check_systemd_unit zerotier-one.service
|
||||
hostgroup: zerotier
|
||||
# docker
|
||||
# Strictly speaking not a tag, but it's best to keep it separated
|
||||
# TODO: Figure out how I'm going to implement Docker checks
|
||||
# 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"
|
||||
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
|
||||
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
|
||||
# nagios-nrpeswap
|
||||
- name: Swap Usage
|
||||
command: check_by_ssh!/usr/lib/nagios/plugins/check_swap -w 20% -c 10%
|
||||
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
|
||||
tags: [ nagios, template ]
|
||||
- name: assure config file is loaded
|
||||
|
Loading…
Reference in New Issue
Block a user