Merge pull request #6563 from miso231/feature/itl-cloudera-check

[Feature] Cloudera service health CheckCommand
This commit is contained in:
Michael Friedrich 2018-08-22 12:39:57 +02:00 committed by GitHub
commit ebe4bcea8e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 88 additions and 1 deletions

View File

@ -2184,6 +2184,28 @@ include <plugin-contrib>
This is enabled by default since Icinga 2 2.5.0.
### Big Data <a id="plugin-contrib-big-data"></a>
This category contains plugins for various Big Data systems.
#### cloudera_service_status <a id="plugin-contrib-command-cloudera_service_status"></a>
The [cloudera_service_status](https://github.com/miso231/icinga2-cloudera-plugin) plugin
uses Cloudera Manager API to monitor cluster services
Custom attributes passed as [command parameters](03-monitoring-basics.md#command-passing-parameters):
Name | Description
----------------------|-----------------------------------------------------------------
cloudera_host | **Required.** Hostname of cloudera server.
cloudera_port | **Optional.** Port where cloudera is listening. Defaults to 443.
cloudera_user | **Required.** The username for the API connection.
cloudera_pass | **Required.** The password for the API connection.
cloudera_api_version | **Required.** API version of cloudera.
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.
### Databases <a id="plugin-contrib-databases"></a>
This category contains plugins for various database servers.

View File

@ -16,6 +16,6 @@
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
install(
FILES databases.conf hardware.conf icingacli.conf ipmi.conf logmanagement.conf metrics.conf network-components.conf network-services.conf operating-system.conf raid-controller.conf smart-attributes.conf storage.conf virtualization.conf vmware.conf web.conf
FILES big-data.conf databases.conf hardware.conf icingacli.conf ipmi.conf logmanagement.conf metrics.conf network-components.conf network-services.conf operating-system.conf raid-controller.conf smart-attributes.conf storage.conf virtualization.conf vmware.conf web.conf
DESTINATION ${ICINGA2_INCLUDEDIR}/plugins-contrib.d
)

View File

@ -0,0 +1,65 @@
/******************************************************************************
* Icinga 2 *
* Copyright (C) 2012-2018 Icinga Development Team (https://www.icinga.com/) *
* *
* This program is free software; you can redistribute it and/or *
* modify it under the terms of the GNU General Public License *
* as published by the Free Software Foundation; either version 2 *
* of the License, or (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the Free Software Foundation *
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. *
******************************************************************************/
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
}
}
}