]> granicus.if.org Git - icinga2/commitdiff
itl: Add manubulon/check_snmp_env.pl as CheckCommand snmp-env 5401/head
authorLee Clemens <java@leeclemens.net>
Wed, 5 Jul 2017 19:36:16 +0000 (15:36 -0400)
committerLee Clemens <java@leeclemens.net>
Wed, 26 Jul 2017 19:03:54 +0000 (15:03 -0400)
doc/10-icinga-template-library.md
itl/command-plugins-manubulon.conf

index ac90f743a976d7898d24f10a93a8c52c1f055c1b..83c16d9d384d8bdff4db9cba4852876514c5c414 100644 (file)
@@ -1872,6 +1872,33 @@ You can enable these plugin check commands by adding the following the include d
   Cisco CSS               |   Yes      |   ??     |   Yes     | Yes |   No     | ??  | check_snmp_css.pl
 
 
+### snmp-env <a id="plugin-check-command-snmp-env"></a>
+
+Check command object for the [check_snmp_env.pl](http://nagios.manubulon.com/snmp_env.html) plugin.
+
+Custom attributes passed as [command parameters](03-monitoring-basics.md#command-passing-parameters):
+
+
+Name                    | Description
+------------------------|--------------
+snmp_address            | **Optional.** The host's address. Defaults to "$address$" if the host's `address` attribute is set, "$address6$" otherwise.
+snmp_nocrypt            | **Optional.** Define SNMP encryption. If set, **snmp_v3** needs to be set. Defaults to false.
+snmp_community          | **Optional.** The SNMP community. Defaults to "public".
+snmp_port               | **Optional.** The SNMP port connection.
+snmp_v2                 | **Optional.** SNMP version to 2c. Defaults to false.
+snmp_v3                 | **Optional.** SNMP version to 3. Defaults to false.
+snmp_login              | **Optional.** SNMP version 3 username. Defaults to "snmpuser".
+snmp_password           | **Required.** SNMP version 3 password. No value defined as default.
+snmp_v3_use_privpass    | **Optional.** Define to use SNMP version 3 priv password. Defaults to false.
+snmp_v3_use_authprotocol| **Optional.** Define to use SNMP version 3 authentication protocol. Defaults to false.
+snmp_authprotocol       | **Optional.** SNMP version 3 authentication protocol. Defaults to "md5,des".
+snmp_privpass           | **Required.** SNMP version 3 priv password. No value defined as default.
+snmp_env_type           | **Optional.** Environment Type [cisco|nokia|bc|iron|foundry|linux]. Defaults to "cisco".
+snmp_env_fan            | **Optional.** Minimum fan rpm value (only needed for 'iron' & 'linux')
+snmp_env_celsius        | **Optional.** Maximum temp in degrees celsius (only needed for 'iron' & 'linux')
+snmp_perf               | **Optional.** Enable perfdata values. Defaults to true.
+snmp_timeout            | **Optional.** The command timeout in seconds. Defaults to 5 seconds.
+
 ### snmp-load <a id="plugin-check-command-snmp-load"></a>
 
 Check command object for the [check_snmp_load.pl](http://nagios.manubulon.com/snmp_load.html) plugin.
index 74c3cbc3c7a809912e0d97cbee0494b7056a85a8..a84aee7c26f6bbb9f03d18d692a81b33d6d00daa 100644 (file)
@@ -87,6 +87,40 @@ template CheckCommand "snmp-manubulon-command" {
 }
 
 
+/**
+ * snmp env
+ *   Url reference: http://nagios.manubulon.com/snmp_env.html
+ */
+
+object CheckCommand "snmp-env" {
+       import "snmp-manubulon-command"
+
+       command = [ ManubulonPluginDir + "/check_snmp_env.pl" ]
+
+       arguments += {
+               "-T" = {
+                       value = "$snmp_env_type$"
+                       description = "Environment Type [cisco|nokia|bc|iron|foundry|linux]"
+               }
+               "-F" = {
+                       value = "$snmp_env_fan$"
+                       description = "Minimum fan rpm value (only needed for 'iron' & 'linux')"
+               }
+               "-c" = {
+                       value = "$snmp_env_celsius$"
+                       description = "Maximum temp in degrees celsius (only needed for 'iron' & 'linux')"
+               }
+               "-f" = {
+                       set_if = "$snmp_perf$"
+                       description = "Perfparse compatible output"
+               }
+       }
+
+       vars.snmp_env_type = "cisco"
+       vars.snmp_perf = true
+}
+
+
 /**
  * snmp load
  *   Url reference: http://nagios.manubulon.com/snmp_load.html