-
Notifications
You must be signed in to change notification settings - Fork 0
/
juniper.cfg
146 lines (112 loc) · 4.67 KB
/
juniper.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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
###############################################################################
#
# HOST DEFINITIONS
#
###############################################################################
# Define the switch that we'll be monitoring
define host {
use generic-switch ; Inherit default values from a template
host_name juniper-vMX ; The name we're giving to this switch
alias Juniper vMX ; A longer name associated with the switch
address 10.0.0.2 ; IP address of the switch
hostgroups switches ; Host groups this switch is associated with
}
###############################################################################
#
# SERVICE DEFINITIONS
#
###############################################################################
# Create a service to PING to switch
define service {
use generic-service ; Inherit values from a template
host_name juniper-vMX ; The name of the host the service is associated with
service_description PING ; The service description
check_command check_ping!200.0,20%!600.0,60% ; The command used to monitor the service
check_interval 5
retry_interval 1
}
# Monitor uptime via SNMP
define service {
use generic-service ; Inherit values from a template
host_name juniper-vMX
service_description Uptime
check_command check_snmp!-C public -o sysUpTime.0
}
# Monitor Port status via SNMP
# Port loopback 0
define service {
use generic-service ; Inherit values from a template
host_name juniper-vMX
service_description Port Loopback 0
check_command check_snmp!-C public -o ifOperStatus.16 -r 1 -m RFC1213-MIB
check_interval 2
retry_interval 1
}
# Port em0.0
define service {
use generic-service ; Inherit values from a template
host_name juniper-vMX
service_description Port em0.0
check_command check_snmp!-C public -o ifOperStatus.18 -r 1 -m RFC1213-MIB
check_interval 2
retry_interval 1
}
# Port em1.0
define service {
use generic-service ; Inherit values from a template
host_name juniper-vMX
service_description Port em1.0
check_command check_snmp!-C public -o ifOperStatus.24 -r 1 -m RFC1213-MIB
check_interval 2
retry_interval 1
}
define service {
use generic-service ; Inherit values from a template
host_name juniper-vMX
service_description OSPF Status
check_command check_osfp_cisco!172.168.198.201
check_interval 2
retry_interval 1
}
define service {
use generic-service ; Inherit values from a template
host_name juniper-vMX
service_description CPU Status
check_command check_cpu_router!j!$HOSTADDRESS$
check_interval 2
retry_interval 1
}
define service {
use generic-service
host_name juniper-vMX
service_description RAM Status
check_command check_ram_router!j!$HOSTADDRESS$
check_interval 2
retry_interval 1
}
# rrdtraf
define service {
use generic-service
host_name juniper-vMX
service_description Port em0.0 Traffic
check_command check_rrdtraf!/usr/share/cacti/rra/juniper_router_traffic_in_22.rrd!86000000,100000000!75000000,85999999
check_interval 2
retry_interval 1
}
define service {
use generic-service
host_name juniper-vMX
service_description Port em1.0 Traffic
check_command check_rrdtraf!/usr/share/cacti/rra/juniper_router_traffic_in_23.rrd!86000000,100000000!75000000,85999999
check_interval 2
retry_interval 1
}
# Check jcpu
define service {
use generic-service
host_name juniper-vMX
service_description Check Juniper CPU
check_command check_jcpu!"/usr/share/cacti/rra/juniper_router_jun_5min_cpu_16.rrd"!2!5
check_interval 2
retry_interval 1
}