@@ -11,21 +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) || SELF== " *" ;
14
+ type nagios_hoststring = string with exists (" /software/components/nagios/hosts/" + SELF) || SELF == " *" ;
15
15
16
- 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 == " *" ;
17
17
18
- 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]);
19
19
20
- type nagios_timeperiodstring = string with exists (" /software/components/nagios/timeperiods/" + SELF) || SELF== " *" ;
20
+ type nagios_timeperiodstring = string with exists (" /software/components/nagios/timeperiods/" + SELF) || SELF == " *" ;
21
21
22
- type nagios_contactgroupstring = string with exists (" /software/components/nagios/contactgroups/" + SELF) || SELF== " *" ;
22
+ type nagios_contactgroupstring = string with exists (" /software/components/nagios/contactgroups/" + SELF) || SELF == " *" ;
23
23
24
- type nagios_contactstring = string with exists (" /software/components/nagios/contacts/" + SELF) || SELF== " *" ;
24
+ type nagios_contactstring = string with exists (" /software/components/nagios/contacts/" + SELF) || SELF == " *" ;
25
25
26
- type nagios_servicegroupstring = string with exists (" /software/components/nagios/servicegroups/" + SELF) || SELF== " *" ;
26
+ type nagios_servicegroupstring = string with exists (" /software/components/nagios/servicegroups/" + SELF) || SELF == " *" ;
27
27
28
- type nagios_servicestring = string with exists (" /software/components/nagios/services/" + SELF) || SELF== " *" ;
28
+ type nagios_servicestring = string with exists (" /software/components/nagios/services/" + SELF) || SELF == " *" ;
29
29
30
30
type nagios_service_notification_string = string with match (SELF, " ^(w|u|c|r|f)$" );
31
31
type nagios_host_notification_string = string with match (SELF, " ^(d|u|r|f)$" );
@@ -144,7 +144,7 @@ type structure_nagios_service = {
144
144
" register" : boolean = true
145
145
" failure_prediction_enabled" ? boolean
146
146
" action_url" ? string
147
- } with nagios_has_host_or_hostgroup (SELF);;
147
+ } with nagios_has_host_or_hostgroup (SELF);
148
148
149
149
# Servicegroup definition:
150
150
type structure_nagios_servicegroup = {
@@ -168,7 +168,7 @@ type structure_nagios_servicedependency = {
168
168
" execution_failure_criteria" ? nagios_execution_failure_string []
169
169
" notification_failure_criteria" ? nagios_notification_failure_string []
170
170
" dependency_period" ? nagios_timeperiodstring
171
- } with nagios_has_host_or_hostgroup (SELF);;
171
+ } with nagios_has_host_or_hostgroup (SELF);
172
172
173
173
# Contact definition
174
174
type structure_nagios_contact = {
@@ -378,7 +378,7 @@ type structure_nagios_nagios_cfg = {
378
378
" ocsp_command" ? string
379
379
};
380
380
381
- type structure_nagios_service_list = structure_nagios_service[];
381
+ type structure_nagios_service_list = structure_nagios_service[];
382
382
383
383
# Everything that can be handled by this component
384
384
type structure_component_nagios = {
0 commit comments