]> granicus.if.org Git - icinga2/commitdiff
Add cloudera plugin to itl 6563/head
authorMichal Petko <michal.petko@jumpshot.com>
Tue, 21 Aug 2018 19:03:55 +0000 (21:03 +0200)
committerMichal Petko <michal.petko@jumpshot.com>
Tue, 21 Aug 2018 19:03:55 +0000 (21:03 +0200)
doc/10-icinga-template-library.md
itl/plugins-contrib.d/CMakeLists.txt
itl/plugins-contrib.d/big-data.conf [new file with mode: 0644]

index 1ce1cd45a2d52222ac50f3ecf217a08615865223..3842193e761dc2d33cee8f232cb6bf6dbb1dfa7c 100644 (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.
index 5d60a1b70dd9ab7c350c59915c9e2d41a5382522..360836414eb894d8b75a8c6b1d82391fd7e0aaed 100644 (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
 )
diff --git a/itl/plugins-contrib.d/big-data.conf b/itl/plugins-contrib.d/big-data.conf
new file mode 100644 (file)
index 0000000..dc44800
--- /dev/null
@@ -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
+               }
+       }
+}