MM: Use the new api interface for Nagios checks
The newly introduced api interface provides a way to query the MM frontend for availability which only performs a minimal database query. Using this interface should reduce the load on the frontend and the database.
This commit is contained in:
parent
22b9f49506
commit
a55526bcaf
2 changed files with 2 additions and 2 deletions
|
@ -145,7 +145,7 @@ define service {
|
|||
define service {
|
||||
host_name 209.132.181.16-phx2, 85.236.55.6-internetx, proxy03.fedoraproject.org, 152.19.134.142-ibiblio, proxy06.fedoraproject.org, 213.175.193.206-bodhost, 67.203.2.67-coloamerica, 66.135.62.187-serverbeach
|
||||
service_description mirrors.fedoraproject.org - publiclist
|
||||
check_command check_website_ssl!admin.fedoraproject.org!/mirrormanager/!Fedora Public Active Mirrors
|
||||
check_command check_website_ssl!admin.fedoraproject.org!/mirrormanager/api/mirroradmins/?name=dl.fedoraproject.org!admins
|
||||
use websitetemplate
|
||||
}
|
||||
|
||||
|
|
|
@ -46,7 +46,7 @@ define service {
|
|||
define service {
|
||||
host_name mm-frontend01,mm-frontend01.stg
|
||||
service_description mm-publiclist-internal
|
||||
check_command check_website!localhost!/mirrormanager/
|
||||
check_command check_website!localhost!/mirrormanager/api/mirroradmins/?name=dl.fedoraproject.org
|
||||
use internalwebsitetemplate
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue