Clean up nagios to deal with dropped services and that servicegroups can NOT end with a , while every other nagios group can.
This commit is contained in:
parent
924325027c
commit
89f91a9642
8 changed files with 6 additions and 21 deletions
|
@ -144,3 +144,4 @@ exclude_hostgroups:
|
|||
- virt_guest
|
||||
- virt_host
|
||||
- iad2
|
||||
- download_iad2
|
||||
|
|
|
@ -11,7 +11,6 @@ command[check_disk_/project/]=/usr/lib64/nagios/plugins/check_disk -w 5% -c 1% -
|
|||
command[check_disk_/srv/buildmaster]=/usr/lib64/nagios/plugins/check_disk -w 20% -c 10% -p /srv/buildmaster
|
||||
command[check_disk_/srv/cache/lookaside]=/usr/lib64/nagios/plugins/check_disk -w 20% -c 10% -p /srv/cache/lookaside
|
||||
command[check_disk_/srv/diskimages]=/usr/lib64/nagios/plugins/check_disk -w 20% -c 10% -p /srv/diskimages
|
||||
command[check_disk_/srv/taskotron]=/usr/lib64/nagios/plugins/check_disk -w 20% -c 10% -p /srv/taskotron
|
||||
command[check_disk_/srv]=/usr/lib64/nagios/plugins/check_disk -w 20% -c 10% -p /srv
|
||||
command[check_disk_huge_/srv]=/usr/lib64/nagios/plugins/check_disk -w 5% -c 1% -p /srv
|
||||
command[check_disk_/u01]=/usr/lib64/nagios/plugins/check_disk -w 15% -c 10% -p /u01
|
||||
|
|
|
@ -19,20 +19,6 @@ define service {
|
|||
use disktemplate
|
||||
}
|
||||
|
||||
define service {
|
||||
hostgroup_name taskotron
|
||||
service_description Disk Space /srv/buildmaster
|
||||
check_command check_by_nrpe!check_disk_/srv/buildmaster
|
||||
use disktemplate
|
||||
}
|
||||
|
||||
define service {
|
||||
hostgroup_name taskotron
|
||||
service_description Disk Space /srv/taskotron
|
||||
check_command check_by_nrpe!check_disk_/srv/taskotron
|
||||
use disktemplate
|
||||
}
|
||||
|
||||
define service {
|
||||
host_name log01.phx2.fedoraproject.org
|
||||
service_description Disk space /var/log
|
||||
|
|
|
@ -298,7 +298,6 @@ command[check_disk_/srv]=/usr/lib64/nagios/plugins/check_disk -w 20% -c 10% -p /
|
|||
command[check_disk_huge_/srv]=/usr/lib64/nagios/plugins/check_disk -w 5% -c 1% -p /srv
|
||||
command[check_disk_/srv/diskimages]=/usr/lib64/nagios/plugins/check_disk -w 20% -c 10% -p /srv/diskimages
|
||||
command[check_disk_/srv/buildmaster]=/usr/lib64/nagios/plugins/check_disk -w 20% -c 10% -p /srv/buildmaster
|
||||
command[check_disk_/srv/taskotron]=/usr/lib64/nagios/plugins/check_disk -w 20% -c 10% -p /srv/taskotron
|
||||
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_disk_/srv/cache/lookaside]=/usr/lib64/nagios/plugins/check_disk -w 20% -c 10% -p /srv/cache/lookaside
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
define servicegroup {
|
||||
servicegroup_name bodhi
|
||||
alias Bodhi
|
||||
members {% for host in groups['proxies']|sort %}{% if hostvars[host].nagios_Can_Connect == true %}{{host}}, http-bodhi2, {% endif %} {% endfor %}
|
||||
members {% for host in groups['proxies']|sort %}{% if hostvars[host].nagios_Can_Connect == true %}{{host}}, http-bodhi2{% if not loop.last %}, {% endif %}{% endif %} {% endfor %}
|
||||
|
||||
}
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
define servicegroup {
|
||||
servicegroup_name fp-wiki
|
||||
alias Fedora Project Wiki
|
||||
members {% for host in groups['proxies']|sort %}{% if hostvars[host].nagios_Can_Connect == true %}{{host}}, http-fedoraproject.org-wiki, {% endif %}{% endfor %}
|
||||
members {% for host in groups['proxies']|sort %}{% if hostvars[host].nagios_Can_Connect == true %}{{host}}, http-fedoraproject.org-wiki{% if not loop.last %}, {% endif %}{% endif %}{% endfor %}
|
||||
|
||||
}
|
||||
|
||||
define servicegroup {
|
||||
servicegroup_name fp-wiki-non-cached
|
||||
alias Fedora Project Wiki
|
||||
members {% for host in groups['proxies']|sort %}{% if hostvars[host].nagios_Can_Connect == true %}{{host}}, http-fedoraproject.org-wiki-non-cached, {% endif %}{% endfor %}
|
||||
members {% for host in groups['proxies']|sort %}{% if hostvars[host].nagios_Can_Connect == true %}{{host}}, http-fedoraproject.org-wiki-non-cached{% if not loop.last %}, {% endif %}{% endif %}{% endfor %}
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
define servicegroup {
|
||||
servicegroup_name freemedia
|
||||
alias FreeMedia
|
||||
members {% for host in groups['sundries'] %}{% if hostvars[host].nagios_Can_Connect == true %}{{host}}, http-freemedia-internal, {% endif %} {% endfor %}
|
||||
members {% for host in groups['sundries'] %}{% if hostvars[host].nagios_Can_Connect == true %}{{host}}, http-freemedia-internal{% if not loop.last %}, {% endif %}{% endif %} {% endfor %}
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
define servicegroup {
|
||||
servicegroup_name ipa
|
||||
alias IPA Servers
|
||||
members {% for host in groups['ipa'] %}{% if hostvars[host].nagios_Can_Connect == true %}{{host}}, IPA Replication Status , {% endif%}{% endfor %}
|
||||
members {% for host in groups['ipa'] %}{% if hostvars[host].nagios_Can_Connect == true %}{{host}}, IPA Replication Status{% if not loop.last %}, {% endif %}{% endif%}{% endfor %}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue