mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-25 06:34:42 +02:00
Merge pull request #6563 from miso231/feature/itl-cloudera-check
[Feature] Cloudera service health CheckCommand
This commit is contained in:
commit
ebe4bcea8e
@ -2184,6 +2184,28 @@ include <plugin-contrib>
|
|||||||
|
|
||||||
This is enabled by default since Icinga 2 2.5.0.
|
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>
|
### Databases <a id="plugin-contrib-databases"></a>
|
||||||
|
|
||||||
This category contains plugins for various database servers.
|
This category contains plugins for various database servers.
|
||||||
|
@ -16,6 +16,6 @@
|
|||||||
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
|
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
|
|
||||||
install(
|
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
|
DESTINATION ${ICINGA2_INCLUDEDIR}/plugins-contrib.d
|
||||||
)
|
)
|
||||||
|
65
itl/plugins-contrib.d/big-data.conf
Normal file
65
itl/plugins-contrib.d/big-data.conf
Normal 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
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user