def check_line_syntax( self, line, object_type, file, rownum ):
"""Verifying a given line as a property of a Nagios object of given object type."""
- self.logger.debug( "Checking line {0!r} for object type {1!r} in {2!r}({3}).".format(
- line, object_type, file, rownum ) )
+ #self.logger.debug( "Checking line {0!r} for object type {1!r} in {2!r}({3}).".format(
+ # line, object_type, file, rownum ) )
if not object_type in self.get_valid_object_types():
raise NagiosConfigStructError( "Invalid object type {0!r}.".format( object_type ) )
'max_check_attempts': ( 'int', None ),
'check_interval': ( 'int', None ),
'retry_interval': ( 'int', None ),
+ 'normal_check_interval': ( 'int', None ),
+ 'retry_check_interval': ( 'int', None ),
'active_checks_enabled': ( 'bool', None ),
'passive_checks_enabled': ( 'bool', None ),
'check_period': ( 'string', None ),
+ 'failure_prediction_enabled': ( 'bool', None ),
'obsess_over_host': ( 'bool', None ),
'check_freshness': ( 'bool', None ),
'freshness_threshold': ( 'int', None ),
'max_check_attempts': ( 'int', None ),
'check_interval': ( 'int', None ),
'retry_interval': ( 'int', None ),
+ 'normal_check_interval': ( 'int', None ),
+ 'retry_check_interval': ( 'int', None ),
'active_checks_enabled': ( 'bool', None ),
'passive_checks_enabled': ( 'bool', None ),
+ 'parallelize_check': ( 'bool', None ),
'check_period': ( 'string', None ),
+ 'failure_prediction_enabled': ( 'bool', None ),
'obsess_over_service': ( 'bool', None ),
'check_freshness': ( 'bool', None ),
'freshness_threshold': ( 'int', None ),
'retain_status_information': ( 'bool', None ),
'retain_nonstatus_information': ( 'bool', None ),
},
+ 'contactgroup': {
+ 'contactgroup_name': ( 'string', None ),
+ 'alias': ( 'string', None ),
+ 'members': ( 'array', None ),
+ 'contactgroup_members': ( 'array', None ),
+ },
+ 'timeperiod': {
+ 'timeperiod_name': ( 'string', None ),
+ 'alias': ( 'string', None ),
+ #'[weekday]': timeranges
+ #'[exception]': timeranges
+ 'exclude': ( 'array', None ),
+ },
+ 'command': {
+ 'command_name': ( 'string', None ),
+ 'command_line': ( 'string', None ),
+ },
+ 'servicedependency': {
+ 'dependent_host_name': ( 'array', None ),
+ 'dependent_hostgroup_name': ( 'array', None ),
+ 'dependent_service_description': ( 'array', None ),
+ 'host_name': ( 'array', None ),
+ 'hostgroup_name': ( 'array', None ),
+ 'service_description': ( 'array', None ),
+ 'inherits_parent': ( 'bool', None ),
+ 'execution_failure_criteria': ( 'set', { 'valid_values': set( [ 'o', 'w', 'u', 'c', 'p', 'n' ] ) } ), #[o,w,u,c,p,n]
+ 'notification_failure_criteria': ( 'set', { 'valid_values': set( [ 'o', 'w', 'u', 'c', 'p', 'n' ] ) } ), #[o,w,u,c,p,n]
+ 'dependency_period': ( 'string', None ),
+ },
+ 'serviceescalation': {
+ 'host_name': ( 'array', None ),
+ 'hostgroup_name': ( 'array', None ),
+ 'service_description': ( 'string', None ),
+ 'contacts': ( 'array', None ),
+ 'contact_groups': ( 'array', None ),
+ 'first_notification': ( 'int', None ),
+ 'last_notification': ( 'int', None ),
+ 'notification_interval': ( 'int', None ),
+ 'escalation_period': ( 'string', None ),
+ 'escalation_options': ( 'set', { 'valid_values': set( [ 'w', 'u', 'c', 'r' ] ) } ), #[w,u,c,r]
+ },
}
if object_type not in key_def: