Add check commands for HDFS file count and used space
authorMichal Petko <michal.petko@jumpshot.com>
Thu, 31 Jan 2019 06:59:44 +0000 (07:59 +0100)
committerMichal Petko <michal.petko@jumpshot.com>
Thu, 31 Jan 2019 06:59:44 +0000 (07:59 +0100)
itl/plugins-contrib.d/big-data.conf

index 5d757e2828119d88f775c37ff4dde3f4d4742772..24da0b1831233242db0a5212b9c1810d37425504 100644 (file)
@@ -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       = "$hdfs_space_host$"
+                       required    = true
+               }
+               "-P" = {
+                       description = "Namenode port (default 50070)"
+                       value       = "$hdfs_space_port$"
+                       required    = false
+               }
+               "-d" = {
+                       description = "HDFS disk to check"
+                       value       = "$hdfs_space_disk$"
+                       required    = true
+               }
+               "-w" = {
+                       description = "Warning threshold in percent"
+                       value       = "$hdfs_space_warn$"
+                       required    = true
+               }
+               "-c" = {
+                       description = "Critical threshold in percent"
+                       value       = "$hdfs_space_crit$"
+                       required    = true
+               }
+       }
+}
+
+object CheckCommand "cloudera_hdfs_files" {
+       command = [ PluginDir + "/check_cloudera_hdfs_files.py" ]
+
+       arguments = {
+               "-H" = {
+                       description = "Namenode host"
+                       value       = "$hdfs_files_host$"
+                       required    = true
+               }
+               "-P" = {
+                       description = "Namenode port (default 50070)"
+                       value       = "$hdfs_files_port$"
+                       required    = false
+               }
+               "-w" = {
+                       description = "Warning threshold"
+                       value       = "$hdfs_files_warn$"
+                       required    = true
+               }
+               "-c" = {
+                       description = "Critical threshold"
+                       value       = "$hdfs_files_crit$"
+                       required    = true
+               }
+               "-m" = {
+                       description = "Max files count that causes problems (default 140000000)"
+                       value       = "$hdfs_files_max$"
+                       required    = false
+               }
+       }
+}