# Copyright (c) 2010 Flowerfire, Inc. All Rights Reserved. ups_web_smp_manager_alarm = { plugin_version = "1.0" info.1.manufacturer = "Generex" info.1.device = "UPS WEB/SNMP Manager" info.1.version.1 = "CS121" # 2010-08-26 - GMF - 1.0 - Initial implementation # The name of the log format log.format.format_label = "UPS WEB/SNMP Manager" log.miscellaneous.log_data_type = "other" log.miscellaneous.log_format_type = "other" # The log is in this format if any of the first ten lines match this regular expression log.format.autodetect_regular_expression = "^[0-9][0-9]/[0-9][0-9]/[0-9][0-9][0-9][0-9],[0-9][0-9]:[0-9][0-9]:[0-9][0-9], " # The format of dates and times in this log log.format.date_format = "auto" log.format.time_format = "auto" # Log fields log.fields = { date = "" time = "" message = "" events = "" } # log.fields log.parsing_filters.parse = ` if (matches_regular_expression(current_log_line(), '^([0-9][0-9]/[0-9][0-9]/[0-9][0-9][0-9][0-9]),([0-9][0-9]:[0-9][0-9]:[0-9][0-9]), (.*)$')) then ( date = $1; time = $2; message = $3; events = 1; ); ` # Database fields database.fields = { date_time = "" day_of_week = "" hour_of_day = "" message = "" } # database.fields # There can be newlines inside quotes in CSV files-- let field values across lines log.format.allow_newlines_inside_quotes = "true" database.numerical_fields = { events = { default = true entries_field = true } # events } # database.numerical_fields 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 create_profile_wizard_options = { # How the reports should be grouped in the report menu report_groups = { date_time_group = "" messages = "" } # report_groups } # create_profile_wizard_options } # ups_web_smp_manager_alarm