Documentation ¶
Overview ¶
Package ceph allows to check the status of ceph clusters.
Index ¶
Constants ¶
View Source
const StatusOK = "HEALTH_OK"
StatusOK is the value that ceph reports as health status when everything is good.
Variables ¶
This section is empty.
Functions ¶
func Check ¶
Check uses exec to execute the command `ceph status -f json` to get the current status of the cluster that is used by the host healthcheck is running on. If the exec succeeds the output is unmarshalled into Report. Lastly if the field Report->Health->Status is equal to the constant StatusOK nil is returned.
Types ¶
Click to show internal directories.
Click to hide internal directories.