-
Notifications
You must be signed in to change notification settings - Fork 2
/
ubnt-ptp-example.cfg
71 lines (63 loc) · 2.66 KB
/
ubnt-ptp-example.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
define command {
command_name check_ubntm_ptp
command_line /usr/local/lib/nagios/UBNT-M_http.py -H $ARG1$ -U $ARG2$ -P $ARG3$ -w $ARG4$ -c $ARG5$
}
define command {
command_name check_ubntaf24_ptp
command_line /usr/local/lib/nagios/UBNT-AF24_http.py -H $ARG1$ -U $ARG2$ -P $ARG3$ -w $ARG4$ -c $ARG5$ -b $ARG6$
}
define service {
hostgroup_name ubnt-m-ptp
use generic-service,service-pnp
service_description UBNT-M LINK composite
contact_groups admins, net-admins
check_command check_ubntm_ptp!http://$HOSTNAME$!ubnt!password!$_HOSTUBNTWARNVALS$!$_HOSTUBNTCRITVALS$
}
define service {
hostgroup_name ubnt-af24-ptp
use generic-service,service-pnp
service_description UBNT-AF24 LINK composite
contact_groups admins, net-admins
check_command check_ubntaf24_ptp!http://$HOSTNAME$!ubnt!password!$_HOSTUBNTWARNVALS$!$_HOSTUBNTCRITVALS$
}
define hostgroup {
hostgroup_name ubnt-m-ptp
alias UBNT-M PtP
}
define hostgroup {
hostgroup_name ubnt-af24-ptp
alias UBNT-AF24 PtP
}
define host{
host_name m5-bridge.example.com
hostgroups ubnt-m-ptp
alias An M5 p-t-p bridge
address m5-bridge.example.com
parents router.example.com
check_command check-host-alive
max_check_attempts 5
check_period 24x7
contact_groups admins, net-admins, tech-support
notification_interval 30
notification_period 24x7
notification_options d,u,r
_UBNTWARNVALS -60:-53,,,~:-91,95:~,90:~,89:~,117:~,117:~
_UBNTCRITVALS -68:-50,,,~:-89,89:~,85:~,85:~,104:~,104:~
}
define host{
host_name af24-bridge.example.com
hostgroups ubnt-af24-ptp
alias An AF24 p-t-p bridge
address af24-bridge.example.com
parents router.example.com
check_command check-host-alive
max_check_attempts 5
check_period 24x7
contact_groups admins, net-admins, tech-support
notification_interval 30
notification_period 24x7
notification_options d,u,r
_UBNTWARNVALS -50:-40,-50:-40,700000000:~,700000000:~,6:~,130:160,27:55,30:60,90:~,8:~
_UBNTCRITVALS -60:-39,-60:-39,500000000:~,500000000:~,4:~,125:170,25:60,28:65,60:~,6:~
_UBNTBOOLS airfiber.rxpower0valid=1,airfiber.rxpower1valid=1,airfiber.rxoverload0=0,airfiber.rxoverload1=0,gps.status=1,gps.fix=1,airfiber.data_speed=1000Mbps-Full,airfiber.linkstate=operational
}