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
|
httpd: false
|
||||||
swap: true
|
swap: true
|
||||||
ping: true
|
ping: true
|
||||||
|
raid: false
|
||||||
|
|
||||||
# Set variable if we want to use our global iptables defaults
|
# Set variable if we want to use our global iptables defaults
|
||||||
# Some things need to set their own.
|
# Some things need to set their own.
|
||||||
|
|
|
@ -18,3 +18,6 @@ csi_purpose: Host guest virtual machines.
|
||||||
csi_relationship: |
|
csi_relationship: |
|
||||||
- Guests on this host will be inaccessible if the host is down.
|
- 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.
|
- 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 {
|
# Special-case this so it can use retracetemplate.
|
||||||
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
|
|
||||||
#}
|
|
||||||
|
|
||||||
define service {
|
define service {
|
||||||
hostgroup_name retrace
|
hostgroup_name retrace
|
||||||
service_description Check_Raid
|
service_description Check_Raid
|
||||||
check_command check_by_nrpe!check_raid
|
check_command check_by_nrpe!check_raid
|
||||||
use retracetemplate
|
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
|
- vpnclients.cfg
|
||||||
- nomail.cfg
|
- nomail.cfg
|
||||||
- checkswap.cfg
|
- checkswap.cfg
|
||||||
|
- checkraid.cfg
|
||||||
when: nagios_location == "internal"
|
when: nagios_location == "internal"
|
||||||
tags:
|
tags:
|
||||||
- nagios_server
|
- 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