2019-02-25 14:48:22 +01:00
|
|
|
/* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */
|
2018-08-21 21:03:55 +02:00
|
|
|
|
|
|
|
object CheckCommand "cloudera_service_status" {
|
|
|
|
command = [ PluginDir + "/check_cloudera_service_status.py" ]
|
|
|
|
|
|
|
|
arguments = {
|
|
|
|
"-H" = {
|
|
|
|
description = "host"
|
|
|
|
value = "$cloudera_host$"
|
|
|
|
required = true
|
|
|
|
}
|
|
|
|
"-P" = {
|
|
|
|
description = "port"
|
|
|
|
value = "$cloudera_port$"
|
|
|
|
required = false
|
|
|
|
}
|
|
|
|
"-u" = {
|
|
|
|
description = "user"
|
|
|
|
value = "$cloudera_user$"
|
|
|
|
required = true
|
|
|
|
}
|
|
|
|
"-p" = {
|
|
|
|
description = "pass"
|
|
|
|
value = "$cloudera_pass$"
|
|
|
|
required = true
|
|
|
|
}
|
|
|
|
"-v" = {
|
|
|
|
description = "api_version"
|
|
|
|
value = "$cloudera_api_version$"
|
|
|
|
required = true
|
|
|
|
}
|
|
|
|
"-c" = {
|
|
|
|
description = "cluster"
|
|
|
|
value = "$cloudera_cluster$"
|
|
|
|
required = true
|
|
|
|
}
|
|
|
|
"-s" = {
|
|
|
|
description = "service"
|
|
|
|
value = "$cloudera_service$"
|
|
|
|
required = true
|
|
|
|
}
|
|
|
|
"-k" = {
|
|
|
|
description = "verify_ssl"
|
|
|
|
value = "$cloudera_verify_ssl$"
|
|
|
|
required = false
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2019-01-31 07:59:44 +01:00
|
|
|
|
|
|
|
object CheckCommand "cloudera_hdfs_space" {
|
|
|
|
command = [ PluginDir + "/check_cloudera_hdfs_space.py" ]
|
|
|
|
|
|
|
|
arguments = {
|
|
|
|
"-H" = {
|
|
|
|
description = "Namenode host"
|
2019-01-31 15:58:46 +01:00
|
|
|
value = "$cloudera_hdfs_space_host$"
|
2019-01-31 07:59:44 +01:00
|
|
|
required = true
|
|
|
|
}
|
|
|
|
"-P" = {
|
|
|
|
description = "Namenode port (default 50070)"
|
2019-01-31 15:58:46 +01:00
|
|
|
value = "$cloudera_hdfs_space_port$"
|
2019-01-31 07:59:44 +01:00
|
|
|
required = false
|
|
|
|
}
|
|
|
|
"-d" = {
|
|
|
|
description = "HDFS disk to check"
|
2019-01-31 15:58:46 +01:00
|
|
|
value = "$cloudera_hdfs_space_disk$"
|
2019-01-31 07:59:44 +01:00
|
|
|
required = true
|
|
|
|
}
|
|
|
|
"-w" = {
|
|
|
|
description = "Warning threshold in percent"
|
2019-01-31 15:58:46 +01:00
|
|
|
value = "$cloudera_hdfs_space_warn$"
|
2019-01-31 07:59:44 +01:00
|
|
|
required = true
|
|
|
|
}
|
|
|
|
"-c" = {
|
|
|
|
description = "Critical threshold in percent"
|
2019-01-31 15:58:46 +01:00
|
|
|
value = "$cloudera_hdfs_space_crit$"
|
2019-01-31 07:59:44 +01:00
|
|
|
required = true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
object CheckCommand "cloudera_hdfs_files" {
|
|
|
|
command = [ PluginDir + "/check_cloudera_hdfs_files.py" ]
|
|
|
|
|
|
|
|
arguments = {
|
|
|
|
"-H" = {
|
|
|
|
description = "Namenode host"
|
2019-01-31 15:58:46 +01:00
|
|
|
value = "$cloudera_hdfs_files_host$"
|
2019-01-31 07:59:44 +01:00
|
|
|
required = true
|
|
|
|
}
|
|
|
|
"-P" = {
|
|
|
|
description = "Namenode port (default 50070)"
|
2019-01-31 15:58:46 +01:00
|
|
|
value = "$cloudera_hdfs_files_port$"
|
2019-01-31 07:59:44 +01:00
|
|
|
required = false
|
|
|
|
}
|
|
|
|
"-w" = {
|
|
|
|
description = "Warning threshold"
|
2019-01-31 15:58:46 +01:00
|
|
|
value = "$cloudera_hdfs_files_warn$"
|
2019-01-31 07:59:44 +01:00
|
|
|
required = true
|
|
|
|
}
|
|
|
|
"-c" = {
|
|
|
|
description = "Critical threshold"
|
2019-01-31 15:58:46 +01:00
|
|
|
value = "$cloudera_hdfs_files_crit$"
|
2019-01-31 07:59:44 +01:00
|
|
|
required = true
|
|
|
|
}
|
|
|
|
"-m" = {
|
|
|
|
description = "Max files count that causes problems (default 140000000)"
|
2019-01-31 15:58:46 +01:00
|
|
|
value = "$cloudera_hdfs_files_max$"
|
2019-01-31 07:59:44 +01:00
|
|
|
required = false
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|