nagios = { # The name of the log format log.format.format_label = "Nagios Log Format" log.miscellaneous.log_data_type = "generic" log.miscellaneous.log_format_type = "network_device" # The log is in this format if any of the first ten lines match this regular expression log.format.autodetect_regular_expression = "^\\[[0-9]+\\] LOG ROTATION" # The format of dates and times in this log log.format.date_format = "seconds_since_jan1_1970" log.format.time_format = "seconds_since_jan1_1970" # All log field parsing will be done using the parsing filters log.format.parse_only_with_filters = "true" # A log entry is called an event statistics.miscellaneous.entry_name = "events" # Log fields log.fields = { date_time = { label = "$lang_stats.field_labels.date_time" type = "date_time" index = 0 subindex = 0 hierarchy_dividers = "" left_to_right = false leading_divider = "false" } # date_time type = { label = "$lang_stats.field_labels.type" type = "flat" index = 0 subindex = 0 } # type host = { label = "$lang_stats.field_labels.host" type = "flat" index = 0 subindex = 0 } # host service = { label = "$lang_stats.field_labels.service" type = "flat" index = 0 subindex = 0 } # service status = { label = "$lang_stats.field_labels.status" type = "flat" index = 0 subindex = 0 } # status state = { label = "$lang_stats.field_labels.state" type = "flat" index = 0 subindex = 0 } # state retry = { label = "$lang_stats.field_labels.retry" type = "flat" index = 0 subindex = 0 } # retry notification_command = { label = "$lang_stats.field_labels.notification_command" type = "flat" index = 0 subindex = 0 } # notification_command message = { label = "$lang_stats.field_labels.message" type = "flat" index = 0 subindex = 0 } # message contact = { label = "$lang_stats.field_labels.contact" type = "flat" index = 0 subindex = 0 } # contact } # log.fields # # Log Parsing Filters log.parsing_filters = { # Parse first fields 1 = { label = "1" comment = "" value = "collect_fields_using_regexp('()\\\\[([0-9]+)\\\\] ([^:]+): ([^;]+);', '*KEY*,date_time,type')" } # 1 # Parse SERVICE ALERT lines 2 = { label = "2" comment = "" value = "collect_fields_using_regexp('()\\\\[[0-9]+\\\\] SERVICE ALERT: ([^;]+);([^;]+);([^;]+);([^;]+);([^;]+);([^;]+)$', '*KEY*,host,service,status,state,retry,message')" } # 2 # Parse HOST ALERT lines 3 = { label = "3" comment = "" value = "collect_fields_using_regexp('()\\\\[[0-9]+\\\\] HOST ALERT: ([^;]+);([^;]+);([^;]+);([^;]+);([^;]+)$', '*KEY*,host,status,state,retry,message')" } # 3 # Parse NOTIFICATION lines 4 = { label = "4" comment = "" value = "collect_fields_using_regexp('()\\\\[[0-9]+\\\\] [A-Z]+ NOTIFICATION: ([^;]+);([^;]+);([^;]+);([^;]+);([^;]+);([^;]+)$', '*KEY*,contact,host,status,notification_command,message')" } # 4 # Accept this line 5 = { label = "5" comment = "" value = "accept_collected_entry_using_regexp('()', false)" } # 5 } # log.parsing_filters # Database fields database.fields = { date_time = { label = "$lang_stats.field_labels.date_time" log_field = "date_time" type = "string" suppress_top = 0 suppress_bottom = 3 display_format_type = "date_time" } # date_time day_of_week = { label = "$lang_stats.field_labels.day_of_week" log_field = "day_of_week" type = "string" suppress_top = 0 suppress_bottom = 2 display_format_type = "day_of_week" } # day_of_week hour_of_day = { label = "$lang_stats.field_labels.hour_of_day" log_field = "hour_of_day" type = "string" suppress_top = 0 suppress_bottom = 2 display_format_type = "hour_of_day" } # hour_of_day type = { label = "$lang_stats.field_labels.type" log_field = "type" type = "string" suppress_top = 0 suppress_bottom = 2 } # type host = { label = "$lang_stats.field_labels.host" log_field = "host" type = "string" suppress_top = 0 suppress_bottom = 2 } # host service = { label = "$lang_stats.field_labels.service" log_field = "service" type = "string" suppress_top = 0 suppress_bottom = 2 } # service status = { label = "$lang_stats.field_labels.status" log_field = "status" type = "string" suppress_top = 0 suppress_bottom = 2 } # status state = { label = "$lang_stats.field_labels.state" log_field = "state" type = "string" suppress_top = 0 suppress_bottom = 2 } # state retry = { label = "$lang_stats.field_labels.retry" log_field = "retry" type = "string" suppress_top = 0 suppress_bottom = 2 } # retry notification_command = { label = "$lang_stats.field_labels.notification_command" log_field = "notification_command" type = "string" suppress_top = 0 suppress_bottom = 2 } # notification_command message = { label = "$lang_stats.field_labels.message" log_field = "message" type = "string" suppress_top = 0 suppress_bottom = 2 } # message contact = { label = "$lang_stats.field_labels.contact" log_field = "contact" type = "string" suppress_top = 0 suppress_bottom = 2 } # contact } # database.fields # Log Filters log.filters = { mark_entry = { label = '$lang_admin.log_filters.mark_entry_label' comment = '$lang_admin.log_filters.mark_entry_comment' value = 'events = 1;' } # mark_entry } # log.filters database.numerical_fields = { events = { label = "$lang_stats.field_labels.events" default = true requires_log_field = false type = "int" display_format_type = "integer" entries_field = true } # events } # database.numerical_fields create_profile_wizard_options = { date_time_tracking = true # How the reports should be grouped in the report menu report_groups = { date_time_group = "" day_of_week = true hour_of_day = true type = true host = true service = true status = true state = true retry = true notification_command = true message = true contact = true } # report_groups } # create_profile_wizard_options not_supported = { individualhosts = true sessions = true sessionpages = true bandwidth = true visitors = true pageviews = true } # not_supported } # nagios