@@ -11,27 +11,21 @@ include 'pan/types';
11
11
# validation code easier. If you want hosts to inherit settings then use
12
12
# Pan statements like create ("...") or value ("...")
13
13
14
- type nagios_hoststring = string with exists (" /software/components/nagios/hosts/" + SELF) ||
15
- SELF==" *" ;
14
+ type nagios_hoststring = string with exists (" /software/components/nagios/hosts/" + SELF) || SELF == " *" ;
16
15
17
- type nagios_hostgroupstring = string with exists (" /software/components/nagios/hostgroups/" + SELF) || SELF== " *" ;
16
+ type nagios_hostgroupstring = string with exists (" /software/components/nagios/hostgroups/" + SELF) || SELF == " *" ;
18
17
19
- type nagios_commandstrings = string [] with exists (" /software/components/nagios/commands/" + SELF[0]);
18
+ type nagios_commandstrings = string [] with exists (" /software/components/nagios/commands/" + SELF[0]);
20
19
21
- type nagios_timeperiodstring = string with exists (" /software/components/nagios/timeperiods/" + SELF) ||
22
- SELF==" *" ;
20
+ type nagios_timeperiodstring = string with exists (" /software/components/nagios/timeperiods/" + SELF) || SELF == " *" ;
23
21
24
- type nagios_contactgroupstring = string with exists (" /software/components/nagios/contactgroups/" + SELF) ||
25
- SELF==" *" ;
22
+ type nagios_contactgroupstring = string with exists (" /software/components/nagios/contactgroups/" + SELF) || SELF == " *" ;
26
23
27
- type nagios_contactstring = string with exists (" /software/components/nagios/contacts/" + SELF) ||
28
- SELF==" *" ;
24
+ type nagios_contactstring = string with exists (" /software/components/nagios/contacts/" + SELF) || SELF == " *" ;
29
25
30
- type nagios_servicegroupstring = string with exists (" /software/components/nagios/servicegroups/" + SELF) ||
31
- SELF==" *" ;
26
+ type nagios_servicegroupstring = string with exists (" /software/components/nagios/servicegroups/" + SELF) || SELF == " *" ;
32
27
33
- type nagios_servicestring = string with exists (" /software/components/nagios/services/" + SELF) ||
34
- SELF==" *" ;
28
+ type nagios_servicestring = string with exists (" /software/components/nagios/services/" + SELF) || SELF == " *" ;
35
29
36
30
type nagios_service_notification_string = string with match (SELF, " ^(w|u|c|r|f)$" );
37
31
type nagios_host_notification_string = string with match (SELF, " ^(d|u|r|f)$" );
@@ -150,7 +144,7 @@ type structure_nagios_service = {
150
144
" register" : boolean = true
151
145
" failure_prediction_enabled" ? boolean
152
146
" action_url" ? string
153
- } with nagios_has_host_or_hostgroup (SELF);;
147
+ } with nagios_has_host_or_hostgroup (SELF);
154
148
155
149
# Servicegroup definition:
156
150
type structure_nagios_servicegroup = {
@@ -174,7 +168,7 @@ type structure_nagios_servicedependency = {
174
168
" execution_failure_criteria" ? nagios_execution_failure_string []
175
169
" notification_failure_criteria" ? nagios_notification_failure_string []
176
170
" dependency_period" ? nagios_timeperiodstring
177
- } with nagios_has_host_or_hostgroup (SELF);;
171
+ } with nagios_has_host_or_hostgroup (SELF);
178
172
179
173
# Contact definition
180
174
type structure_nagios_contact = {
@@ -197,8 +191,9 @@ type structure_nagios_contactgroup = {
197
191
};
198
192
199
193
# Time range definition
200
- type nagios_timerange = string with
201
- match (SELF, " ^(([0-9]+:[0-9]+)-([0-9]+:[0-9]+),)*([0-9]+:[0-9]+)-([0-9]+:[0-9]+)$" );
194
+ type nagios_timerange = string with match (SELF,
195
+ " ^(([0-9]+:[0-9]+)-([0-9]+:[0-9]+),)*([0-9]+:[0-9]+)-([0-9]+:[0-9]+)$"
196
+ );
202
197
203
198
# Time period definition
204
199
type structure_nagios_timeperiod = {
@@ -383,7 +378,7 @@ type structure_nagios_nagios_cfg = {
383
378
" ocsp_command" ? string
384
379
};
385
380
386
- type structure_nagios_service_list = structure_nagios_service[];
381
+ type structure_nagios_service_list = structure_nagios_service[];
387
382
388
383
# Everything that can be handled by this component
389
384
type structure_component_nagios = {
0 commit comments