nagios: enable disk monitoring for copr instances

I think that / monitoring should work by default just by
setting `nrpe: true` because of

    define service {
      hostgroup_name	all, !mincheckgrp
      service_description   Disk_Space_/
      check_command		check_by_nrpe!check_disk_/
      use                   disktemplate
    }
This commit is contained in:
Jakub Kadlcik 2021-08-09 01:30:47 +02:00 committed by praiskup
parent 73ba7d25b1
commit 9a8acc79ae
8 changed files with 32 additions and 5 deletions

View file

@ -25,7 +25,7 @@ copr_hostbase: copr-dist-git-dev
nagios_Check_Services:
mail: false
nrpe: false
nrpe: true
sshd: false
named: false
dhcpd: false

View file

@ -25,7 +25,7 @@ copr_hostbase: copr-dist-git
nagios_Check_Services:
mail: false
nrpe: false
nrpe: true
sshd: false
named: false
dhcpd: false

View file

@ -25,7 +25,7 @@ db_backup_dir: ['/backups']
nagios_Check_Services:
mail: false
nrpe: false
nrpe: true
sshd: false
named: false
dhcpd: false

View file

@ -19,7 +19,7 @@ description: copr key gen and sign host - dev instance
nagios_Check_Services:
mail: false
nrpe: false
nrpe: true
sshd: false
named: false
dhcpd: false

View file

@ -19,7 +19,7 @@ description: copr key gen and sign host - prod instance
nagios_Check_Services:
mail: false
nrpe: false
nrpe: true
sshd: true
named: false
dhcpd: false

View file

@ -16,5 +16,8 @@ command[check_disk_/srv/diskimages]=/usr/lib64/nagios/plugins/check_disk -w 20%
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/lib/dist-git]=/usr/lib64/nagios/plugins/check_disk -w 20% -c 10% -p /var/lib/dist-git
command[check_disk_/var/lib/copr-keygen]=/usr/lib64/nagios/plugins/check_disk -w 20% -c 10% -p /var/lib/copr-keygen
command[check_disk_/srv/copr-fe]=/usr/lib64/nagios/plugins/check_disk -w 20% -c 10% -p /srv/copr-fe
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

@ -4,3 +4,24 @@ define service {
check_command check_by_nrpe!check_disk_/var/lib/copr/public_html
use disktemplate
}
define service {
hostgroup_name copr_dist_git_aws, copr_dist_git_dev_aws
service_description Disk space on Copr DistGit used for imported packages
check_command check_by_nrpe!check_disk_/var/lib/dist-git
use disktemplate
}
define service {
hostgroup_name copr_front_aws, copr_front_dev_aws
service_description Disk space on Copr Frontend used for the database
check_command check_by_nrpe!check_disk_/srv/copr-fe
use disktemplate
}
define service {
hostgroup_name copr_keygen_aws, copr_keygen_dev_aws
service_description Disk space on Copr Keygen used for GPG keys
check_command check_by_nrpe!check_disk_/var/lib/copr-keygen
use disktemplate
}

View file

@ -302,6 +302,9 @@ command[check_disk_/srv/diskimages]=/usr/lib64/nagios/plugins/check_disk -w 20%
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/lib/dist-git]=/usr/lib64/nagios/plugins/check_disk -w 20% -c 10% -p /var/lib/dist-git
command[check_disk_/var/lib/copr-keygen]=/usr/lib64/nagios/plugins/check_disk -w 20% -c 10% -p /var/lib/copr-keygen
command[check_disk_/srv/copr-fe]=/usr/lib64/nagios/plugins/check_disk -w 20% -c 10% -p /srv/copr-fe
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