====== Brocade monitoring ====== ===== SAN switch health ===== switch:admin> mapsdb --show 1 Dashboard Information: ======================= DB start time: Mon Sep 23 16:54:43 2024 Active policy: dflt_aggressive_policy Configured Notifications: RASLOG,SW_CRITICAL,SW_MARGINAL,SFP_MARGINAL,FPIN,HA_RECOVER Fenced Ports : None Decommissioned Ports : None Fenced circuits : N/A Quarantined Ports : None Top Zoned PIDs : 2 Switch Health Report: ======================= Current Switch Policy Status: HEALTHY 3.1 Summary Report: =================== Category |Today |Last 7 days | -------------------------------------------------------------------------------- Port Health |No Errors |No Errors | Fru Health |In operating range |In operating range | Security Violations |No Errors |No Errors | Fabric State Changes |No Errors |No Errors | Switch Resource |Out of operating range |In operating range | Fabric Performance Impact|In operating range |In operating range | IO Health |In operating range |In operating range | IO Latency |In operating range |In operating range | 3.2 Rules Affecting Health: =========================== Category(Violation Count)|RepeatCount|Rule Name |Execution Time |Object |Triggered Value(Units)| ----------------------------------------------------------------------------------------------------------- Switch Resource(1) |1 |defALL_TSTEMP_ |09/23/24 16:57:00|Temperature|OUT_OF_RANGE | | | OUT_OF_RANGE| | Sensor 2| ===== Nagios plugins ===== RestAPI tools \\ https://github.com/jconsoli https://github.com/ovido/nagios-plugins/blob/master/check_snmp_brocade https://github.com/mguyard/nagios-plugins/blob/master/Network/Switch%20Brocade/check_brocade_fcswitch_isl.pl https://github.com/mguyard/nagios-plugins/blob/master/Network/Switch%20Brocade/check_brocade_fcswitch_fc.pl https://github.com/mguyard/nagios-plugins/blob/master/Network/Switch%20Brocade/check_brocade_fcswitch.pl https://github.com/ovido/nagios-plugins/blob/master/check_snmp_brocade ===== Scripts ===== [root@nagios01 storage]# cat brocade_template.cfg #### Brocade Template #### define command { command_name Check_Brocade_Health command_line /usr/bin/perl $USER1$/check_snmp_brocade_3.2.0.pl -H $HOSTADDRESS$ -C public -s --sensor -p } define command { command_name Check_Brocade_Port command_line /usr/bin/perl $USER1$/check_snmp_brocade_3.2.0.pl -H $HOSTADDRESS$ -C public -P $ARG1$ -p } define hostgroup{ hostgroup_name brocade-fc alias ALL Brocade FC Switches } define host{ name generic-brocade-fc ; The name of this host template use linux-server,host-pnp ; Inherit default values from the generic-host template hostgroups brocade-fc register 0 ; DONT REGISTER THIS - ITS JUST A TEMPLATE } define service{ use generic-service,srv-pnp ; Name of service template to use hostgroup_name brocade-fc service_description Brocade FC Switch health check_command Check_Brocade_Health servicegroups SG-Storage } [root@nagios01 storage]# cat brocade_hosts.cfg define host{ use linux-server,host-pnp ; Inherit default values from the generic-host template host_name SAN01 hostgroups brocade-fc address 10.0.0.120 }