# Copyright (c) 2010 Flowerfire, Inc. All Rights Reserved. performance_monitor = { plugin_version = "1.0.1" # 2006-04-19 - 1.0beta - GMF - Adding this version. Found a ~ file for it, but original # was not in repository. Why? # 2007-09-13 - 1.0 - KBB - renumbered per new beta policy and changed name from # beta_performance_monitor .cfg # 2011-07-11 - 1.0.1 - MSG - Edited info lines. info.1.manufacturer = "Microsoft" info.1.device = "Performance Monitor" info.1.version.1 = "" # The name of the log format log.format.format_label = "Performance Monitor Log Format" log.miscellaneous.log_data_type = "other" log.miscellaneous.log_format_type = "application" # 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] [^ ]+ cpu = ([0-9.]+) load = ([0-9.]+)" # The format of dates and times in this log # log.format.date_format = "d/m/yyyy" # All log field parsing will be done using the parsing filters # log.format.parse_only_with_filters = "true" # Log fields log.fields = { date = "" time = "" machine = "" percent_cpu_used = "" load = "" disk_usage = "" packets_in_out = "" samples = "" } # log.fields # Log Parsing Filters log.parsing_filters.parse = ` if (matches_regular_expression(current_log_line(), '^([0-9]+)/([0-9]+)/([0-9]+) ([0-9:]+) ([^ ]+) cpu = ([0-9.]+) load = ([0-9.]+)(.*)$')) then date = $2 . '/' . $1 . '/' . $3; time = $4; machine = $5; percent_cpu_used = $6; load = $7; v.remainder = $8; if (matches_regular_expression(v.remainder, '^ disk = ([0-9.]+) pkts = ([0-9.]+)')) then ( disk_usage = $1; packets_in_out = $2; ); samples = 1; ); ` # Database fields database.fields = { date_time = "" day_of_week = "" hour_of_day = "" } # database.fields database.numerical_fields = { samples = "" percent_cpu_used_average = { log_field = "percent_cpu_used" type = "float" display_format_type = "two_digit_fixed" aggregation_method = "average" average_denominator_field = "samples" } percent_cpu_used_maximum = { log_field = "percent_cpu_used" type = "float" display_format_type = "two_digit_fixed" aggregation_method = "max" } percent_cpu_used_minimum = { log_field = "percent_cpu_used" type = "float" display_format_type = "two_digit_fixed" aggregation_method = "min" } load_average = { log_field = "load" type = "float" display_format_type = "two_digit_fixed" aggregation_method = "average" average_denominator_field = "samples" } load_maximum = { log_field = "load" type = "float" display_format_type = "two_digit_fixed" aggregation_method = "max" } load_minimum = { log_field = "load" type = "float" display_format_type = "two_digit_fixed" aggregation_method = "min" } disk_usage_average = { log_field = "disk_usage" type = "float" display_format_type = "two_digit_fixed" aggregation_method = "average" average_denominator_field = "samples" } disk_usage_maximum = { log_field = "disk_usage" type = "float" display_format_type = "two_digit_fixed" aggregation_method = "max" } disk_usage_minimum = { log_field = "disk_usage" type = "float" display_format_type = "two_digit_fixed" aggregation_method = "min" } packets_in_out_average = { log_field = "packets_in_out" type = "float" display_format_type = "two_digit_fixed" aggregation_method = "average" average_denominator_field = "samples" } packets_in_out_maximum = { log_field = "packets_in_out" type = "float" display_format_type = "two_digit_fixed" aggregation_method = "max" } packets_in_out_minimum = { log_field = "packets_in_out" type = "float" display_format_type = "two_digit_fixed" aggregation_method = "min" } } # database.numerical_fields create_profile_wizard_options = { # How the reports should be grouped in the report menu report_groups = { date_time_group = "" } # report_groups } # create_profile_wizard_options } # performance_monitor