Merge pull request #6561 from miso231/feature_itl_ceph

[Feature] Ceph health CheckCommand
This commit is contained in:
Michael Friedrich 2018-08-22 12:51:50 +02:00 committed by GitHub
commit 8a172d39fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 64 additions and 0 deletions

View File

@ -3084,6 +3084,24 @@ glusterfs_disk_critical | **Optional.** Return a critical error if disk usage
glusterfs_inode_warning | **Optional.** Warn if inode usage is above *DISKWARN*. Defaults to 90 (percent).
glusterfs_inode_critical | **Optional.** Return a critical error if inode usage is above *DISKCRIT*. Defaults to 95 (percent).
#### ceph <a id="plugins-contrib-command-ceph"></a>
The [ceph plugin](https://github.com/ceph/ceph-nagios-plugins)
is used to check the Ceph storage health on the server.
Custom attributes passed as [command parameters](03-monitoring-basics.md#command-passing-parameters):
Name | Description
-----------------|---------------------------------------------------------
ceph_exec_dir | **Optional.** Ceph executable. Default /usr/bin/ceph.
ceph_conf_file | **Optional.** Alternative ceph conf file.
ceph_mon_address | **Optional.** Ceph monitor address[:port].
ceph_client_id | **Optional.** Ceph client id.
ceph_client_name | **Optional.** Ceph client name.
ceph_client_key | **Optional.** Ceph client keyring file.
ceph_whitelist | **Optional.** Whitelist regexp for ceph health warnings.
ceph_details | **Optional.** Run 'ceph health detail'.
### Virtualization <a id="plugin-contrib-virtualization"></a>

View File

@ -56,3 +56,49 @@ object CheckCommand "glusterfs" {
vars.glusterfs_inode_warning = 90
vars.glusterfs_inode_critical = 95
}
object CheckCommand "ceph" {
command = [ PluginDir + "/check_ceph.py" ]
arguments = {
"-e" = {
value = "$ceph_exec_dir$"
required = false
description = "ceph executable [/usr/bin/ceph]"
}
"-c" = {
value = "$ceph_conf_file$"
required = false
description = "alternative ceph conf file"
}
"-m" = {
value = "$ceph_mon_address$"
required = false
description = "ceph monitor address[:port]"
}
"-i" = {
value = "$ceph_client_id$"
required = false
description = "ceph client id"
}
"-n" = {
value = "$ceph_client_name$"
required = false
description = "ceph client name"
}
"-k" = {
value = "$ceph_client_key$"
required = false
description = "ceph client keyring file"
}
"-w" = {
value = "$ceph_whitelist$"
required = false
description = "whitelist regexp for ceph health warnings"
}
"-d" = {
set_if = "$ceph_details$"
description = "exec 'ceph health detail'"
}
}
}