mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-03 20:04:29 +02:00
Add check commands for HDFS file count and used space
This commit is contained in:
parent
eb155495f7
commit
aad7107396
@ -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
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user