MONITORING: Update nagios configs

This commit is contained in:
Vladimir Vitkov 2017-11-07 15:31:31 +02:00
parent 9ed3f443f4
commit 4dd1a80ca2
32 changed files with 766 additions and 382 deletions

View File

@ -55,6 +55,12 @@ define command {
command_line /usr/lib/nagios/plugins/check_snmp -H $HOSTADDRESS$ -P 2c -C $USER3$ -o $ARG1$ $ARG2$ $ARG3$ command_line /usr/lib/nagios/plugins/check_snmp -H $HOSTADDRESS$ -P 2c -C $USER3$ -o $ARG1$ $ARG2$ $ARG3$
} }
###### custom snmp commands ######
define command {
command_name check_snmp_cisco_new
command_line /usr/lib/nagios/plugins/check_snmp -H $HOSTADDRESS$ -P 2c -C $USER5$ -o $ARG1$ $ARG2$ $ARG3$
}
define command { define command {
command_name check_stream_count command_name check_stream_count
command_line /usr/local/bin/count-streams.sh $ARG1$ $ARG2$ command_line /usr/local/bin/count-streams.sh $ARG1$ $ARG2$
@ -100,7 +106,7 @@ define command {
# for unbound # for unbound
define command { define command {
command_name custom_check_dns command_name custom_check_dns
command_line /usr/lib/nagios/plugins/check_dns -H openfest.org -s $HOSTADDRESS$ -a 79.98.105.21 command_line /usr/lib/nagios/plugins/check_dns -H openfest.org -s $HOSTADDRESS$ -a 185.117.82.69
} }
# check dynamic interface status # check dynamic interface status
@ -114,7 +120,10 @@ define command {
command_name check_uptime_snmp command_name check_uptime_snmp
command_line /etc/nagios3/commands/check_uptime_snmp.pl -H $HOSTADDRESS$ -2 -C $USER3$ $ARG1$ $ARG2$ $ARG3$ command_line /etc/nagios3/commands/check_uptime_snmp.pl -H $HOSTADDRESS$ -2 -C $USER3$ $ARG1$ $ARG2$ $ARG3$
} }
define command {
command_name check_uptime_snmp_new
command_line /etc/nagios3/commands/check_uptime_snmp.pl -H $HOSTADDRESS$ -2 -C $USER5$ $ARG1$ $ARG2$ $ARG3$
}
# check dynamic interface status # check dynamic interface status
define command { define command {
command_name check_ifstat_snmp_ap command_name check_ifstat_snmp_ap

View File

@ -3,49 +3,19 @@ define service {
service_description Switch uptime service_description Switch uptime
check_interval 5 check_interval 5
check_command check_uptime_snmp!-T win!-w 20 -c 5 check_command check_uptime_snmp!-T win!-w 20 -c 5
hostgroup cisco-switches,tplink-switches hostgroup cisco-coreswitches
} }
define service { define service {
name SNMP_TRAP use generic-service
service_description SNMP_TRAP service_description Switch uptime
active_checks_enabled 1 ; Active service checks are enabled check_interval 5
passive_checks_enabled 1 ; Passive service checks are enabled/accepted check_command check_uptime_snmp_new!-T win!-w 20 -c 5
parallelize_check 1 ; Active service checks should be parallelized hostgroup cisco-nocswiches,tplink-switches
process_perf_data 0
obsess_over_service 0 ; We should obsess over this service (if necessary)
check_freshness 0 ; Default is to NOT check service 'freshness'
notifications_enabled 1 ; Service notifications are enabled
event_handler_enabled 1 ; Service event handler is enabled
flap_detection_enabled 1 ; Flap detection is enabled
process_perf_data 1 ; Process performance data
retain_status_information 1 ; Retain status information across program restarts
retain_nonstatus_information 1 ; Retain non-status information across program restarts
check_command check-host-alive ; This will be used to reset the service to "OK"
is_volatile 1
check_period 24x7
max_check_attempts 1
normal_check_interval 1
retry_check_interval 1
notification_interval 120
notification_period 24x7
notification_options w,u,c,r
contact_groups ofnoc ; Modify this to match your Nagios contact group definitions
register
} }
; define service {
; use SNMP_TRAP
; hostgroup_name cisco-switches,tplink-switches
; service_description TRAP
; check_interval 120
; flap_detection_enabled 0
;}
; Cisco IOS CPU Avg ; Cisco IOS CPU Avg
define service { define service {
use generic-service use generic-service
hostgroup cisco-switches hostgroup cisco-coreswitches
service_description 5 Min CPU Average service_description 5 Min CPU Average
check_interval 5 check_interval 5
check_command check_snmp_cisco!.1.3.6.1.4.1.9.9.109.1.1.1.1.8.1!-l \"5 Minute CPU \% \" -w 50 -c 80 check_command check_snmp_cisco!.1.3.6.1.4.1.9.9.109.1.1.1.1.8.1!-l \"5 Minute CPU \% \" -w 50 -c 80
@ -53,8 +23,24 @@ check_command check_snmp_cisco!.1.3.6.1.4.1.9.9.109.1.1.1.1.8.1!-l \"5
define service { define service {
use generic-service use generic-service
hostgroup cisco-switches hostgroup cisco-coreswitches
service_description 1 Min CPU Average service_description 1 Min CPU Average
check_interval 1 check_interval 1
check_command check_snmp_cisco!.1.3.6.1.4.1.9.9.109.1.1.1.1.7.1!-l \"1 Minute CPU \% \" -w 50 -c 80 check_command check_snmp_cisco!.1.3.6.1.4.1.9.9.109.1.1.1.1.7.1!-l \"1 Minute CPU \% \" -w 50 -c 80
} }
define service {
use generic-service
hostgroup cisco-nocswiches
service_description 5 Min CPU Average NOC
check_interval 5
check_command check_snmp_cisco_new!.1.3.6.1.4.1.9.9.109.1.1.1.1.8.1!-l \"5 Minute CPU \% \" -w 50 -c 80
}
define service {
use generic-service
hostgroup cisco-nocswiches
service_description 1 Min CPU Average NOC
check_interval 1
check_command check_snmp_cisco_new!.1.3.6.1.4.1.9.9.109.1.1.1.1.7.1!-l \"1 Minute CPU \% \" -w 50 -c 80
}

View File

@ -75,14 +75,14 @@ define hostextinfo {
statusmap_image custom/video/atem-switch.gd2 statusmap_image custom/video/atem-switch.gd2
} }
define hostextinfo { #define hostextinfo {
hostgroup_name intercom-group # hostgroup_name intercom-group
notes RPI intercom clients # notes RPI intercom clients
icon_image custom/raspberry/raspbian.png # icon_image custom/raspberry/raspbian.png
icon_image_alt RPI intercom # icon_image_alt RPI intercom
vrml_image custom/raspberry/raspbian.png # vrml_image custom/raspberry/raspbian.png
statusmap_image custom/raspberry/raspbian.gd2 # statusmap_image custom/raspberry/raspbian.gd2
} #}
define hostextinfo { define hostextinfo {
hostgroup_name laptop-group hostgroup_name laptop-group
@ -92,3 +92,12 @@ define hostextinfo {
vrml_image custom/video/control-laptop.png vrml_image custom/video/control-laptop.png
statusmap_image custom/video/control-laptop.gd2 statusmap_image custom/video/control-laptop.gd2
} }
#define hostextinfo {
# hostgroup_name printer-group
# notes Printer
# icon_image printer.png
# icon_image_alt Printer
# vrml_image printer.png
# statusmap_image printer.gd2
#}

View File

@ -37,19 +37,23 @@ define hostgroup {
} }
define hostgroup { define hostgroup {
hostgroup_name cisco-switches hostgroup_name cisco-coreswitches
alias CISCO Switches alias CISCO Switches
} }
define hostgroup {
hostgroup_name cisco-nocswiches
alias NOC Switches
}
define hostgroup { define hostgroup {
hostgroup_name tplink-switches hostgroup_name tplink-switches
alias TPLink Switches alias TPLink Switches
} }
define hostgroup { #define hostgroup {
hostgroup_name intercom-group # hostgroup_name intercom-group
alias Video Team Intercoms # alias Video Team Intercoms
} #}
define hostgroup { define hostgroup {
hostgroup_name overflow-group hostgroup_name overflow-group
@ -90,3 +94,13 @@ define hostgroup {
hostgroup_name laptop-group hostgroup_name laptop-group
alias General group for laptops alias General group for laptops
} }
#define hostgroup {
# hostgroup_name printer-group
# alias Printers
#}
define hostgroup {
hostgroup_name phones-group
alias Phones
}

View File

@ -117,7 +117,7 @@ status_file=/var/cache/nagios3/status.dat
# Nagios will periodically dump program, host, and # Nagios will periodically dump program, host, and
# service status data. # service status data.
status_update_interval=60 status_update_interval=10
@ -593,8 +593,7 @@ auto_rescheduling_interval=30
# WARNING: THIS IS AN EXPERIMENTAL FEATURE - IT CAN DEGRADE # WARNING: THIS IS AN EXPERIMENTAL FEATURE - IT CAN DEGRADE
# PERFORMANCE, RATHER THAN INCREASE IT, IF USED IMPROPERLY # PERFORMANCE, RATHER THAN INCREASE IT, IF USED IMPROPERLY
auto_rescheduling_window=180 auto_rescheduling_window=60
# SLEEP TIME # SLEEP TIME
@ -811,7 +810,7 @@ accept_passive_host_checks=1
# service notifications when it is initially (re)started. # service notifications when it is initially (re)started.
# Values: 1 = enable notifications, 0 = disable notifications # Values: 1 = enable notifications, 0 = disable notifications
enable_notifications=0 enable_notifications=1

View File

@ -1,14 +0,0 @@
# A simple configuration file for monitoring the local host
# This can serve as an example for configuring other servers;
# Custom services specific to this host are added here, but services
# defined in nagios2-common_services.cfg may also apply.
#
define host{
use generic-host ; Name of host template to use
host_name encoder
alias encoder
address 10.23.0.101
hostgroups ssh-servers,debian-servers
parents coresw
}

View File

@ -65,70 +65,9 @@ define service {
use generic-service use generic-service
host_name eric host_name eric
service_description Stream Count service_description Stream Count
check_command check_stream_count!5!3 check_command check_stream_count!2!4
} }
;# Bulgaria - hd
; moved to separate host
;define service {
; use generic-service
; host_name eric
; service_description Bulgaria HD stream / ERIC
; check_command check_rtmp!rtmp://127.0.0.1/st/bulgaria-hd
;}
;define service {
; use generic-service
; host_name eric
; service_description Bulgaria HD stream / MARLA
; check_command check_rtmp!rtmp://79.98.105.21/st/bulgaria-hd
;}
;define service {
; use generic-service
; host_name eric
; service_description Bulgaria HD stream / HAWK
; check_command check_rtmp!rtmp://79.124.31.206/st/bulgaria-hd
;}
;
;# Bulgaria SD
;define service {
; use generic-service
; host_name eric
; service_description Bulgaria stream / ERIC
; check_command check_rtmp!rtmp://127.0.0.1/st/bulgaria
;}
;define service {
; use generic-service
; host_name eric
; service_description Bulgaria stream / MARLA
; check_command check_rtmp!rtmp://79.98.105.21/st/bulgaria
;}
;define service {
; use generic-service
; host_name eric
; service_description Bulgaria stream / HAWK
; check_command check_rtmp!rtmp://79.124.31.206/st/bulgaria
;}
;
;# Chambler SD
;define service {
; use generic-service
; host_name eric
; service_description CHAMBER stream / ERIC
; check_command check_rtmp!rtmp://127.0.0.1/st/chamber
;}
;define service {
; use generic-service
; host_name eric
; service_description CHAMBER stream / MARLA
; check_command check_rtmp!rtmp://79.98.105.21/st/chamber
;}
;define service {
; use generic-service
; host_name eric
; service_description CHAMBER stream / HAWK
; check_command check_rtmp!rtmp://79.124.31.206/st/chamber
;}
# Grafana # Grafana
define service { define service {
use generic-service use generic-service

View File

@ -11,65 +11,65 @@ define service {
use generic-service use generic-service
host_name streamers host_name streamers
service_description Stream Count service_description Stream Count
check_command check_stream_count!4!2 check_command check_stream_count!2!4
} }
# Bulgaria - hd # Main Room - hd
define service { define service {
use generic-service use generic-service
host_name streamers host_name streamers
service_description Bulgaria HD stream / ERIC service_description Main Room stream / ERIC
check_command check_rtmp!rtmp://127.0.0.1/st/r1-hd check_command check_rtmp!rtmp://127.0.0.1/st/bigroom-orig
}
define service {
use generic-service
host_name streamers
service_description Bulgaria HD stream / MARLA
check_command check_rtmp!rtmp://79.98.105.21/st/r1-hd
}
define service {
use generic-service
host_name streamers
service_description Bulgaria HD stream / HAWK
check_command check_rtmp!rtmp://79.124.31.206/st/r1-hd
} }
# Bulgaria SD #define service {
# use generic-service
# host_name streamers
# service_description Main Room HD stream / MARLA
# check_command check_rtmp!rtmp://stream.openfest.org/st/bigroom-hd
## check_command check_rtmp!rtmp://79.98.105.21/st/r1-hd
#}
define service { define service {
use generic-service use generic-service
host_name streamers host_name streamers
service_description Bulgaria stream / ERIC service_description Main Room stream / MARLA
check_command check_rtmp!rtmp://127.0.0.1/st/r1 check_command check_rtmp!rtmp://stream.openfest.org/st/bigroom
} }
define service { define service {
use generic-service use generic-service
host_name streamers host_name streamers
service_description Bulgaria stream / MARLA service_description Main Room Low stream / MARLA
check_command check_rtmp!rtmp://79.98.105.21/st/r1 check_command check_rtmp!rtmp://stream.openfest.org/st/bigroom-low
}
define service {
use generic-service
host_name streamers
service_description Bulgaria stream / HAWK
check_command check_rtmp!rtmp://79.124.31.206/st/r1
} }
# Chambler SD
# Main Room SD
define service { define service {
use generic-service use generic-service
host_name streamers host_name streamers
service_description CHAMBER stream / ERIC service_description Small Room stream / ERIC
check_command check_rtmp!rtmp://127.0.0.1/st/r2 check_command check_rtmp!rtmp://127.0.0.1/st/smallroom-orig
}
## Chambler SD
#define service {
# use generic-service
# host_name streamers
# service_description Second Room stream / ERIC
# check_command check_rtmp!rtmp://127.0.0.1/st/r2
#}
define service {
use generic-service
host_name streamers
service_description Small Room stream / MARLA
check_command check_rtmp!rtmp://stream.openfest.org/st/smallroom
} }
define service { define service {
use generic-service use generic-service
host_name streamers host_name streamers
service_description CHAMBER stream / MARLA service_description Small Room Low stream / MARLA
check_command check_rtmp!rtmp://79.98.105.21/st/r2 check_command check_rtmp!rtmp://stream.openfest.org/st/smallroom-low
}
define service {
use generic-service
host_name streamers
service_description CHAMBER stream / HAWK
check_command check_rtmp!rtmp://79.124.31.206/st/r2
} }

View File

@ -1,8 +1,8 @@
define host { define host {
host_name overflow-tv host_name overflow-tv-1
use generic-host use generic-host
alias overflow-tv alias overflow-tv-1
address 10.24.0.11 address 10.24.0.15
hostgroups overflow-group,ssh-servers hostgroups overflow-group,ssh-servers
parents coresw parents coresw
} }

View File

@ -0,0 +1,8 @@
define host {
host_name phone-noc1
use generic-host
alias phone-noc1
address 10.25.0.10
hostgroups phones-group
parents nocsw
}

View File

@ -0,0 +1,8 @@
define host {
host_name phone-reception
use generic-host
alias phone-reception
address 10.25.0.11
hostgroups phones-group
parents receptionsw
}

View File

@ -0,0 +1,8 @@
define host {
host_name phone-teamroom
use generic-host
alias phone-teamroom
address 10.25.0.13
hostgroups phones-group
parents coresw
}

View File

@ -0,0 +1,8 @@
define host {
host_name phone-smallroom
use generic-host
alias phone-smallroom
address 10.25.0.20
hostgroups phones-group
parents srvocsw
}

View File

@ -0,0 +1,8 @@
define host {
host_name phone-bigroom
use generic-host
alias phone-bigroom
address 10.25.0.21
hostgroups phones-group
parents mrvocsw
}

View File

@ -2,7 +2,7 @@ define host {
host_name reception-laptop host_name reception-laptop
use generic-host use generic-host
alias reception-laptop alias reception-laptop
address 10.21.0.51 address 10.21.1.42
hostgroups reception-equipment,laptop-group hostgroups reception-equipment,laptop-group
parents receptionsw parents receptionsw
} }

View File

@ -0,0 +1,79 @@
define host {
host_name uplinksw
use generic-host
alias uplinksw
address 172.31.42.64
hostgroups core-switches,tplink-switches
parents eric
}
define service {
use generic-service
hosts uplinksw
service_description Gi1/0/01 - UNUSED
check_command check_snmp_cisco_new!.1.3.6.1.2.1.2.2.1.8.1!-r 2!-l ifOperStatus
}
define service {
use generic-service
hosts uplinksw
service_description Gi1/0/02 - UNUSED
check_command check_snmp_cisco_new!.1.3.6.1.2.1.2.2.1.8.2!-r 2!-l ifOperStatus
}
define service {
use generic-service
hosts uplinksw
service_description Gi1/0/03 - UNUSED
check_command check_snmp_cisco_new!.1.3.6.1.2.1.2.2.1.8.3!-r 2!-l ifOperStatus
}
define service {
use generic-service
hosts uplinksw
service_description Gi1/0/04 - UNUSED
check_command check_snmp_cisco_new!.1.3.6.1.2.1.2.2.1.8.4!-r 2!-l ifOperStatus
}
define service {
use generic-service
hosts uplinksw
service_description Gi1/0/05 - UNUSED
check_command check_snmp_cisco_new!.1.3.6.1.2.1.2.2.1.8.5!-r 2!-l ifOperStatus
}
define service {
use generic-service
hosts uplinksw
service_description Gi1/0/06 - UNUSED
check_command check_snmp_cisco_new!.1.3.6.1.2.1.2.2.1.8.6!-r 2!-l ifOperStatus
}
define service {
use generic-service
hosts uplinksw
service_description Gi1/0/07 - UNUSED
check_command check_snmp_cisco_new!.1.3.6.1.2.1.2.2.1.8.7!-r 2!-l ifOperStatus
}
define service {
use generic-service
hosts uplinksw
service_description Gi1/0/08 - UNUSED
check_command check_snmp_cisco_new!.1.3.6.1.2.1.2.2.1.8.8!-r 2!-l ifOperStatus
notifications_enabled 0
}
define service {
use generic-service
hosts uplinksw
service_description Gi1/0/09 - ipacct
check_command check_snmp_cisco_new!.1.3.6.1.2.1.2.2.1.8.9!-r 1!-l ifOperStatus
}
define service {
use generic-service
hosts uplinksw
service_description Gi1/0/10 - techpark
check_command check_snmp_cisco_new!.1.3.6.1.2.1.2.2.1.8.10!-r 1!-l ifOperStatus
}

View File

@ -3,7 +3,7 @@ define host {
use generic-host use generic-host
alias coresw alias coresw
address 10.20.0.11 address 10.20.0.11
hostgroups cisco-switches,core-switches hostgroups cisco-coreswitches,core-switches
parents eric parents eric
} }
@ -20,3 +20,388 @@ define service {
service_description Vlan20 service_description Vlan20
check_command check_snmp_cisco!.1.3.6.1.2.1.2.2.1.8.20!-r 1!-l ifOperStatus check_command check_snmp_cisco!.1.3.6.1.2.1.2.2.1.8.20!-r 1!-l ifOperStatus
} }
define service {
use generic-service
hosts coresw
service_description Gi0/01 - mrvocsw
check_command check_snmp_cisco!.1.3.6.1.2.1.2.2.1.8.10101!-r 1!-l ifOperStatus
}
define service {
use generic-service
hosts coresw
service_description Gi0/02 - srvocsw
check_command check_snmp_cisco!.1.3.6.1.2.1.2.2.1.8.10102!-r 1!-l ifOperStatus
}
define service {
use generic-service
hosts coresw
service_description Gi0/03 - receptionsw
check_command check_snmp_cisco!.1.3.6.1.2.1.2.2.1.8.10103!-r 1!-l ifOperStatus
}
#define service {
# use generic-service
# hosts coresw
# service_description Gi0/04 - nocsw
# check_command check_snmp_cisco!.1.3.6.1.2.1.2.2.1.8.10104!-r 1!-l ifOperStatus
#}
#
#define service {
# use generic-service
# hosts coresw
# service_description Gi0/05 - wssw1
# check_command check_snmp_cisco!.1.3.6.1.2.1.2.2.1.8.10105!-r 1!-l ifOperStatus
#}
#
#define service {
# use generic-service
# hosts coresw
# service_description Gi0/06 - wssw2
# check_command check_snmp_cisco!.1.3.6.1.2.1.2.2.1.8.10106!-r 1!-l ifOperStatus
#}
define service {
use generic-service
hosts coresw
service_description Gi0/07 - presenter-mr
check_command check_snmp_cisco!.1.3.6.1.2.1.2.2.1.8.10107!-r " (1|2)$"!-l ifOperStatus
}
define service {
use generic-service
hosts coresw
service_description Gi0/08 - presenter-sr
check_command check_snmp_cisco!.1.3.6.1.2.1.2.2.1.8.10108!-r " (1|2)$"!-l ifOperStatus
}
define service {
use generic-service
hosts coresw
service_description Gi0/09 - UPLINK
check_command check_snmp_cisco!.1.3.6.1.2.1.2.2.1.8.10109!-r 1!-l ifOperStatus
}
define service {
use generic-service
hosts coresw
service_description Gi0/10 - UPLINK
check_command check_snmp_cisco!.1.3.6.1.2.1.2.2.1.8.10110!-r 1!-l ifOperStatus
}
define service {
use generic-service
hosts coresw
service_description Gi0/11 - WIFI-AP
check_command check_snmp_cisco!.1.3.6.1.2.1.2.2.1.8.10111!-r 1!-l ifOperStatus
}
define service {
use generic-service
hosts coresw
service_description Gi0/12 - WIFI-AP
check_command check_snmp_cisco!.1.3.6.1.2.1.2.2.1.8.10112!-r 1!-l ifOperStatus
}
define service {
use generic-service
hosts coresw
service_description Gi0/13 - WIFI-AP
check_command check_snmp_cisco!.1.3.6.1.2.1.2.2.1.8.10113!-r 1!-l ifOperStatus
}
define service {
use generic-service
hosts coresw
service_description Gi0/14 - WIFI-AP
check_command check_snmp_cisco!.1.3.6.1.2.1.2.2.1.8.10114!-r 1!-l ifOperStatus
}
define service {
use generic-service
hosts coresw
service_description Gi0/15 - WIFI-AP
check_command check_snmp_cisco!.1.3.6.1.2.1.2.2.1.8.10115!-r 1!-l ifOperStatus
}
define service {
use generic-service
hosts coresw
service_description Gi0/16 - WIFI-AP
check_command check_snmp_cisco!.1.3.6.1.2.1.2.2.1.8.10116!-r 1!-l ifOperStatus
}
define service {
use generic-service
hosts coresw
service_description Gi0/17 - OVERFLOW
check_command check_snmp_cisco!.1.3.6.1.2.1.2.2.1.8.10117!-r 1!-l ifOperStatus
}
#define service {
# use generic-service
# hosts coresw
# service_description Gi0/18 - OVERFLOW
# check_command check_snmp_cisco!.1.3.6.1.2.1.2.2.1.8.10118!-r 1!-l ifOperStatus
#}
define service {
use generic-service
hosts coresw
service_description Gi0/19
check_command check_snmp_cisco!.1.3.6.1.2.1.2.2.1.8.10119!-r 2!-l ifOperStatus
}
define service {
use generic-service
hosts coresw
service_description Gi0/20
check_command check_snmp_cisco!.1.3.6.1.2.1.2.2.1.8.10120!-r 2!-l ifOperStatus
}
define service {
use generic-service
hosts coresw
service_description Gi0/21
check_command check_snmp_cisco!.1.3.6.1.2.1.2.2.1.8.10121!-r 2!-l ifOperStatus
}
define service {
use generic-service
hosts coresw
service_description Gi0/22
check_command check_snmp_cisco!.1.3.6.1.2.1.2.2.1.8.10122!-r 2!-l ifOperStatus
}
define service {
use generic-service
hosts coresw
service_description Gi0/23
check_command check_snmp_cisco!.1.3.6.1.2.1.2.2.1.8.10123!-r 2!-l ifOperStatus
}
define service {
use generic-service
hosts coresw
service_description Gi0/24
check_command check_snmp_cisco!.1.3.6.1.2.1.2.2.1.8.10124!-r 2!-l ifOperStatus
}
define service {
use generic-service
hosts coresw
service_description Gi0/25
check_command check_snmp_cisco!.1.3.6.1.2.1.2.2.1.8.10125!-r 2!-l ifOperStatus
}
define service {
use generic-service
hosts coresw
service_description Gi0/26 - TEAM ROOM PHONE
check_command check_snmp_cisco!.1.3.6.1.2.1.2.2.1.8.10126!-r 1!-l ifOperStatus
}
define service {
use generic-service
hosts coresw
service_description Gi0/27
check_command check_snmp_cisco!.1.3.6.1.2.1.2.2.1.8.10127!-r 2!-l ifOperStatus
}
define service {
use generic-service
hosts coresw
service_description Gi0/28
check_command check_snmp_cisco!.1.3.6.1.2.1.2.2.1.8.10128!-r 2!-l ifOperStatus
}
define service {
use generic-service
hosts coresw
service_description Gi0/29
check_command check_snmp_cisco!.1.3.6.1.2.1.2.2.1.8.10129!-r 2!-l ifOperStatus
}
define service {
use generic-service
hosts coresw
service_description Gi0/30
check_command check_snmp_cisco!.1.3.6.1.2.1.2.2.1.8.10130!-r 2!-l ifOperStatus
}
define service {
use generic-service
hosts coresw
service_description Gi0/31
check_command check_snmp_cisco!.1.3.6.1.2.1.2.2.1.8.10131!-r 2!-l ifOperStatus
}
define service {
use generic-service
hosts coresw
service_description Gi0/32
check_command check_snmp_cisco!.1.3.6.1.2.1.2.2.1.8.10132!-r 2!-l ifOperStatus
}
define service {
use generic-service
hosts coresw
service_description Gi0/33
check_command check_snmp_cisco!.1.3.6.1.2.1.2.2.1.8.10133!-r 2!-l ifOperStatus
}
define service {
use generic-service
hosts coresw
service_description Gi0/34
check_command check_snmp_cisco!.1.3.6.1.2.1.2.2.1.8.10134!-r 2!-l ifOperStatus
}
define service {
use generic-service
hosts coresw
service_description Gi0/35
check_command check_snmp_cisco!.1.3.6.1.2.1.2.2.1.8.10135!-r 2!-l ifOperStatus
}
define service {
use generic-service
hosts coresw
service_description Gi0/36
check_command check_snmp_cisco!.1.3.6.1.2.1.2.2.1.8.10136!-r 2!-l ifOperStatus
}
define service {
use generic-service
hosts coresw
service_description Gi0/37
check_command check_snmp_cisco!.1.3.6.1.2.1.2.2.1.8.10137!-r 2!-l ifOperStatus
}
define service {
use generic-service
hosts coresw
service_description Gi0/38
check_command check_snmp_cisco!.1.3.6.1.2.1.2.2.1.8.10138!-r 2!-l ifOperStatus
}
define service {
use generic-service
hosts coresw
service_description Gi0/39
check_command check_snmp_cisco!.1.3.6.1.2.1.2.2.1.8.10139!-r 2!-l ifOperStatus
}
define service {
use generic-service
hosts coresw
service_description Gi0/40
check_command check_snmp_cisco!.1.3.6.1.2.1.2.2.1.8.10140!-r 2!-l ifOperStatus
}
define service {
use generic-service
hosts coresw
service_description Gi0/41
check_command check_snmp_cisco!.1.3.6.1.2.1.2.2.1.8.10141!-r 2!-l ifOperStatus
}
define service {
use generic-service
hosts coresw
service_description Gi0/42
check_command check_snmp_cisco!.1.3.6.1.2.1.2.2.1.8.10142!-r 2!-l ifOperStatus
}
define service {
use generic-service
hosts coresw
service_description Gi0/43
check_command check_snmp_cisco!.1.3.6.1.2.1.2.2.1.8.10143!-r 2!-l ifOperStatus
}
define service {
use generic-service
hosts coresw
service_description Gi0/44 - encoder
check_command check_snmp_cisco!.1.3.6.1.2.1.2.2.1.8.10144!-r 1!-l ifOperStatus
}
#define service {
# use generic-service
# hosts coresw
# service_description Gi0/45 - eric/standby
# check_command check_snmp_cisco!.1.3.6.1.2.1.2.2.1.8.10145!-r 1!-l ifOperStatus
#}
define service {
use generic-service
hosts coresw
service_description Gi0/46 - eric
check_command check_snmp_cisco!.1.3.6.1.2.1.2.2.1.8.10146!-r 1!-l ifOperStatus
}
define service {
use generic-service
hosts coresw
service_description Gi0/47 - UPLINK/SPARE
check_command check_snmp_cisco!.1.3.6.1.2.1.2.2.1.8.10147!-r " (1|2)$"!-l ifOperStatus
}
#define service {
# use generic-service
# hosts coresw
# service_description Gi0/48 - UPLINK
# check_command check_snmp_cisco!.1.3.6.1.2.1.2.2.1.8.10148!-r 1!-l ifOperStatus
#}
define service {
use generic-service
hosts coresw
service_description Gi0/49
check_command check_snmp_cisco!.1.3.6.1.2.1.2.2.1.8.10149!-r 2!-l ifOperStatus
}
define service {
use generic-service
hosts coresw
service_description Gi0/50
check_command check_snmp_cisco!.1.3.6.1.2.1.2.2.1.8.10150!-r 2!-l ifOperStatus
}
define service {
use generic-service
hosts coresw
service_description Gi0/51
check_command check_snmp_cisco!.1.3.6.1.2.1.2.2.1.8.10151!-r 2!-l ifOperStatus
}
define service {
use generic-service
hosts coresw
service_description Gi0/52
check_command check_snmp_cisco!.1.3.6.1.2.1.2.2.1.8.10152!-r 2!-l ifOperStatus
}
define service {
use generic-service
hosts coresw
service_description TenGi0/1
check_command check_snmp_cisco!.1.3.6.1.2.1.2.2.1.8.10201!-r 2!-l ifOperStatus
}
define service {
use generic-service
hosts coresw
service_description TenGi0/2
check_command check_snmp_cisco!.1.3.6.1.2.1.2.2.1.8.10202!-r 2!-l ifOperStatus
}
define service {
use generic-service
hosts coresw
service_description Fe0
check_command check_snmp_cisco!.1.3.6.1.2.1.2.2.1.8.10502!-r 2!-l ifOperStatus
}

View File

@ -10,57 +10,57 @@ define host {
define service { define service {
use generic-service use generic-service
hosts mrvocsw hosts mrvocsw
service_description Gi1/0/01 - coresw service_description Gi1/0/01 - phone
check_command check_snmp_cisco!.1.3.6.1.2.1.2.2.1.8.1!-r 1!-l ifOperStatus check_command check_snmp_cisco_new!.1.3.6.1.2.1.2.2.1.8.1!-r 1!-l ifOperStatus
} }
define service { define service {
use generic-service use generic-service
hosts mrvocsw hosts mrvocsw
service_description Gi1/0/02 - UNUSED service_description Gi1/0/02 - TERADECK
check_command check_snmp_cisco!.1.3.6.1.2.1.2.2.1.8.2!-r 2!-l ifOperStatus check_command check_snmp_cisco_new!.1.3.6.1.2.1.2.2.1.8.2!-r 1!-l ifOperStatus
}
define service {
use generic-service
hosts mrvocsw
service_description Gi1/0/03 - videoswitcher
check_command check_snmp_cisco_new!.1.3.6.1.2.1.2.2.1.8.3!-r 1!-l ifOperStatus
} }
define service { define service {
use generic-service use generic-service
hosts mrvocsw hosts mrvocsw
service_description Gi1/0/03 - UNUSED service_description Gi1/0/04 - control/1
check_command check_snmp_cisco!.1.3.6.1.2.1.2.2.1.8.3!-r 2!-l ifOperStatus check_command check_snmp_cisco_new!.1.3.6.1.2.1.2.2.1.8.4!-r " (1|2)$"!-l ifOperStatus
} }
define service { define service {
use generic-service use generic-service
hosts mrvocsw hosts mrvocsw
service_description Gi1/0/04 - UNUSED service_description Gi1/0/05 - control/2
check_command check_snmp_cisco!.1.3.6.1.2.1.2.2.1.8.4!-r 2!-l ifOperStatus check_command check_snmp_cisco_new!.1.3.6.1.2.1.2.2.1.8.5!-r " (1|2)$"!-l ifOperStatus
} }
define service { define service {
use generic-service use generic-service
hosts mrvocsw hosts mrvocsw
service_description Gi1/0/05 - AP1 service_description Gi1/0/06 - intercom/1
check_command check_snmp_cisco!.1.3.6.1.2.1.2.2.1.8.5!-r 1!-l ifOperStatus check_command check_snmp_cisco_new!.1.3.6.1.2.1.2.2.1.8.6!-r " (1|2)$"!-l ifOperStatus
} }
define service { define service {
use generic-service use generic-service
hosts mrvocsw hosts mrvocsw
service_description Gi1/0/06 - UNUSED service_description Gi1/0/07 - intercom/2
check_command check_snmp_cisco!.1.3.6.1.2.1.2.2.1.8.6!-r 2!-l ifOperStatus check_command check_snmp_cisco_new!.1.3.6.1.2.1.2.2.1.8.7!-r " (1|2)$"!-l ifOperStatus
} }
define service { define service {
use generic-service use generic-service
hosts mrvocsw hosts mrvocsw
service_description Gi1/0/07 - unused service_description Gi1/0/08 - UPLINK
check_command check_snmp_cisco!.1.3.6.1.2.1.2.2.1.8.7!-r 2!-l ifOperStatus check_command check_snmp_cisco_new!.1.3.6.1.2.1.2.2.1.8.8!-r 1!-l ifOperStatus
}
define service {
use generic-service
hosts mrvocsw
service_description Gi1/0/08 - UNUSED
check_command check_snmp_cisco!.1.3.6.1.2.1.2.2.1.8.8!-r 2!-l ifOperStatus
notifications_enabled 0 notifications_enabled 0
} }
@ -68,19 +68,19 @@ define service {
use generic-service use generic-service
hosts mrvocsw hosts mrvocsw
service_description Gi1/0/09 - UNUSED service_description Gi1/0/09 - UNUSED
check_command check_snmp_cisco!.1.3.6.1.2.1.2.2.1.8.9!-r 2!-l ifOperStatus check_command check_snmp_cisco_new!.1.3.6.1.2.1.2.2.1.8.9!-r 2!-l ifOperStatus
} }
define service { define service {
use generic-service use generic-service
hosts mrvocsw hosts mrvocsw
service_description Gi1/0/10 - UNUSED service_description Gi1/0/10 - UNUSED
check_command check_snmp_cisco!.1.3.6.1.2.1.2.2.1.8.10!-r 2!-l ifOperStatus check_command check_snmp_cisco_new!.1.3.6.1.2.1.2.2.1.8.10!-r 2!-l ifOperStatus
} }
define service { define service {
use generic-service use generic-service
hosts mrvocsw hosts mrvocsw
service_description Vlan20 service_description Vlan20
check_command check_snmp_cisco!.1.3.6.1.2.1.2.2.1.8.52802!-r 1!-l ifOperStatus check_command check_snmp_cisco_new!.1.3.6.1.2.1.2.2.1.8.52802!-r 1!-l ifOperStatus
} }

View File

@ -10,57 +10,57 @@ define host {
define service { define service {
use generic-service use generic-service
hosts srvocsw hosts srvocsw
service_description Gi1/0/01 - coresw service_description Gi1/0/01 - phone
check_command check_snmp_cisco!.1.3.6.1.2.1.2.2.1.8.1!-r 1!-l ifOperStatus check_command check_snmp_cisco_new!.1.3.6.1.2.1.2.2.1.8.1!-r 1!-l ifOperStatus
} }
define service { define service {
use generic-service use generic-service
hosts srvocsw hosts srvocsw
service_description Gi1/0/02 - UNUSED service_description Gi1/0/02 - TERADECK
check_command check_snmp_cisco!.1.3.6.1.2.1.2.2.1.8.2!-r 2!-l ifOperStatus check_command check_snmp_cisco_new!.1.3.6.1.2.1.2.2.1.8.2!-r 1!-l ifOperStatus
} }
define service { define service {
use generic-service use generic-service
hosts srvocsw hosts srvocsw
service_description Gi1/0/03 - UNUSED service_description Gi1/0/03 - videoswitch
check_command check_snmp_cisco!.1.3.6.1.2.1.2.2.1.8.3!-r 2!-l ifOperStatus check_command check_snmp_cisco_new!.1.3.6.1.2.1.2.2.1.8.3!-r 1!-l ifOperStatus
} }
define service { define service {
use generic-service use generic-service
hosts srvocsw hosts srvocsw
service_description Gi1/0/04 - UNUSED service_description Gi1/0/04 - control/1
check_command check_snmp_cisco!.1.3.6.1.2.1.2.2.1.8.4!-r 2!-l ifOperStatus check_command check_snmp_cisco_new!.1.3.6.1.2.1.2.2.1.8.4!-r " (1|2)$"!-l ifOperStatus
} }
define service { define service {
use generic-service use generic-service
hosts srvocsw hosts srvocsw
service_description Gi1/0/05 - AP1 service_description Gi1/0/05 - control/2
check_command check_snmp_cisco!.1.3.6.1.2.1.2.2.1.8.5!-r 1!-l ifOperStatus check_command check_snmp_cisco_new!.1.3.6.1.2.1.2.2.1.8.5!-r " (1|2)$"!-l ifOperStatus
} }
define service { define service {
use generic-service use generic-service
hosts srvocsw hosts srvocsw
service_description Gi1/0/06 - UNUSED service_description Gi1/0/06 - intercom/1
check_command check_snmp_cisco!.1.3.6.1.2.1.2.2.1.8.6!-r 2!-l ifOperStatus check_command check_snmp_cisco_new!.1.3.6.1.2.1.2.2.1.8.6!-r " (1|2)$"!-l ifOperStatus
} }
define service { define service {
use generic-service use generic-service
hosts srvocsw hosts srvocsw
service_description Gi1/0/07 - unused service_description Gi1/0/07 - intercom/2
check_command check_snmp_cisco!.1.3.6.1.2.1.2.2.1.8.7!-r 2!-l ifOperStatus check_command check_snmp_cisco_new!.1.3.6.1.2.1.2.2.1.8.7!-r " (1|2)$"!-l ifOperStatus
} }
define service { define service {
use generic-service use generic-service
hosts srvocsw hosts srvocsw
service_description Gi1/0/08 - UNUSED service_description Gi1/0/08 - UPLINK
check_command check_snmp_cisco!.1.3.6.1.2.1.2.2.1.8.8!-r 2!-l ifOperStatus check_command check_snmp_cisco_new!.1.3.6.1.2.1.2.2.1.8.8!-r 1!-l ifOperStatus
notifications_enabled 0 notifications_enabled 0
} }
@ -68,19 +68,19 @@ define service {
use generic-service use generic-service
hosts srvocsw hosts srvocsw
service_description Gi1/0/09 - UNUSED service_description Gi1/0/09 - UNUSED
check_command check_snmp_cisco!.1.3.6.1.2.1.2.2.1.8.9!-r 2!-l ifOperStatus check_command check_snmp_cisco_new!.1.3.6.1.2.1.2.2.1.8.9!-r 2!-l ifOperStatus
} }
define service { define service {
use generic-service use generic-service
hosts srvocsw hosts srvocsw
service_description Gi1/0/10 - UNUSED service_description Gi1/0/10 - UNUSED
check_command check_snmp_cisco!.1.3.6.1.2.1.2.2.1.8.10!-r 2!-l ifOperStatus check_command check_snmp_cisco_new!.1.3.6.1.2.1.2.2.1.8.10!-r 2!-l ifOperStatus
} }
define service { define service {
use generic-service use generic-service
hosts srvocsw hosts srvocsw
service_description Vlan20 service_description Vlan20
check_command check_snmp_cisco!.1.3.6.1.2.1.2.2.1.8.52802!-r 1!-l ifOperStatus check_command check_snmp_cisco_new!.1.3.6.1.2.1.2.2.1.8.52802!-r 1!-l ifOperStatus
} }

View File

@ -2,7 +2,7 @@ define host {
host_name receptionsw host_name receptionsw
use generic-host use generic-host
alias receptionsw alias receptionsw
address 10.20.0.21 address 10.20.0.26
hostgroups core-switches,tplink-switches hostgroups core-switches,tplink-switches
parents eric parents eric
} }
@ -10,57 +10,57 @@ define host {
define service { define service {
use generic-service use generic-service
hosts receptionsw hosts receptionsw
service_description Gi1/0/01 - coresw service_description Gi1/0/01 - off
check_command check_snmp_cisco!.1.3.6.1.2.1.2.2.1.8.1!-r 1!-l ifOperStatus check_command check_snmp_cisco_new!.1.3.6.1.2.1.2.2.1.8.1!-r 2!-l ifOperStatus
} }
define service { define service {
use generic-service use generic-service
hosts receptionsw hosts receptionsw
service_description Gi1/0/02 - UNUSED service_description Gi1/0/02 - phone
check_command check_snmp_cisco!.1.3.6.1.2.1.2.2.1.8.2!-r 2!-l ifOperStatus check_command check_snmp_cisco_new!.1.3.6.1.2.1.2.2.1.8.2!-r 1!-l ifOperStatus
} }
define service { define service {
use generic-service use generic-service
hosts receptionsw hosts receptionsw
service_description Gi1/0/03 - UNUSED service_description Gi1/0/03 - PC1
check_command check_snmp_cisco!.1.3.6.1.2.1.2.2.1.8.3!-r 2!-l ifOperStatus check_command check_snmp_cisco_new!.1.3.6.1.2.1.2.2.1.8.3!-r " (1|2)$"!-l ifOperStatus
} }
define service { define service {
use generic-service use generic-service
hosts receptionsw hosts receptionsw
service_description Gi1/0/04 - UNUSED service_description Gi1/0/04 - PC2
check_command check_snmp_cisco!.1.3.6.1.2.1.2.2.1.8.4!-r 2!-l ifOperStatus check_command check_snmp_cisco_new!.1.3.6.1.2.1.2.2.1.8.4!-r " (1|2)$"!-l ifOperStatus
} }
define service { define service {
use generic-service use generic-service
hosts receptionsw hosts receptionsw
service_description Gi1/0/05 - UNUSED service_description Gi1/0/05 - PC3
check_command check_snmp_cisco!.1.3.6.1.2.1.2.2.1.8.5!-r 2!-l ifOperStatus check_command check_snmp_cisco_new!.1.3.6.1.2.1.2.2.1.8.5!-r " (1|2)$"!-l ifOperStatus
} }
define service { define service {
use generic-service use generic-service
hosts receptionsw hosts receptionsw
service_description Gi1/0/06 - UNUSED service_description Gi1/0/06 - UNUSED
check_command check_snmp_cisco!.1.3.6.1.2.1.2.2.1.8.6!-r 2!-l ifOperStatus check_command check_snmp_cisco_new!.1.3.6.1.2.1.2.2.1.8.6!-r 2!-l ifOperStatus
} }
define service { define service {
use generic-service use generic-service
hosts receptionsw hosts receptionsw
service_description Gi1/0/07 - wired/laptop service_description Gi1/0/07 - UNUSED
check_command check_snmp_cisco!.1.3.6.1.2.1.2.2.1.8.7!-r " (1|2)$"!-l ifOperStatus check_command check_snmp_cisco_new!.1.3.6.1.2.1.2.2.1.8.7!-r 1!-l ifOperStatus
} }
define service { define service {
use generic-service use generic-service
hosts receptionsw hosts receptionsw
service_description Gi1/0/08 - wired/PRINTER service_description Gi1/0/08 - UPLINK
check_command check_snmp_cisco!.1.3.6.1.2.1.2.2.1.8.8!-r 1!-l ifOperStatus check_command check_snmp_cisco_new!.1.3.6.1.2.1.2.2.1.8.8!-r 1!-l ifOperStatus
notifications_enabled 0 notifications_enabled 0
} }
@ -68,19 +68,19 @@ define service {
use generic-service use generic-service
hosts receptionsw hosts receptionsw
service_description Gi1/0/09 - UNUSED service_description Gi1/0/09 - UNUSED
check_command check_snmp_cisco!.1.3.6.1.2.1.2.2.1.8.9!-r 2!-l ifOperStatus check_command check_snmp_cisco_new!.1.3.6.1.2.1.2.2.1.8.9!-r 2!-l ifOperStatus
} }
define service { define service {
use generic-service use generic-service
hosts receptionsw hosts receptionsw
service_description Gi1/0/10 - UNUSED service_description Gi1/0/10 - UNUSED
check_command check_snmp_cisco!.1.3.6.1.2.1.2.2.1.8.10!-r 2!-l ifOperStatus check_command check_snmp_cisco_new!.1.3.6.1.2.1.2.2.1.8.10!-r 2!-l ifOperStatus
} }
define service { define service {
use generic-service use generic-service
hosts receptionsw hosts receptionsw
service_description Vlan20 service_description Vlan20
check_command check_snmp_cisco!.1.3.6.1.2.1.2.2.1.8.52802!-r 1!-l ifOperStatus check_command check_snmp_cisco_new!.1.3.6.1.2.1.2.2.1.8.52802!-r 1!-l ifOperStatus
} }

View File

@ -1,8 +0,0 @@
define host {
host_name wssw1
use generic-host
alias wssw1
address 10.20.0.24
hostgroups core-switches,cisco-switches
parents eric
}

View File

@ -1,8 +0,0 @@
define host {
host_name wssw2
use generic-host
alias wssw2
address 10.20.0.25
hostgroups core-switches,cisco-switches
parents eric
}

View File

@ -3,7 +3,7 @@ define host {
use generic-host use generic-host
alias nocsw alias nocsw
address 10.20.0.23 address 10.20.0.23
hostgroups core-switches,cisco-switches hostgroups core-switches,cisco-nocswiches
parents coresw parents coresw
} }
@ -11,208 +11,208 @@ define service {
use generic-service use generic-service
hosts nocsw hosts nocsw
service_description Vlan1 service_description Vlan1
check_command check_snmp_cisco!.1.3.6.1.2.1.2.2.1.8.1!-r 2!-l ifOperStatus check_command check_snmp_cisco_new!.1.3.6.1.2.1.2.2.1.8.1!-r 2!-l ifOperStatus
} }
define service { define service {
use generic-service use generic-service
hosts nocsw hosts nocsw
service_description Vlan20 service_description Vlan20
check_command check_snmp_cisco!.1.3.6.1.2.1.2.2.1.8.20!-r " (1|2)$"!-l ifOperStatus check_command check_snmp_cisco_new!.1.3.6.1.2.1.2.2.1.8.20!-r " (1|2)$"!-l ifOperStatus
} }
define service { define service {
use generic-service use generic-service
hosts nocsw hosts nocsw
service_description Gi0/01 - UNUSED service_description Gi0/01 - phone/1
check_command check_snmp_cisco!.1.3.6.1.2.1.2.2.1.8.10101!-r " (1|2)$"!-l ifOperStatus check_command check_snmp_cisco_new!.1.3.6.1.2.1.2.2.1.8.10101!-r 1!-l ifOperStatus
} }
define service { define service {
use generic-service use generic-service
hosts nocsw hosts nocsw
service_description Gi0/02 - UNUSED service_description Gi0/02 - phone/2
check_command check_snmp_cisco!.1.3.6.1.2.1.2.2.1.8.10102!-r " (1|2)$"!-l ifOperStatus check_command check_snmp_cisco_new!.1.3.6.1.2.1.2.2.1.8.10102!-r " (1|2)$"!-l ifOperStatus
} }
define service { define service {
use generic-service use generic-service
hosts nocsw hosts nocsw
service_description Gi0/03 - uplink service_description Gi0/03 - ext/1
check_command check_snmp_cisco!.1.3.6.1.2.1.2.2.1.8.10103!-r " (1|2)$"!-l ifOperStatus check_command check_snmp_cisco_new!.1.3.6.1.2.1.2.2.1.8.10103!-r " (1|2)$"!-l ifOperStatus
} }
define service { define service {
use generic-service use generic-service
hosts nocsw hosts nocsw
service_description Gi0/04 - uplink service_description Gi0/04 - ext/2
check_command check_snmp_cisco!.1.3.6.1.2.1.2.2.1.8.10104!-r " (1|2)$"!-l ifOperStatus check_command check_snmp_cisco_new!.1.3.6.1.2.1.2.2.1.8.10104!-r " (1|2)$"!-l ifOperStatus
} }
define service { define service {
use generic-service use generic-service
hosts nocsw hosts nocsw
service_description Gi0/05 - mgmt service_description Gi0/05 - mgmt/1
check_command check_snmp_cisco!.1.3.6.1.2.1.2.2.1.8.10105!-r " (1|2)$"!-l ifOperStatus check_command check_snmp_cisco_new!.1.3.6.1.2.1.2.2.1.8.10105!-r " (1|2)$"!-l ifOperStatus
} }
define service { define service {
use generic-service use generic-service
hosts nocsw hosts nocsw
service_description Gi0/06 - mgmt service_description Gi0/06 - mgmt/2
check_command check_snmp_cisco!.1.3.6.1.2.1.2.2.1.8.10106!-r " (1|2)$"!-l ifOperStatus check_command check_snmp_cisco_new!.1.3.6.1.2.1.2.2.1.8.10106!-r " (1|2)$"!-l ifOperStatus
} }
define service { define service {
use generic-service use generic-service
hosts nocsw hosts nocsw
service_description Gi0/07 - mgmt service_description Gi0/07 - wired/1
check_command check_snmp_cisco!.1.3.6.1.2.1.2.2.1.8.10107!-r " (1|2)$"!-l ifOperStatus check_command check_snmp_cisco_new!.1.3.6.1.2.1.2.2.1.8.10107!-r " (1|2)$"!-l ifOperStatus
} }
define service { define service {
use generic-service use generic-service
hosts nocsw hosts nocsw
service_description Gi0/08 - mgmt service_description Gi0/08 - wired/2
check_command check_snmp_cisco!.1.3.6.1.2.1.2.2.1.8.10108!-r " (1|2)$"!-l ifOperStatus check_command check_snmp_cisco_new!.1.3.6.1.2.1.2.2.1.8.10108!-r " (1|2)$"!-l ifOperStatus
} }
define service { define service {
use generic-service use generic-service
hosts nocsw hosts nocsw
service_description Gi0/09 - wired service_description Gi0/09 - wireless/1
check_command check_snmp_cisco!.1.3.6.1.2.1.2.2.1.8.10109!-r " (1|2)$"!-l ifOperStatus check_command check_snmp_cisco_new!.1.3.6.1.2.1.2.2.1.8.10109!-r " (1|2)$"!-l ifOperStatus
} }
define service { define service {
use generic-service use generic-service
hosts nocsw hosts nocsw
service_description Gi0/10 - wired service_description Gi0/10 - wireless/2
check_command check_snmp_cisco!.1.3.6.1.2.1.2.2.1.8.10110!-r " (1|2)$"!-l ifOperStatus check_command check_snmp_cisco_new!.1.3.6.1.2.1.2.2.1.8.10110!-r " (1|2)$"!-l ifOperStatus
} }
define service { define service {
use generic-service use generic-service
hosts nocsw hosts nocsw
service_description Gi0/11 - wired service_description Gi0/11 - video/1
check_command check_snmp_cisco!.1.3.6.1.2.1.2.2.1.8.10111!-r " (1|2)$"!-l ifOperStatus check_command check_snmp_cisco_new!.1.3.6.1.2.1.2.2.1.8.10111!-r " (1|2)$"!-l ifOperStatus
} }
define service { define service {
use generic-service use generic-service
hosts nocsw hosts nocsw
service_description Gi0/12 - wired service_description Gi0/12 - video/2
check_command check_snmp_cisco!.1.3.6.1.2.1.2.2.1.8.10112!-r " (1|2)$"!-l ifOperStatus check_command check_snmp_cisco_new!.1.3.6.1.2.1.2.2.1.8.10112!-r " (1|2)$"!-l ifOperStatus
} }
define service { define service {
use generic-service use generic-service
hosts nocsw hosts nocsw
service_description Gi0/13 - wireless service_description Gi0/13 - video/3
check_command check_snmp_cisco!.1.3.6.1.2.1.2.2.1.8.10113!-r " (1|2)$"!-l ifOperStatus check_command check_snmp_cisco_new!.1.3.6.1.2.1.2.2.1.8.10113!-r " (1|2)$"!-l ifOperStatus
} }
define service { define service {
use generic-service use generic-service
hosts nocsw hosts nocsw
service_description Gi0/14 - wireless service_description Gi0/14 - video/4
check_command check_snmp_cisco!.1.3.6.1.2.1.2.2.1.8.10114!-r " (1|2)$"!-l ifOperStatus check_command check_snmp_cisco_new!.1.3.6.1.2.1.2.2.1.8.10114!-r " (1|2)$"!-l ifOperStatus
} }
define service { define service {
use generic-service use generic-service
hosts nocsw hosts nocsw
service_description Gi0/15 - wireless service_description Gi0/15 - overflow/1
check_command check_snmp_cisco!.1.3.6.1.2.1.2.2.1.8.10115!-r " (1|2)$"!-l ifOperStatus check_command check_snmp_cisco_new!.1.3.6.1.2.1.2.2.1.8.10115!-r " (1|2)$"!-l ifOperStatus
} }
define service { define service {
use generic-service use generic-service
hosts nocsw hosts nocsw
service_description Gi0/16 - wireless service_description Gi0/16 - overflow/2
check_command check_snmp_cisco!.1.3.6.1.2.1.2.2.1.8.10116!-r " (1|2)$"!-l ifOperStatus check_command check_snmp_cisco_new!.1.3.6.1.2.1.2.2.1.8.10116!-r " (1|2)$"!-l ifOperStatus
} }
define service { define service {
use generic-service use generic-service
hosts nocsw hosts nocsw
service_description Gi0/17 - video service_description Gi0/17 - SPARE/RECONFIG
check_command check_snmp_cisco!.1.3.6.1.2.1.2.2.1.8.10117!-r " (1|2)$"!-l ifOperStatus check_command check_snmp_cisco_new!.1.3.6.1.2.1.2.2.1.8.10117!-r " (1|2)$"!-l ifOperStatus
} }
define service { define service {
use generic-service use generic-service
hosts nocsw hosts nocsw
service_description Gi0/18 - video service_description Gi0/18 - SPARE/RECONFIG
check_command check_snmp_cisco!.1.3.6.1.2.1.2.2.1.8.10118!-r " (1|2)$"!-l ifOperStatus check_command check_snmp_cisco_new!.1.3.6.1.2.1.2.2.1.8.10118!-r " (1|2)$"!-l ifOperStatus
} }
define service { define service {
use generic-service use generic-service
hosts nocsw hosts nocsw
service_description Gi0/19 - video service_description Gi0/19 - SPARE/RECONFIG
check_command check_snmp_cisco!.1.3.6.1.2.1.2.2.1.8.10119!-r " (1|2)$"!-l ifOperStatus check_command check_snmp_cisco_new!.1.3.6.1.2.1.2.2.1.8.10119!-r " (1|2)$"!-l ifOperStatus
} }
define service { define service {
use generic-service use generic-service
hosts nocsw hosts nocsw
service_description Gi0/20 - video service_description Gi0/20 - SPARE/RECONFIG
check_command check_snmp_cisco!.1.3.6.1.2.1.2.2.1.8.10120!-r " (1|2)$"!-l ifOperStatus check_command check_snmp_cisco_new!.1.3.6.1.2.1.2.2.1.8.10120!-r " (1|2)$"!-l ifOperStatus
} }
define service { define service {
use generic-service use generic-service
hosts nocsw hosts nocsw
service_description Gi0/21 - overflow service_description Gi0/21 - SPARE/RECONFIG
check_command check_snmp_cisco!.1.3.6.1.2.1.2.2.1.8.10121!-r " (1|2)$"!-l ifOperStatus check_command check_snmp_cisco_new!.1.3.6.1.2.1.2.2.1.8.10121!-r " (1|2)$"!-l ifOperStatus
} }
define service { define service {
use generic-service use generic-service
hosts nocsw hosts nocsw
service_description Gi0/22 - overflow service_description Gi0/22 - SPARE/RECONFIG
check_command check_snmp_cisco!.1.3.6.1.2.1.2.2.1.8.10122!-r " (1|2)$"!-l ifOperStatus check_command check_snmp_cisco_new!.1.3.6.1.2.1.2.2.1.8.10122!-r " (1|2)$"!-l ifOperStatus
} }
define service { define service {
use generic-service use generic-service
hosts nocsw hosts nocsw
service_description Gi0/23 service_description Gi0/23 - UPLINK/spare
check_command check_snmp_cisco!.1.3.6.1.2.1.2.2.1.8.10123!-r 1!-l ifOperStatus check_command check_snmp_cisco_new!.1.3.6.1.2.1.2.2.1.8.10123!-r " (1|2)$"!-l ifOperStatus
} }
define service { define service {
use generic-service use generic-service
hosts nocsw hosts nocsw
service_description Gi0/24 service_description Gi0/24 - UPLINK
check_command check_snmp_cisco!.1.3.6.1.2.1.2.2.1.8.10124!-r " (1|2)$"!-l ifOperStatus check_command check_snmp_cisco_new!.1.3.6.1.2.1.2.2.1.8.10124!-r " (1|2)"!-l ifOperStatus
} }
define service { define service {
use generic-service use generic-service
hosts nocsw hosts nocsw
service_description Gi0/25 service_description Gi0/25
check_command check_snmp_cisco!.1.3.6.1.2.1.2.2.1.8.10125!-r 2!-l ifOperStatus check_command check_snmp_cisco_new!.1.3.6.1.2.1.2.2.1.8.10125!-r 2!-l ifOperStatus
} }
define service { define service {
use generic-service use generic-service
hosts nocsw hosts nocsw
service_description Gi0/26 service_description Gi0/26
check_command check_snmp_cisco!.1.3.6.1.2.1.2.2.1.8.10126!-r 2!-l ifOperStatus check_command check_snmp_cisco_new!.1.3.6.1.2.1.2.2.1.8.10126!-r 2!-l ifOperStatus
} }
define service { define service {
use generic-service use generic-service
hosts nocsw hosts nocsw
service_description Gi0/27 service_description Gi0/27
check_command check_snmp_cisco!.1.3.6.1.2.1.2.2.1.8.10127!-r 2!-l ifOperStatus check_command check_snmp_cisco_new!.1.3.6.1.2.1.2.2.1.8.10127!-r 2!-l ifOperStatus
} }
define service { define service {
use generic-service use generic-service
hosts nocsw hosts nocsw
service_description Gi0/28 service_description Gi0/28
check_command check_snmp_cisco!.1.3.6.1.2.1.2.2.1.8.10128!-r 2!-l ifOperStatus check_command check_snmp_cisco_new!.1.3.6.1.2.1.2.2.1.8.10128!-r 2!-l ifOperStatus
} }

View File

@ -7,11 +7,13 @@ define host {
parents mrvocsw parents mrvocsw
} }
define host { # Disabled by Stefan Lekov
host_name control-m-2 # 10.23.0.32 is the control laptop in small room
use videoteam-host #define host {
alias control-m-2 # host_name control-m-2
address 10.23.0.32 # use videoteam-host
hostgroups video-equipment,control-group # alias control-m-2
parents mrvocsw # address 10.23.0.32
} # hostgroups video-equipment,control-group
# parents mrvocsw
#}

View File

@ -2,16 +2,17 @@ define host {
host_name control-s-1 host_name control-s-1
use videoteam-host use videoteam-host
alias control-s-1 alias control-s-1
address 10.23.0.41 address 10.23.0.32
hostgroups video-equipment,control-group hostgroups video-equipment,control-group
parents srvocsw parents srvocsw
} }
define host { # Disabled by Stefan Lekov
host_name control-s-2 #define host {
use videoteam-host # host_name control-s-2
alias control-s-2 # use videoteam-host
address 10.23.0.42 # alias control-s-2
hostgroups video-equipment,control-group # address 10.23.0.42
parents srvocsw # hostgroups video-equipment,control-group
} # parents srvocsw
#}

View File

@ -1,26 +0,0 @@
define host {
host_name icom-m-1
use generic-host
alias icom-m-1
address 10.23.0.35
hostgroups intercom-group,ssh-servers
parents mrvocsw
}
define host {
host_name icom-m-2
use generic-host
alias icom-m-2
address 10.23.0.36
hostgroups intercom-group,ssh-servers
parents mrvocsw
}
define host {
host_name icom-m-3
use generic-host
alias icom-m-3
address 10.23.0.37
hostgroups intercom-group,ssh-servers
parents mrvocsw
}

View File

@ -1,26 +0,0 @@
define host {
host_name icom-s-1
use generic-host
alias icom-s-1
address 10.23.0.45
hostgroups intercom-group,ssh-servers
parents srvocsw
}
define host {
host_name icom-s-2
use generic-host
alias icom-s-2
address 10.23.0.46
hostgroups intercom-group,ssh-servers
parents srvocsw
}
define host {
host_name icom-s-3
use generic-host
alias icom-s-3
address 10.23.0.47
hostgroups intercom-group,ssh-servers
parents srvocsw
}

View File

@ -2,7 +2,7 @@ define host {
host_name atem-mr host_name atem-mr
use videoteam-host use videoteam-host
alias atem-mr alias atem-mr
address 10.23.0.11 address 10.23.0.5
hostgroups video-equipment,atem-group hostgroups video-equipment,atem-group
parents mrvocsw parents mrvocsw
} }

View File

@ -2,7 +2,7 @@ define host {
host_name atem-sr host_name atem-sr
use videoteam-host use videoteam-host
alias atem-sr alias atem-sr
address 10.23.0.12 address 10.23.0.6
hostgroups video-equipment,atem-group hostgroups video-equipment,atem-group
parents srvocsw parents srvocsw
} }

View File

@ -29,5 +29,8 @@ $USER1$=/usr/lib/nagios/plugins
# Store some usernames and passwords (hidden from the CGIs) # Store some usernames and passwords (hidden from the CGIs)
#$USER3$=someuser #$USER3$=someuser
#$USER4$=somepassword #$USER4$=somepassword
$USER3$=changeme $USER3$=password
$USER4$=changeme $USER4$=public
$USER5$=password