User Tools

Site Tools


monitoring:nagios_san

This is an old revision of the document!


Nagios SAN check

https://exchange.nagios.org/directory/Plugins/Hardware/Network-Gear/Brocade/check_snmp_brocade--2D-monitor-Brocade-fibre-channel-switches/details

Example of check SAN (nagios server)

[root@prnagmgmt01 nagios]# cat san_sw.cfg
define host{
        use                     linux-server,host-pnp    ; Inherit default values from the generic-host template
        host_name               DCAS-SAN02
        hostgroups              msp-brocade-fc
        address                 10.0.0.10
        }


define service{
        use                     generic-service,srv-pnp         ; Name of service template to use
        host_name               DCAS-SAN02
        service_description     Brocade Port 17 Status
        check_command           Check_Brocade_Port!17
        servicegroups           SG-Storage
        }



[root@prnagmgmt01 nagios]# cat command.cfg
#### IBM IMM 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  msp-brocade-fc
        alias           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              msp-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                  msp-brocade-fc
        service_description             Brocade FC Switch health
        check_command                   Check_Brocade_Health
        servicegroups                   SG-Storage
        }
monitoring/nagios_san.1614728806.txt.gz · Last modified: 2021/03/03 00:46 by manu