mirror of https://github.com/Icinga/icinga2.git
Merge pull request #6926 from miso231/feature/itl-cloudera-checks
Feature/itl cloudera checks
This commit is contained in:
commit
ab36724647
|
@ -2214,6 +2214,36 @@ cloudera_cluster | **Required.** The cluster name in cloudera manager.
|
|||
cloudera_service | **Required.** Name of cluster service to be checked.
|
||||
cloudera_verify_ssl | **Optional.** Verify SSL. Defaults to true.
|
||||
|
||||
#### cloudera_hdfs_space <a id="plugin-contrib-command-cloudera_hdfs_space"></a>
|
||||
|
||||
The [cloudera_hdfs_space](https://github.com/miso231/icinga2-cloudera-plugin) plugin
|
||||
connects to Hadoop Namenode and gets used capacity of selected disk
|
||||
|
||||
Custom attributes passed as [command parameters](03-monitoring-basics.md#command-passing-parameters):
|
||||
|
||||
Name | Description
|
||||
--------------------------|-----------------------------------------------------------------
|
||||
cloudera_hdfs_space_host | **Required.** Namenode host to connect to.
|
||||
cloudera_hdfs_space_port | **Optional.** Namenode port (default 50070).
|
||||
cloudera_hdfs_space_disk | **Required.** HDFS disk to check.
|
||||
cloudera_hdfs_space_warn | **Required.** Warning threshold in percent.
|
||||
cloudera_hdfs_space_crit | **Required.** Critical threshold in percent.
|
||||
|
||||
#### cloudera_hdfs_files <a id="plugin-contrib-command-cloudera_hdfs_files"></a>
|
||||
|
||||
The [cloudera_hdfs_files](https://github.com/miso231/icinga2-cloudera-plugin) plugin
|
||||
connects to Hadoop Namenode and gets total number of files on HDFS
|
||||
|
||||
Custom attributes passed as [command parameters](03-monitoring-basics.md#command-passing-parameters):
|
||||
|
||||
Name | Description
|
||||
--------------------------|-----------------------------------------------------------------
|
||||
cloudera_hdfs_files_host | **Required.** Namenode host to connect to.
|
||||
cloudera_hdfs_files_port | **Optional.** Namenode port (default 50070).
|
||||
cloudera_hdfs_files_warn | **Required.** Warning threshold.
|
||||
cloudera_hdfs_files_crit | **Required.** Critical threshold.
|
||||
cloudera_hdfs_files_max | **Required.** Max files count that causes problems (default 140,000,000).
|
||||
|
||||
### Databases <a id="plugin-contrib-databases"></a>
|
||||
|
||||
This category contains plugins for various database servers.
|
||||
|
|
|
@ -63,3 +63,67 @@ object CheckCommand "cloudera_service_status" {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
object CheckCommand "cloudera_hdfs_space" {
|
||||
command = [ PluginDir + "/check_cloudera_hdfs_space.py" ]
|
||||
|
||||
arguments = {
|
||||
"-H" = {
|
||||
description = "Namenode host"
|
||||
value = "$cloudera_hdfs_space_host$"
|
||||
required = true
|
||||
}
|
||||
"-P" = {
|
||||
description = "Namenode port (default 50070)"
|
||||
value = "$cloudera_hdfs_space_port$"
|
||||
required = false
|
||||
}
|
||||
"-d" = {
|
||||
description = "HDFS disk to check"
|
||||
value = "$cloudera_hdfs_space_disk$"
|
||||
required = true
|
||||
}
|
||||
"-w" = {
|
||||
description = "Warning threshold in percent"
|
||||
value = "$cloudera_hdfs_space_warn$"
|
||||
required = true
|
||||
}
|
||||
"-c" = {
|
||||
description = "Critical threshold in percent"
|
||||
value = "$cloudera_hdfs_space_crit$"
|
||||
required = true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
object CheckCommand "cloudera_hdfs_files" {
|
||||
command = [ PluginDir + "/check_cloudera_hdfs_files.py" ]
|
||||
|
||||
arguments = {
|
||||
"-H" = {
|
||||
description = "Namenode host"
|
||||
value = "$cloudera_hdfs_files_host$"
|
||||
required = true
|
||||
}
|
||||
"-P" = {
|
||||
description = "Namenode port (default 50070)"
|
||||
value = "$cloudera_hdfs_files_port$"
|
||||
required = false
|
||||
}
|
||||
"-w" = {
|
||||
description = "Warning threshold"
|
||||
value = "$cloudera_hdfs_files_warn$"
|
||||
required = true
|
||||
}
|
||||
"-c" = {
|
||||
description = "Critical threshold"
|
||||
value = "$cloudera_hdfs_files_crit$"
|
||||
required = true
|
||||
}
|
||||
"-m" = {
|
||||
description = "Max files count that causes problems (default 140000000)"
|
||||
value = "$cloudera_hdfs_files_max$"
|
||||
required = false
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue