diff --git a/doc/10-icinga-template-library.md b/doc/10-icinga-template-library.md index 4f906d07a..3627d26ca 100644 --- a/doc/10-icinga-template-library.md +++ b/doc/10-icinga-template-library.md @@ -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 + +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 + +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 This category contains plugins for various database servers. diff --git a/itl/plugins-contrib.d/big-data.conf b/itl/plugins-contrib.d/big-data.conf index 5d757e282..d765a4b7c 100644 --- a/itl/plugins-contrib.d/big-data.conf +++ b/itl/plugins-contrib.d/big-data.conf @@ -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 + } + } +}