This is an old revision of the document!
Example of check SAN (nagios server)
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 conf.d/storage/brocade_template.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
}
</code>