# Copyright (c) 2010 Flowerfire, Inc. All Rights Reserved. aix_cpu_utilization = { plugin_version = "1.0" info.1.manfacturer = "IBM" info.1.device = "AIX CPU Utilization" info.1.version.1 = "" # 2009-09-29 - GMF - 1.0 - Initial creation # The name of the log format log.format.format_label = "AIX CPU UtilizationLog 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 # e.g. AIX kexim1n1 3 5 00C1520E4C00 01/01/09 log.format.autodetect_regular_expression = "^AIX [^ ]+ [0-9]+ [0-9]+ [0-9A-F]+ +[0-9][0-9]/[0-9][0-9]/[0-9][0-9]" # All log field parsing will be done using the parsing filters # log.format.parse_only_with_filters = "true" # Log fields log.fields = { date = "" time = "" samples = "" usr_percent = "" sys_percent = "" wio_percent = "" idle_percent = "" physc = "" } # log.fields # Log Parsing Filters log.filter_initialization = `v.date = ""` log.parsing_filters.parse = ` # Get date from date lines if (matches_regular_expression(current_log_line(), "^AIX [^ ]+ [0-9]+ [0-9]+ [0-9A-F]+ +([0-9][0-9]/[0-9][0-9]/[0-9][0-9])")) then v.date = normalize_date($1, 'mm/dd/yy'); # 10:20:00 8 1 0 91 4.00 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.]+)")) then ( time = $1; date = v.date; usr_percent = $2; sys_percent = $3; wio_percent = $4; idle_percent = $5; physc = $6; samples = 1; ); ` # Database fields database.fields = { date_time = "" day_of_week = "" hour_of_day = "" } # database.fields database.numerical_fields = { usr_percent = { type = "float" display_format_type = "two_digit_fixed" aggregation_method = "average" average_denominator_field = "samples" default = true } # usr_percent sys_percent = { type = "float" display_format_type = "two_digit_fixed" aggregation_method = "average" average_denominator_field = "samples" default = true } # sys_percent wio_percent = { type = "float" display_format_type = "two_digit_fixed" aggregation_method = "average" average_denominator_field = "samples" default = true } # wio_percent idle_percent = { type = "float" display_format_type = "two_digit_fixed" aggregation_method = "average" average_denominator_field = "samples" default = true } # idle_percent samples = { default = true } } # 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 } # aix_cpu_utilization