Skip to content

Commit 3610e1f

Browse files
committed
1 parent 71cefb9 commit 3610e1f

File tree

2 files changed

+130
-0
lines changed

2 files changed

+130
-0
lines changed

doc/10-icinga-template-library.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2798,6 +2798,38 @@ Name | Description
27982798
smart_attributes_config_path | **Required.** Path to the smart attributes config file (e.g. check_smartdb.json).
27992799
smart_attributes_device | **Required.** Device name (e.g. /dev/sda) to monitor.
28002800

2801+
#### fiberchannel-brocade <a id="plugin-contrib-command-fiberchannel-brocade"></a>
2802+
2803+
The [check_snmp_brocade](https://exchange.nagios.org/directory/Plugins/Hardware/Network-Gear/Brocade/check_snmp_brocade--2D-monitor-Brocade-fibre-channel-switches/details) plugin
2804+
monitors the hardware health of Brocade Fiber Channel Switches via SNMP.
2805+
2806+
The plugin runs remote SNMP queries.
2807+
2808+
Custom variables passed as [command parameters](03-monitoring-basics.md#command-passing-parameters):
2809+
2810+
Name | Description
2811+
--------------------------------------|-----------------------------------------------------------------------
2812+
fiberchannel_brocade_hostname | **Required.** Hostname or IP-address of the server (SNMP mode only)
2813+
fiberchannel_brocade_community | **Optional.** SNMP community of the switch (SNMP v1/2 only)
2814+
fiberchannel_brocade_snmpversion | **Optional.** The SNMP protocol to use (default: 2c, other possibilities: 1,3)
2815+
fiberchannel_brocade_seclevel | **Optional.** The SNMP security level to use (default: noAuthNoPriv, othet possibilities: authNoPriv,authPriv)
2816+
fiberchannel_brocade_port | **Optional.** The SNMP port to use (default: 161)
2817+
fiberchannel_brocade_context | **Optional.** SNMPv3 context name
2818+
fiberchannel_brocade_fc_port | **Optional.** Port number as shown in the output of `switchshow`. Can't combine with --systeminfo parameter
2819+
fiberchannel_brocade_systeminfo | **Optional.** Get global data like boot date, overall status, reachability
2820+
fiberchannel_brocade_sensor | **Optional.** Additional to --systeminfo. Status of powersupply, fans and temp sensors
2821+
fiberchannel_brocade_global | **Optional.** Global data like boot date, overall status
2822+
fiberchannel_brocade_perfdata | **Optional.** Print performance data of the selected FC port specified via -P parameter
2823+
fiberchannel_brocade_secname | **Optional.** The SNMPv3 securityName for the USM security model
2824+
fiberchannel_brocade_authpassword | **Optional.** The authentication password for SNMPv3
2825+
fiberchannel_brocade_authprotocol | **Optional.** The authentication protocol for SNMPv3 (md5|sha)
2826+
fiberchannel_brocade_privpassword | **Optional.** The password for SNMPv3 authPriv security level
2827+
fiberchannel_brocade_privprotocol | **Optional.** The private protocol for SNMPv3 (des|aes)
2828+
fiberchannel_brocade_sfptemp | **Optional.** Checks the temperature of all SFPs
2829+
fiberchannel_brocade_sfptemp_warning | **Optional.** This is the warning offset the critical temperature as delivered by the system. Default is 10 Celsius. Must be used with --sfptemp parameter
2830+
fiberchannel_brocade_sfptemp_critical | **Optional.** Maximum temperature for SFPs. If not set it will be taken from your switch
2831+
fiberchannel_brocade_allports | **Optional.** Default is only to show ports which are too hot. With this flag all ports will be shown. Must be used with --sfptemp
2832+
fiberchannel_brocade_multiline | **Optional.** Multiline output in overview. This mean technically that a multiline output uses a HTML <br> for the GUI instead of be aware that your messing connections (email, SMS...) must use a filter to file out the <br>. A sed oneliner will do the job.
28012833

28022834
### IcingaCLI <a id="plugin-contrib-icingacli"></a>
28032835

itl/plugins-contrib.d/network-components.conf

Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -833,3 +833,101 @@ object CheckCommand "printer_health" {
833833
vars.printer_health_hostname = "$check_address$"
834834
vars.printer_health_mode = "supplies-status"
835835
}
836+
837+
object CheckCommand "fiberchannel-brocade" {
838+
import "ipv4-or-ipv6"
839+
840+
command = [ PluginContribDir + "/check_snmp_brocade" ]
841+
842+
arguments = {
843+
"--hostname" = {
844+
value = "$fiberchannel_brocade_hostname$"
845+
description = "Hostname or IP-address of the server (SNMP mode only)"
846+
required = true
847+
}
848+
"--community" = {
849+
value = "$fiberchannel_brocade_community$"
850+
description = "SNMP community of the switch (SNMP v1/2 only)"
851+
}
852+
"--snmpversion" = {
853+
value = "$fiberchannel_brocade_snmpversion$"
854+
description = "The SNMP protocol to use (default: 2c, other possibilities: 1,3)"
855+
}
856+
"--seclevel" = {
857+
value = "$fiberchannel_brocade_seclevel$"
858+
description = "The SNMP security level to use (default: noAuthNoPriv, othet possibilities: authNoPriv,authPriv)"
859+
}
860+
"--port" = {
861+
value = "$fiberchannel_brocade_port$"
862+
description = "The SNMP port to use (default: 161)"
863+
}
864+
"--context" = {
865+
value = "$fiberchannel_brocade_context$"
866+
description = "SNMPv3 context name"
867+
}
868+
# It seems --fc-port parameter is not working, using its short form
869+
"-P" = {
870+
value = "$fiberchannel_brocade_fc_port$"
871+
description = "Port number as shown in the output of `switchshow`. Can't combine with --systeminfo parameter"
872+
}
873+
"--systeminfo" = {
874+
set_if = "$fiberchannel_brocade_systeminfo$"
875+
description = "Get global data like boot date, overall status, reachability"
876+
}
877+
"--sensor" = {
878+
set_if = "$fiberchannel_brocade_sensor$"
879+
description = "Additional to --systeminfo. Status of powersupply, fans and temp sensors"
880+
}
881+
"--global" = {
882+
set_if = "$fiberchannel_brocade_global$"
883+
description = "Global data like boot date, overall status"
884+
}
885+
"--performancedata" = {
886+
value = "$fiberchannel_brocade_perfdata$"
887+
description = "Print performance data of the selected FC port specified via -P parameter"
888+
}
889+
"--secname" = {
890+
value = "$fiberchannel_brocade_secname$"
891+
description = "The SNMPv3 securityName for the USM security model"
892+
}
893+
"--authpassword" = {
894+
value = "$fiberchannel_brocade_authpassword$"
895+
description = "The authentication password for SNMPv3"
896+
}
897+
"--authproto" = {
898+
value = "$fiberchannel_brocade_authprotocol$"
899+
description = "The authentication protocol for SNMPv3 (md5|sha)"
900+
}
901+
"--privpasswd" = {
902+
value = "$fiberchannel_brocade_privpassword$"
903+
description = "The password for SNMPv3 authPriv security level"
904+
}
905+
"--privproto" = {
906+
value = "$fiberchannel_brocade_privprotocol$"
907+
description = "The private protocol for SNMPv3 (des|aes)"
908+
}
909+
"--sfptemp" = {
910+
set_if = "$fiberchannel_brocade_sfptemp$"
911+
description = "Checks the temperature of all SFPs"
912+
}
913+
"--sfptemp_warn" = {
914+
value = "$fiberchannel_brocade_sfptemp_warning$"
915+
description = "This is the warning offset the critical temperature as delivered by the system. Default is 10 Celsius. Must be used with --sfptemp parameter"
916+
}
917+
"--maxsfptemp" = {
918+
value = "$fiberchannel_brocade_sfptemp_critical$"
919+
description = "Maximum temperature for SFPs. If not set it will be taken from your switch"
920+
}
921+
"--allports" = {
922+
set_if = "$fiberchannel_brocade_allports$"
923+
description = "Default is only to show ports which are too hot. With this flag all ports will be shown. Must be used with --sfptemp"
924+
}
925+
"--multiline" = {
926+
set_if = "$fiberchannel_brocade_multiline$"
927+
description = "Multiline output in overview. This mean technically that a multiline output uses a HTML <br> for the GUI instead of be aware that your messing connections (email, SMS...) must use a filter to file out the <br>. A sed oneliner will do the job."
928+
}
929+
}
930+
931+
vars.fiberchannel_brocade_hostname = "$check_address$"
932+
vars.fiberchannel_brocade_community = "public"
933+
}

0 commit comments

Comments
 (0)