Skip to content

Commit

Permalink
Added dns & http checks to standalone version
Browse files Browse the repository at this point in the history
  • Loading branch information
u220374 committed May 15, 2017
1 parent bb400dd commit 9a094ca
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,18 +48,22 @@ Furthermore the daemon now also has a standalone mode. It runs checks based on a
| ALL | /slow | Slow endpoint for slow http-ping |
| NODE | /checks/minor | Checks if the dockerpool is > 80% |
| | | Checks ntpd synchronization status |
| | | Checks if http access via service is ok |
| NODE | /checks/major | Checks if the dockerpool is > 90% |
| | | Check if dns is ok via kubernetes & dnsmasq |
| MASTER | /checks/minor | Checks ntpd synchronization status |
| | | Checks if external system is reachable |
| | | Checks if hawcular is healthy |
| | | Checks if ha-proxy has a high restart count |
| | | Checks if all projects have limits & quotas |
| | | Checks if http access via service is ok |
| MASTER | /checks/major | Checks if output of 'oc get nodes' is fine |
| | | Checks if etcd cluster is healthy |
| | | Checks if docker registry is healthy |
| | | Checks if all routers are healthy |
| | | Checks if local master api is healthy |
| | | Checks if logging pods are healthy |
| | | Check if dns is ok via kubernetes & dnsmasq |
| STORAGE | /checks/minor | Checks if open-files count is higher than 200'000 files |
| STORAGE | /checks/major | Checks if output of gstatus is 'healthy' |

Expand Down
24 changes: 24 additions & 0 deletions daemon/client/handlers/major.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,18 @@ func HandleMajorChecks(daemonType string, w http.ResponseWriter, r *http.Request
State: ok,
Message: msg,
})

ok, msg = checks.CheckDnsNslookupOnKubernetes()
responses = append(responses, models.CheckState{
State: ok,
Message: msg,
})

ok, msg = checks.CheckDnsServiceNode()
responses = append(responses, models.CheckState{
State: ok,
Message: msg,
})
}

if (daemonType == "MASTER") {
Expand Down Expand Up @@ -64,6 +76,18 @@ func HandleMajorChecks(daemonType string, w http.ResponseWriter, r *http.Request
State: ok,
Message: msg,
})

ok, msg = checks.CheckDnsNslookupOnKubernetes()
responses = append(responses, models.CheckState{
State: ok,
Message: msg,
})

ok, msg = checks.CheckDnsServiceNode()
responses = append(responses, models.CheckState{
State: ok,
Message: msg,
})
}

if (daemonType == "STORAGE") {
Expand Down
12 changes: 12 additions & 0 deletions daemon/client/handlers/minor.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ func HandleMinorChecks(daemonType string, w http.ResponseWriter, r *http.Request
State: ok,
Message: msg,
})

ok, msg = checks.CheckHttpService(true)
responses = append(responses, models.CheckState{
State: ok,
Message: msg,
})
}

if (daemonType == "MASTER") {
Expand Down Expand Up @@ -55,6 +61,12 @@ func HandleMinorChecks(daemonType string, w http.ResponseWriter, r *http.Request
State: ok,
Message: msg,
})

ok, msg = checks.CheckHttpService(true)
responses = append(responses, models.CheckState{
State: ok,
Message: msg,
})
}

if (daemonType == "STORAGE") {
Expand Down

0 comments on commit 9a094ca

Please sign in to comment.