nagios: Try a new way of doing the raid check, so we can check extra hosts like autocloud-backend-libvirt2
Signed-off-by: Rick Elrod <relrod@redhat.com>
This commit is contained in:
parent
46985dbb66
commit
c31829a561
5 changed files with 20 additions and 16 deletions
|
@ -296,6 +296,7 @@ nagios_Check_Services:
|
|||
httpd: false
|
||||
swap: true
|
||||
ping: true
|
||||
raid: false
|
||||
|
||||
# Set variable if we want to use our global iptables defaults
|
||||
# Some things need to set their own.
|
||||
|
|
|
@ -18,3 +18,6 @@ csi_purpose: Host guest virtual machines.
|
|||
csi_relationship: |
|
||||
- Guests on this host will be inaccessible if the host is down.
|
||||
- This host will be required by any application with a virtual machine running on it, therefore, if this host is down those applications will be impacted.
|
||||
|
||||
nagios_Check_Services:
|
||||
raid: true
|
||||
|
|
|
@ -1,22 +1,15 @@
|
|||
define service {
|
||||
hostgroup_name virtservers
|
||||
service_description Check_Raid
|
||||
check_command check_by_nrpe!check_raid
|
||||
use lighttemplate
|
||||
}
|
||||
|
||||
#define service {
|
||||
# hostgroup_name buildservers
|
||||
# service_description Check Raid
|
||||
# check_command check_by_nrpe!check_raid
|
||||
# use lighttemplate
|
||||
# retry_interval 5
|
||||
# max_check_attempts 12
|
||||
#}
|
||||
|
||||
# Special-case this so it can use retracetemplate.
|
||||
define service {
|
||||
hostgroup_name retrace
|
||||
service_description Check_Raid
|
||||
check_command check_by_nrpe!check_raid
|
||||
use retracetemplate
|
||||
}
|
||||
|
||||
# Everything else uses this group.
|
||||
define service {
|
||||
hostgroup_name CheckRaid
|
||||
service_description Check_Raid
|
||||
check_command check_by_nrpe!check_raid
|
||||
use lighttemplate
|
||||
}
|
||||
|
|
|
@ -412,6 +412,7 @@
|
|||
- vpnclients.cfg
|
||||
- nomail.cfg
|
||||
- checkswap.cfg
|
||||
- checkraid.cfg
|
||||
when: nagios_location == "internal"
|
||||
tags:
|
||||
- nagios_server
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
define hostgroup {
|
||||
hostgroup_name CheckRaid
|
||||
alias Raid-Issue
|
||||
members {% for host in groups['all']|sort %}{% if hostvars[host].nagios_Check_Services['raid'] %}{{host}}{% if not loop.last %},{% endif %} {% endif %} {% endfor %}
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue