copr-be: test remaining results storage space

This commit is contained in:
Pavel Raiskup 2021-07-28 13:51:16 +02:00
parent 00b5afa1a9
commit 29fb33bbb7
4 changed files with 9 additions and 0 deletions

View file

@ -15,5 +15,6 @@ command[check_disk_/srv/cache/lookaside]=/usr/lib64/nagios/plugins/check_disk -w
command[check_disk_/srv/diskimages]=/usr/lib64/nagios/plugins/check_disk -w 20% -c 10% -p /srv/diskimages
command[check_disk_/srv/registry]=/usr/lib64/nagios/plugins/check_disk -w 20% -c 10% -p /srv/registry
command[check_disk_/u01]=/usr/lib64/nagios/plugins/check_disk -w 15% -c 10% -p /u01
command[check_disk_/var/lib/copr/public_html]=/usr/lib64/nagios/plugins/check_disk -w 20% -c 10% -p /var/lib/copr/public_html
command[check_disk_/var/lib64/mock]=/usr/lib64/nagios/plugins/check_disk -w 20% -c 10% -p /var/lib/mock
command[check_disk_/var/log]=/usr/lib64/nagios/plugins/check_disk -w 15% -c 10% -p /var/log

View file

@ -0,0 +1,6 @@
define service {
hostgroup_name copr_back
service_description Disk space on Copr Backend used for build results
check_command check_by_nrpe!check_disk_/var/lib/copr/public_html
use disktemplate
}

View file

@ -222,6 +222,7 @@
- name: Copy /etc/nagios/services (internal files)
copy: src=nagios/services/{{ item }} dest=/etc/nagios/services/{{ item }}
with_items:
- copr.cfg
- dns.cfg
- haproxy.cfg
- mail_queue.cfg

View file

@ -301,6 +301,7 @@ command[check_disk_/srv/cache/lookaside]=/usr/lib64/nagios/plugins/check_disk -w
command[check_disk_/srv/diskimages]=/usr/lib64/nagios/plugins/check_disk -w 20% -c 10% -p /srv/diskimages
command[check_disk_/srv/registry]=/usr/lib64/nagios/plugins/check_disk -w 20% -c 10% -p /srv/registry
command[check_disk_/u01]=/usr/lib64/nagios/plugins/check_disk -w 15% -c 10% -p /u01
command[check_disk_/var/lib/copr/public_html]=/usr/lib64/nagios/plugins/check_disk -w 20% -c 10% -p /var/lib/copr/public_html
command[check_disk_/var/lib64/mock]=/usr/lib64/nagios/plugins/check_disk -w 20% -c 10% -p /var/lib/mock
command[check_disk_/var/log]=/usr/lib64/nagios/plugins/check_disk -w 15% -c 10% -p /var/log
command[check_zombie_procs]=/usr/lib64/nagios/plugins/check_procs -w 15 -c 25 -s Z