1
0
mirror of https://github.com/opinkerfi/nagios-plugins.git synced 2024-11-26 04:13:46 +01:00

Added examples for Brocade ENV health checks

This commit is contained in:
Tómas Edwardsson 2010-03-16 17:42:58 +00:00
parent 871a4ee631
commit a34bdc83f3
6 changed files with 180 additions and 0 deletions

View File

@ -0,0 +1,4 @@
define command {
command_name check_brocade_san_env
command_line $USER1$/check_brocade_env.pl -H $HOSTADDRESS$ -c public -l
}

View File

@ -0,0 +1,20 @@
define contactgroup {
contactgroup_name brocade-prod-contacts
alias Brocade Production Contacts
}
define contactgroup {
contactgroup_name brocade-dev-contacts
alias Brocade Development Contacts
}
define contactgroup {
contactgroup_name brocade-test-contacts
alias Brocade Test Contacts
}
define contactgroup {
contactgroup_name brocade-contacts
alias Brocade Development Contacts
}

View File

@ -0,0 +1,20 @@
define hostgroup {
hostgroup_name brocade-san-switches
alias Brocade SAN Switches
}
define hostgroup {
hostgroup_name brocade-dev-san-switches
alias Brocade Development SAN Switches
}
define hostgroup {
hostgroup_name brocade-test-san-switches
alias Brocade Test SAN Switches
}
define hostgroup {
hostgroup_name brocade-prod-san-switches
alias Brocade Production SAN Switches
}

View File

@ -0,0 +1,36 @@
define host {
name generic-brocade-dev-san-switch
use generic-server
statusmap_image base/switch40.gd2
icon_image base/switch40.png
contact_groups +brocade-dev-contacts
hostgroups +brocade-san-switches,brocade-dev-san-switches
}
define host {
name generic-brocade-prod-san-switch
use generic-server
statusmap_image base/switch40.gd2
icon_image base/switch40.png
contact_groups +brocade-prod-contacts
hostgroups +brocade-san-switches,brocade-prod-san-switches
}
define host {
name generic-brocade-test-san-switch
use generic-server
statusmap_image base/switch40.gd2
icon_image base/switch40.png
contact_groups +brocade-test-contacts
hostgroups +brocade-san-switches,brocade-test-san-switches
}

View File

@ -0,0 +1,4 @@
define servicegroup {
servicegroup_name brocade-san-switch-health
alias Brocade SAN Switches - HEALTH
}

View File

@ -0,0 +1,96 @@
###########################################################
# Check Hardware Health on Brocade SAN Switches
define service {
name check-generic-brocade-health
use generic-service
service_description Hardware Health Status
check_command check_brocade_san_env
normal_check_interval 1
retry_check_interval 1
servicegroups brocade-san-switch-health
action_url /pnp4nagios/graph?host=$HOSTNAME$&srv=$SERVICEDESC$
register 0
}
# Development Load Average check
define service {
name check-generic-brocade-dev-health
use check-generic-brocade-health
contact_groups +brocade-dev-contacts
register 0
}
# Test Load Average check
define service {
name check-generic-brocade-test-health
use check-generic-brocade-health
contact_groups +brocade-test-contacts
register 0
}
# Production Load Average check
define service {
name check-generic-brocade-prod-health
use check-generic-brocade-health
contact_groups +brocade-prod-contacts
register 0
}
###########################################################
# Check PING on a Brocade SAN Switch
define service {
name check-generic-brocade-ping
use generic-service
service_description PING
check_command check_ping!200.0,20%!600.0,60%
normal_check_interval 5
retry_check_interval 1
action_url /pnp4nagios/graph?host=$HOSTNAME$&srv=$SERVICEDESC$
register 0
}
# Development service check
define service {
name check-generic-brocade-dev-ping
use check-generic-brocade-ping
contact_groups +brocade-dev-contacts
register 0
}
# Test service check
define service {
name check-generic-brocade-test-ping
use check-generic-brocade-ping
contact_groups +brocade-test-contacts
register 0
}
# Production service check
define service {
name check-generic-brocade-prod-ping
use check-generic-brocade-ping
contact_groups +brocade-prod-contacts
register 0
}