diff --git a/README.md b/README.md index 5776395..4e8d9ec 100644 --- a/README.md +++ b/README.md @@ -36,6 +36,8 @@ Thola currently has three main modes of operation with various subcommands: - `read count-interfaces` counts the interfaces. - `read cpu-load` returns the current cpu load of all CPUs. - `read memory-usage` reads out the current memory usage. + - `read disk` reads storage utilizations. + - `read server` outputs server specific information like users and process count. - `read ups` outputs the special values of a UPS device. - `read sbc` reads out SBC specific information. - `check` performs checks that can be used in monitoring systems. Output is by default in check plugin format. @@ -45,6 +47,8 @@ Thola currently has three main modes of operation with various subcommands: - `check cpu-load` checks the average CPU load of all CPUs against given thresholds and outputs the current load of all CPUs as performance data. - `check memory-usage` checks the current memory usage against given thresholds. - `check ups` checks if a UPS device has its main voltage applied and outputs additional performance data like battery capacity or current load, and compares them to optionally given thresholds. + - `check disk` checks the free space of storages. + - `check server` checks server specific information. - `check thola-server` checks reachability of a Thola API. - `check sbc` checks an SBC device and outputs metrics for each realm and agent as performance data. diff --git a/api/request_handler.go b/api/request_handler.go index 5c4e985..37d78b8 100644 --- a/api/request_handler.go +++ b/api/request_handler.go @@ -233,7 +233,7 @@ func StartAPI() { // swagger:operation POST /check/memory-usage check checkMemoryUsage // --- - // summary: Read out the memory usage of a device. + // summary: Check the memory usage of a device. // consumes: // - application/json // - application/xml @@ -260,7 +260,7 @@ func StartAPI() { // swagger:operation POST /check/cpu-load check checkCpuLoad // --- - // summary: Read out the cpu load of a device. + // summary: Check the cpu load of a device. // consumes: // - application/json // - application/xml @@ -339,6 +339,33 @@ func StartAPI() { // $ref: '#/definitions/OutputError' e.POST("/check/server", checkServer) + // swagger:operation POST /check/disk check checkDisk + // --- + // summary: Check the disk of a device. + // consumes: + // - application/json + // - application/xml + // produces: + // - application/json + // - application/xml + // parameters: + // - name: body + // in: body + // description: Request to process. + // required: true + // schema: + // $ref: '#/definitions/CheckDiskRequest' + // responses: + // 200: + // description: Returns the response. + // schema: + // $ref: '#/definitions/CheckDiskResponse' + // 400: + // description: Returns an error with more details in the body. + // schema: + // $ref: '#/definitions/OutputError' + e.POST("/check/disk", checkDisk) + // swagger:operation POST /check/hardware-health check checkSBC // --- // summary: Check an hardware health of an device. @@ -555,6 +582,33 @@ func StartAPI() { // $ref: '#/definitions/OutputError' e.POST("/read/server", readServer) + // swagger:operation POST /read/disk read readDisk + // --- + // summary: Reads out disk data of a device. + // consumes: + // - application/json + // - application/xml + // produces: + // - application/json + // - application/xml + // parameters: + // - name: body + // in: body + // description: Request to process. + // required: true + // schema: + // $ref: '#/definitions/ReadDiskRequest' + // responses: + // 200: + // description: Returns the response. + // schema: + // $ref: '#/definitions/ReadDiskResponse' + // 400: + // description: Returns an error with more details in the body. + // schema: + // $ref: '#/definitions/OutputError' + e.POST("/read/disk", readDisk) + // swagger:operation POST /read/hardware-health read hardware health // --- // summary: Reads out hardware health data of a device. @@ -765,6 +819,18 @@ func checkServer(ctx echo.Context) error { return returnInFormat(ctx, http.StatusOK, resp) } +func checkDisk(ctx echo.Context) error { + r := request.CheckDiskRequest{} + if err := ctx.Bind(&r); err != nil { + return err + } + resp, err := handleAPIRequest(ctx, &r, &r.BaseRequest.DeviceData.IPAddress) + if err != nil { + return handleError(ctx, err) + } + return returnInFormat(ctx, http.StatusOK, resp) +} + func checkHardwareHealth(ctx echo.Context) error { r := request.CheckHardwareHealthRequest{} if err := ctx.Bind(&r); err != nil { @@ -861,6 +927,18 @@ func readServer(ctx echo.Context) error { return returnInFormat(ctx, http.StatusOK, resp) } +func readDisk(ctx echo.Context) error { + r := request.ReadDiskRequest{} + if err := ctx.Bind(&r); err != nil { + return err + } + resp, err := handleAPIRequest(ctx, &r, &r.BaseRequest.DeviceData.IPAddress) + if err != nil { + return handleError(ctx, err) + } + return returnInFormat(ctx, http.StatusOK, resp) +} + func readHardwareHealth(ctx echo.Context) error { r := request.ReadHardwareHealthRequest{} if err := ctx.Bind(&r); err != nil { diff --git a/cmd/check_disk.go b/cmd/check_disk.go new file mode 100644 index 0000000..a4ed148 --- /dev/null +++ b/cmd/check_disk.go @@ -0,0 +1,28 @@ +package cmd + +import ( + "github.com/inexio/thola/core/request" + "github.com/spf13/cobra" +) + +func init() { + addDeviceFlags(checkDiskCMD) + checkCMD.AddCommand(checkDiskCMD) + + checkDiskCMD.Flags().Float64("warning", 0, "warning threshold for free disk space") + checkDiskCMD.Flags().Float64("critical", 0, "critical threshold for free disk space") +} + +var checkDiskCMD = &cobra.Command{ + Use: "disk", + Short: "Check the disk of a device", + Long: "Checks the disk of a device.\n\n" + + "The metrics will be printed as performance data.", + Run: func(cmd *cobra.Command, args []string) { + r := request.CheckDiskRequest{ + CheckDeviceRequest: getCheckDeviceRequest(args[0]), + DiskThresholds: generateCheckThresholds(cmd, "warning", "", "critical", ""), + } + handleRequest(&r) + }, +} diff --git a/cmd/check_interface_metrics.go b/cmd/check_interface_metrics.go index 2392d6e..99a8275 100644 --- a/cmd/check_interface_metrics.go +++ b/cmd/check_interface_metrics.go @@ -2,9 +2,8 @@ package cmd import ( "github.com/inexio/thola/core/request" + "github.com/rs/zerolog/log" "github.com/spf13/cobra" - "github.com/spf13/viper" - "os" ) func init() { @@ -12,17 +11,8 @@ func init() { checkCMD.AddCommand(checkInterfaceMetricsCMD) checkInterfaceMetricsCMD.Flags().Bool("print-interfaces", false, "Print interfaces to plugin output") - checkInterfaceMetricsCMD.Flags().StringSlice("filter", []string{}, "Filter out interfaces which ifType matches the given types") - - err := viper.BindPFlag("checkInterfaceMetrics.print-interfaces", checkInterfaceMetricsCMD.Flags().Lookup("print-interfaces")) - if err != nil { - os.Exit(3) - } - - err = viper.BindPFlag("checkInterfaceMetrics.filter", checkInterfaceMetricsCMD.Flags().Lookup("filter")) - if err != nil { - os.Exit(3) - } + checkInterfaceMetricsCMD.Flags().StringSlice("ifType-filter", []string{}, "Filter out interfaces which ifType equals the given types") + checkInterfaceMetricsCMD.Flags().StringSlice("ifName-filter", []string{}, "Filter out interfaces which ifType matches the given regex") } var checkInterfaceMetricsCMD = &cobra.Command{ @@ -30,10 +20,23 @@ var checkInterfaceMetricsCMD = &cobra.Command{ Short: "Reads all interface metrics and prints them as performance data", Long: "Reads all interface metrics and prints them as performance data.", Run: func(cmd *cobra.Command, args []string) { + printInterfaces, err := cmd.Flags().GetBool("print-interfaces") + if err != nil { + log.Fatal().Err(err).Msg("print-interfaces needs to be a boolean") + } + ifTypeFilter, err := cmd.Flags().GetStringSlice("ifType-filter") + if err != nil { + log.Fatal().Err(err).Msg("ifType-filter needs to be a string") + } + ifNameFilter, err := cmd.Flags().GetStringSlice("ifName-filter") + if err != nil { + log.Fatal().Err(err).Msg("ifName-filter needs to be a string") + } r := request.CheckInterfaceMetricsRequest{ CheckDeviceRequest: getCheckDeviceRequest(args[0]), - PrintInterfaces: viper.GetBool("checkInterfaceMetrics.print-interfaces"), - Filter: viper.GetStringSlice("checkInterfaceMetrics.filter"), + PrintInterfaces: printInterfaces, + IfTypeFilter: ifTypeFilter, + IfNameFilter: ifNameFilter, } handleRequest(&r) }, diff --git a/cmd/check_memory_usage.go b/cmd/check_memory_usage.go index b31e7e4..a69265e 100644 --- a/cmd/check_memory_usage.go +++ b/cmd/check_memory_usage.go @@ -10,7 +10,7 @@ func init() { checkCMD.AddCommand(checkMemoryUsage) checkMemoryUsage.Flags().Float64("warning", 0, "warning threshold for memory usage") - checkMemoryUsage.Flags().Float64("critical", 0, "critical threshold for system voltage") + checkMemoryUsage.Flags().Float64("critical", 0, "critical threshold for memory usage") } var checkMemoryUsage = &cobra.Command{ diff --git a/cmd/read_disk.go b/cmd/read_disk.go new file mode 100644 index 0000000..5fa115c --- /dev/null +++ b/cmd/read_disk.go @@ -0,0 +1,23 @@ +package cmd + +import ( + "github.com/inexio/thola/core/request" + "github.com/spf13/cobra" +) + +func init() { + addDeviceFlags(readDiskCMD) + readCMD.AddCommand(readDiskCMD) +} + +var readDiskCMD = &cobra.Command{ + Use: "disk", + Short: "Read out storage information of a device", + Long: "Read out storage information of a device like types and used space of storages.", + Run: func(cmd *cobra.Command, args []string) { + request := request.ReadDiskRequest{ + ReadRequest: getReadRequest(args[0]), + } + handleRequest(&request) + }, +} diff --git a/cmd/read_server.go b/cmd/read_server.go index bbae418..62b48ec 100644 --- a/cmd/read_server.go +++ b/cmd/read_server.go @@ -13,7 +13,7 @@ func init() { var readServerCMD = &cobra.Command{ Use: "server", Short: "Read out server specific information of a device", - Long: "Read out server specific information of a device like disk usage or process count.", + Long: "Read out server specific information of a device like user or process count.", Run: func(cmd *cobra.Command, args []string) { request := request.ReadServerRequest{ ReadRequest: getReadRequest(args[0]), diff --git a/config/device-classes/generic/linux.yaml b/config/device-classes/generic/linux.yaml index 88ce5f5..eb34170 100644 --- a/config/device-classes/generic/linux.yaml +++ b/config/device-classes/generic/linux.yaml @@ -4,6 +4,7 @@ config: components: cpu: true memory: true + disk: true server: true match: @@ -23,6 +24,12 @@ components: load: - detection: snmpget oid: ".1.3.6.1.4.1.2021.10.1.3.2" + operators: + - type: modify + modify_method: multiply + value: + detection: constant + value: 100 memory: usage: - detection: snmpget @@ -39,13 +46,26 @@ components: value: detection: constant value: 100 + disk: + storages: + detection: snmpwalk + values: + type: + oid: ".1.3.6.1.2.1.25.2.3.1.2" + operators: + - type: modify + modify_method: map + mappings: hrStorageType.yaml + description: + oid: ".1.3.6.1.2.1.25.2.3.1.3" + available: + oid: ".1.3.6.1.2.1.25.2.3.1.5" + used: + oid: ".1.3.6.1.2.1.25.2.3.1.6" server: procs: - detection: snmpget oid: ".1.3.6.1.2.1.25.1.6.0" - disk: - - detection: snmpget - value: ".1.3.6.1.4.1.2021.6.9.0" users: - detection: snmpget oid: "1.3.6.1.2.1.25.1.5.0" \ No newline at end of file diff --git a/config/mappings/hrStorageType.yaml b/config/mappings/hrStorageType.yaml new file mode 100644 index 0000000..1da467e --- /dev/null +++ b/config/mappings/hrStorageType.yaml @@ -0,0 +1,10 @@ +.1.3.6.1.2.1.25.2.1.1: "Other" +.1.3.6.1.2.1.25.2.1.2: "RAM" +.1.3.6.1.2.1.25.2.1.3: "Virtual Memory" +.1.3.6.1.2.1.25.2.1.4: "Fixed Disk" +.1.3.6.1.2.1.25.2.1.5: "Removable Disk" +.1.3.6.1.2.1.25.2.1.6: "Floppy Disk" +.1.3.6.1.2.1.25.2.1.7: "Compact Disk" +.1.3.6.1.2.1.25.2.1.8: "RAM Disk" +.1.3.6.1.2.1.25.2.1.9: "Flash Memory" +.1.3.6.1.2.1.25.2.1.10: "Network Disk" \ No newline at end of file diff --git a/core/communicator/base.go b/core/communicator/base.go index cb3da40..97bdaad 100644 --- a/core/communicator/base.go +++ b/core/communicator/base.go @@ -59,10 +59,6 @@ func (c *baseCommunicator) GetMemoryComponentMemoryUsage(_ context.Context) (flo return 0, tholaerr.NewNotImplementedError("function is not implemented for this communicator") } -func (c *baseCommunicator) GetServerComponentDisk(_ context.Context) (int, error) { - return 0, tholaerr.NewNotImplementedError("function is not implemented for this communicator") -} - func (c *baseCommunicator) GetServerComponentProcs(_ context.Context) (int, error) { return 0, tholaerr.NewNotImplementedError("function is not implemented for this communicator") } @@ -71,6 +67,10 @@ func (c *baseCommunicator) GetServerComponentUsers(_ context.Context) (int, erro return 0, tholaerr.NewNotImplementedError("function is not implemented for this communicator") } +func (c *baseCommunicator) GetDiskComponentStorages(_ context.Context) ([]device.DiskComponentStorage, error) { + return nil, tholaerr.NewNotImplementedError("function is not implemented for this communicator") +} + func (c *baseCommunicator) GetUPSComponentAlarmLowVoltageDisconnect(_ context.Context) (int, error) { return 0, tholaerr.NewNotImplementedError("function is not implemented for this communicator") } diff --git a/core/communicator/device_class.go b/core/communicator/device_class.go index 3cf2e7f..16c304d 100644 --- a/core/communicator/device_class.go +++ b/core/communicator/device_class.go @@ -36,6 +36,7 @@ const ( memoryComponent sbcComponent serverComponent + diskComponent hardwareHealthComponent ) @@ -74,6 +75,7 @@ type deviceClassComponents struct { memory *deviceClassComponentsMemory sbc *deviceClassComponentsSBC server *deviceClassComponentsServer + disk *deviceClassComponentsDisk hardwareHealth *deviceClassComponentsHardwareHealth } @@ -98,7 +100,7 @@ type deviceClassComponentsCPU struct { temperature propertyReader } -// deviceClassComponentsCPU represents the memory components part of a device class. +// deviceClassComponentsMemory represents the memory components part of a device class. type deviceClassComponentsMemory struct { usage propertyReader } @@ -118,11 +120,15 @@ type deviceClassComponentsSBC struct { // deviceClassComponentsServer represents the server components part of a device class. type deviceClassComponentsServer struct { - disk propertyReader procs propertyReader users propertyReader } +// deviceClassComponentsDisk represents the disk component part of a device class. +type deviceClassComponentsDisk struct { + storages groupPropertyReader +} + // deviceClassComponentsHardwareHealth represents the sbc components part of a device class. type deviceClassComponentsHardwareHealth struct { environmentMonitorState propertyReader @@ -158,6 +164,7 @@ type deviceClassInterfaceTypes map[string]deviceClassInterfaceTypeDef type deviceClassInterfaceTypeDef struct { Detection string Values deviceClassOIDs + Type string } // deviceClassSNMP represents the snmp config part of a device class. @@ -193,6 +200,7 @@ type yamlDeviceClassComponents struct { Memory *yamlComponentsMemoryProperties `yaml:"memory"` SBC *yamlComponentsSBCProperties `yaml:"sbc"` Server *yamlComponentsServerProperties `yaml:"server"` + Disk *yamlComponentsDiskProperties `yaml:"disk"` HardwareHealth *yamlComponentsHardwareHealthProperties `yaml:"hardware_health"` } @@ -261,11 +269,15 @@ type yamlComponentsSBCProperties struct { // yamlComponentsServerProperties represents the specific properties of server components of a yaml device class. type yamlComponentsServerProperties struct { - Disk []interface{} `yaml:"disk"` Procs []interface{} `yaml:"procs"` Users []interface{} `yaml:"users"` } +// yamlComponentsDiskProperties represents the specific properties of disk components of a yaml device class. +type yamlComponentsDiskProperties struct { + Storages interface{} `yaml:"storages"` +} + // yamlComponentsHardwareHealthProperties represents the specific properties of hardware health components of a yaml device class. type yamlComponentsHardwareHealthProperties struct { EnvironmentMonitorState []interface{} `yaml:"environment_monitor_state"` @@ -695,6 +707,14 @@ func (y *yamlDeviceClassComponents) convert() (deviceClassComponents, error) { components.server = &server } + if y.Disk != nil { + disk, err := y.Disk.convert() + if err != nil { + return deviceClassComponents{}, errors.Wrap(err, "failed to read yaml disk properties") + } + components.disk = &disk + } + if y.HardwareHealth != nil { hardwareHealth, err := y.HardwareHealth.convert() if err != nil { @@ -731,9 +751,13 @@ func (y *yamlComponentsInterfaces) convert() (deviceClassComponentsInterfaces, e } func (y *yamlComponentsInterfaceTypes) convert() (deviceClassInterfaceTypes, error) { + err := y.validate() + if err != nil { + return deviceClassInterfaceTypes{}, err + } interfaceTypes := make(map[string]deviceClassInterfaceTypeDef) - for k, interfaceType := range *y { + for t, interfaceType := range *y { if interfaceType.Detection == "" { return deviceClassInterfaceTypes{}, errors.New("detection information missing for special interface type") } @@ -742,21 +766,37 @@ func (y *yamlComponentsInterfaceTypes) convert() (deviceClassInterfaceTypes, err if err != nil { return deviceClassInterfaceTypes{}, errors.Wrap(err, "failed to read yaml interfaces types values") } - interfaceTypes[k] = deviceClassInterfaceTypeDef{ + interfaceTypes[t] = deviceClassInterfaceTypeDef{ Detection: interfaceType.Detection, Values: values, + Type: t, } } else { - interfaceTypes[k] = deviceClassInterfaceTypeDef{ - Detection: interfaceType.Detection, - Values: nil, - } + return deviceClassInterfaceTypes{}, fmt.Errorf("values is missing for interface type '%s'", t) } } return interfaceTypes, nil } +func (y *yamlComponentsInterfaceTypes) validate() error { + for t := range *y { + err := validateInterfaceType(t) + if err != nil { + return err + } + } + return nil +} + +func validateInterfaceType(t string) error { + switch t { + case "ether_like", "radio", "dwdm", "optical_transponder", "optical_amplifier", "optical_opm": + return nil + } + return fmt.Errorf("unknown interface type '%s'", t) +} + func (y *yamlComponentsOIDs) convert() (deviceClassOIDs, error) { interfaceOIDs := make(map[string]deviceClassOID) @@ -983,12 +1023,6 @@ func (y *yamlComponentsServerProperties) convert() (deviceClassComponentsServer, var properties deviceClassComponentsServer var err error - if y.Disk != nil { - properties.disk, err = convertYamlProperty(y.Disk, propertyDefault) - if err != nil { - return deviceClassComponentsServer{}, errors.Wrap(err, "failed to convert disk property to property reader") - } - } if y.Procs != nil { properties.procs, err = convertYamlProperty(y.Procs, propertyDefault) if err != nil { @@ -1004,6 +1038,19 @@ func (y *yamlComponentsServerProperties) convert() (deviceClassComponentsServer, return properties, nil } +func (y *yamlComponentsDiskProperties) convert() (deviceClassComponentsDisk, error) { + var properties deviceClassComponentsDisk + var err error + + if y.Storages != nil { + properties.storages, err = interface2GroupPropertyReader(y.Storages) + if err != nil { + return deviceClassComponentsDisk{}, errors.Wrap(err, "failed to convert storages property to group property reader") + } + } + return properties, nil +} + func (y *yamlComponentsSBCProperties) convert() (deviceClassComponentsSBC, error) { var properties deviceClassComponentsSBC var err error @@ -1742,6 +1789,8 @@ func createComponent(component string) (deviceClassComponent, error) { return sbcComponent, nil case "server": return serverComponent, nil + case "disk": + return diskComponent, nil case "hardware_health": return hardwareHealthComponent, nil default: @@ -1766,6 +1815,8 @@ func (d *deviceClassComponent) toString() (string, error) { return "sbc", nil case serverComponent: return "server", nil + case diskComponent: + return "disk", nil case hardwareHealthComponent: return "hardware_health", nil default: diff --git a/core/communicator/device_class_communicator.go b/core/communicator/device_class_communicator.go index c65481c..bac5fef 100644 --- a/core/communicator/device_class_communicator.go +++ b/core/communicator/device_class_communicator.go @@ -110,7 +110,7 @@ func (o *deviceClassCommunicator) GetInterfaces(ctx context.Context) ([]device.I return nil, errors.Wrap(err, "failed to get ifTable") } - for _, typeDef := range o.components.interfaces.Types { + for t, typeDef := range o.components.interfaces.Types { specialInterfacesRaw, err := o.getValuesBySNMPWalk(ctx, typeDef.Values) if err != nil { return nil, err @@ -118,7 +118,7 @@ func (o *deviceClassCommunicator) GetInterfaces(ctx context.Context) ([]device.I for i, networkInterface := range networkInterfaces { if specialValues, ok := specialInterfacesRaw[fmt.Sprint(*networkInterface.IfIndex)]; ok { - err := mapstructure.WeakDecode(specialValues, &networkInterfaces[i]) + err := addSpecialInterfacesValuesToInterface(t, &networkInterfaces[i], specialValues) if err != nil { log.Ctx(ctx).Trace().Err(err).Msg("can't parse oid values into Interface struct") return nil, errors.Wrap(err, "can't parse oid values into Interface struct") @@ -130,6 +130,54 @@ func (o *deviceClassCommunicator) GetInterfaces(ctx context.Context) ([]device.I return networkInterfaces, nil } +func addSpecialInterfacesValuesToInterface(interfaceType string, interf *device.Interface, specialValues interface{}) error { + switch interfaceType { + case "ether_like": + var specialValuesStruct device.EthernetLikeInterface + err := mapstructure.WeakDecode(specialValues, &specialValuesStruct) + if err != nil { + return errors.Wrap(err, "failed to decode special values") + } + interf.EthernetLike = &specialValuesStruct + case "radio": + var specialValuesStruct device.RadioInterface + err := mapstructure.WeakDecode(specialValues, &specialValuesStruct) + if err != nil { + return errors.Wrap(err, "failed to decode special values") + } + interf.Radio = &specialValuesStruct + case "dwdm": + var specialValuesStruct device.DWDMInterface + err := mapstructure.WeakDecode(specialValues, &specialValuesStruct) + if err != nil { + return errors.Wrap(err, "failed to decode special values") + } + interf.DWDM = &specialValuesStruct + case "optical_transponder": + var specialValuesStruct device.OpticalTransponderInterface + err := mapstructure.WeakDecode(specialValues, &specialValuesStruct) + if err != nil { + return errors.Wrap(err, "failed to decode special values") + } + interf.OpticalTransponder = &specialValuesStruct + case "optical_amplifier": + var specialValuesStruct device.OpticalAmplifierInterface + err := mapstructure.WeakDecode(specialValues, &specialValuesStruct) + if err != nil { + return errors.Wrap(err, "failed to decode special values") + } + interf.OpticalAmplifier = &specialValuesStruct + case "optical_opm": + var specialValuesStruct device.OpticalOPMInterface + err := mapstructure.WeakDecode(specialValues, &specialValuesStruct) + if err != nil { + return errors.Wrap(err, "failed to decode special values") + } + interf.OpticalOPM = &specialValuesStruct + } + return nil +} + func (o *deviceClassCommunicator) GetIfTable(ctx context.Context) ([]device.Interface, error) { if o.components.interfaces == nil || o.components.interfaces.IfTable == nil { log.Ctx(ctx).Trace().Str("property", "ifTable").Str("device_class", o.name).Msg("no interface information available") @@ -141,19 +189,7 @@ func (o *deviceClassCommunicator) GetIfTable(ctx context.Context) ([]device.Inte return nil, err } - var networkInterfaces []device.Interface - - for _, oidValue := range networkInterfacesRaw { - var networkInterface device.Interface - err := mapstructure.WeakDecode(oidValue, &networkInterface) - if err != nil { - log.Ctx(ctx).Trace().Err(err).Msg("can't parse oid values into Interface struct") - return nil, errors.Wrap(err, "can't parse oid values into Interface struct") - } - networkInterfaces = append(networkInterfaces, networkInterface) - } - - return networkInterfaces, nil + return convertRawInterfaces(ctx, networkInterfacesRaw) } func (o *deviceClassCommunicator) GetCountInterfaces(ctx context.Context) (int, error) { @@ -252,6 +288,32 @@ func (o *deviceClassCommunicator) GetMemoryComponentMemoryUsage(ctx context.Cont return r, nil } +func (o *deviceClassCommunicator) GetDiskComponentStorages(ctx context.Context) ([]device.DiskComponentStorage, error) { + if o.components.disk == nil || o.components.disk.storages == nil { + log.Ctx(ctx).Trace().Str("groupProperty", "DiskComponentStorages").Str("device_class", o.name).Msg("no detection information available") + return nil, tholaerr.NewNotImplementedError("no detection information available") + } + logger := log.Ctx(ctx).With().Str("groupProperty", "DiskComponentStorages").Logger() + ctx = logger.WithContext(ctx) + res, err := o.components.disk.storages.getProperty(ctx) + if err != nil { + return nil, errors.Wrap(err, "failed to get property") + } + var storages []device.DiskComponentStorage + err = mapstructure.WeakDecode(res, &storages) + if err != nil { + return nil, errors.Wrap(err, "failed to decode property into storage struct") + } + // ignore non-physical storage types + var filtered []device.DiskComponentStorage + for _, storage := range storages { + if *storage.Type != "Other" && *storage.Type != "RAM" && *storage.Type != "Virtual Memory" { + filtered = append(filtered, storage) + } + } + return filtered, nil +} + func (o *deviceClassCommunicator) GetUPSComponentAlarmLowVoltageDisconnect(ctx context.Context) (int, error) { if o.components.ups == nil || o.components.ups.alarmLowVoltageDisconnect == nil { log.Ctx(ctx).Trace().Str("property", "UPSComponentAlarmLowVoltageDisconnect").Str("device_class", o.name).Msg("no detection information available") @@ -632,25 +694,6 @@ func (o *deviceClassCommunicator) GetSBCComponentSystemHealthScore(ctx context.C return result, nil } -func (o *deviceClassCommunicator) GetServerComponentDisk(ctx context.Context) (int, error) { - if o.components.server == nil || o.components.server.disk == nil { - log.Ctx(ctx).Trace().Str("property", "ServerComponentDisk").Str("device_class", o.name).Msg("no detection information available") - return 0, tholaerr.NewNotImplementedError("no detection information available") - } - logger := log.Ctx(ctx).With().Str("property", "ServerComponentDisk").Logger() - ctx = logger.WithContext(ctx) - res, err := o.components.server.disk.getProperty(ctx) - if err != nil { - log.Ctx(ctx).Trace().Err(err).Msg("failed to get property") - return 0, errors.Wrap(err, "failed to get ServerComponentDisk") - } - r, err := res.Int() - if err != nil { - return 0, errors.Wrapf(err, "failed to convert value '%s' to int", res.String()) - } - return r, nil -} - func (o *deviceClassCommunicator) GetServerComponentProcs(ctx context.Context) (int, error) { if o.components.server == nil || o.components.server.procs == nil { log.Ctx(ctx).Trace().Str("property", "ServerComponentProcs").Str("device_class", o.name).Msg("no detection information available") @@ -746,6 +789,22 @@ func (o *deviceClassCommunicator) GetHardwareHealthComponentPowerSupply(ctx cont return powerSupply, nil } +func convertRawInterfaces(ctx context.Context, interfacesRaw []map[string]value.Value) ([]device.Interface, error) { + var networkInterfaces []device.Interface + + for _, oidValue := range interfacesRaw { + var networkInterface device.Interface + err := mapstructure.WeakDecode(oidValue, &networkInterface) + if err != nil { + log.Ctx(ctx).Trace().Err(err).Msg("can't parse oid values into Interface struct") + return nil, errors.Wrap(err, "can't parse oid values into Interface struct") + } + networkInterfaces = append(networkInterfaces, networkInterface) + } + + return networkInterfaces, nil +} + func (o *deviceClassCommunicator) getValuesBySNMPWalk(ctx context.Context, oids deviceClassOIDs) (map[string]map[string]interface{}, error) { networkInterfaces := make(map[string]map[string]interface{}) diff --git a/core/communicator/ekinops.go b/core/communicator/ekinops.go index 6c89daf..1a629a7 100644 --- a/core/communicator/ekinops.go +++ b/core/communicator/ekinops.go @@ -7,6 +7,7 @@ import ( "github.com/inexio/thola/core/network" "github.com/pkg/errors" "github.com/rs/zerolog/log" + "regexp" "strings" ) @@ -15,7 +16,7 @@ type ekinopsCommunicator struct { } func (c *ekinopsCommunicator) GetInterfaces(ctx context.Context) ([]device.Interface, error) { - interfaces, err := c.sub.GetInterfaces(ctx) + interfaces, err := c.GetIfTable(ctx) if err != nil { return nil, err } @@ -68,6 +69,28 @@ func (c *ekinopsCommunicator) GetInterfaces(ctx context.Context) ([]device.Inter return normalizeEkinopsInterfaces(interfaces) } +func (c *ekinopsCommunicator) GetIfTable(ctx context.Context) ([]device.Interface, error) { + if genericDeviceClass.components.interfaces.IfTable == nil { + return nil, errors.New("ifTable information is empty") + } + + reader := *genericDeviceClass.components.interfaces.IfTable.(*snmpGroupPropertyReader) + oids := make(deviceClassOIDs) + for oid, value := range reader.oids { + if ok, err := regexp.MatchString("(ifIndex|ifDescr|ifType|ifName|ifAdminStatus|ifOperStatus|ifPhysAddress)", oid); err == nil && ok { + oids[oid] = value + } + } + reader.oids = oids + + networkInterfacesRaw, err := reader.getProperty(ctx) + if err != nil { + return nil, err + } + + return convertRawInterfaces(ctx, networkInterfacesRaw) +} + func ekinopsInterfacesIfIdentifierToSliceIndex(interfaces []device.Interface) (map[string]int, error) { m := make(map[string]int) for k, interf := range interfaces { @@ -93,20 +116,20 @@ func normalizeEkinopsInterfaces(interfaces []device.Interface) ([]device.Interfa return nil, fmt.Errorf("no IfDescr set for interface ifIndex: `%d`", *interf.IfIndex) } - // change ifType of ports of slots > 1 to "fibreChannel" if ifType equals "other" + // change ifType of ports of slots > 1 to "opticalChannel" if ifType equals "other" slotNumber := strings.Split(*interf.IfName, "/")[2] if !(slotNumber == "0" || slotNumber == "1") { if interf.IfType == nil || *interf.IfType == "other" { - fibreChannel := "fibreChannel" - interf.IfType = &fibreChannel + opticalChannel := "opticalChannel" + interf.IfType = &opticalChannel } } // change ifType of OPM8 ports moduleName := strings.Split(*interf.IfDescr, "/")[3] if moduleName == "PM_OPM8" { - ifType := "ChannelMonitoring" //TODO switch ifType name - interf.IfType = &ifType + subType := "OPM8" + interf.SubType = &subType } // change ifDescr and ifName of every interface diff --git a/core/communicator/ekinops_module_reader.go b/core/communicator/ekinops_module_reader.go index f106629..aa43afb 100644 --- a/core/communicator/ekinops_module_reader.go +++ b/core/communicator/ekinops_module_reader.go @@ -220,36 +220,29 @@ func (m *ekinopsModuleReaderWrapper) readModuleMetrics(ctx context.Context, inte type ekinopsPowerTransformFunc func(float64) float64 func ekinopsPowerTransform10Log10XMinus40(f float64) float64 { - return ekinopsPowerTransformCheckEmpty(10*math.Log10(f) - 40) + return 10*math.Log10(f) - 40 } func ekinopsPowerTransform10Log10XDivideBy10000(f float64) float64 { - return ekinopsPowerTransformCheckEmpty(10 * math.Log10(f/10000)) + return 10 * math.Log10(f/10000) } func ekionopsPowerTransformShiftDivideBy100(f float64) float64 { if f < 32768 { - return ekinopsPowerTransformCheckEmpty(f / 100) + return f / 100 } else { - return ekinopsPowerTransformCheckEmpty((f - 65536) / 100) + return (f - 65536) / 100 } } func ekinopsPowerTransformMinus32768MultiplyByPoint005(f float64) float64 { - return ekinopsPowerTransformCheckEmpty((f - 32768) * 0.005) + return (f - 32768) * 0.005 } func ekinopsPowerTransformOPM8(f float64) float64 { if f < 32768 { - return ekinopsPowerTransformCheckEmpty(f / 256) + return f / 256 } else { - return ekinopsPowerTransformCheckEmpty(f/256 - 256) + return f/256 - 256 } } - -func ekinopsPowerTransformCheckEmpty(f float64) float64 { - if f < -40.4 { - f = -40.4 - } - return f -} diff --git a/core/communicator/ekinops_module_reader_amplifier.go b/core/communicator/ekinops_module_reader_amplifier.go index 70fe063..90fc6e0 100644 --- a/core/communicator/ekinops_module_reader_amplifier.go +++ b/core/communicator/ekinops_module_reader_amplifier.go @@ -47,13 +47,14 @@ func (m *ekinopsModuleReaderAmplifier) readModuleMetrics(ctx context.Context, in return nil, errors.Wrap(err, "failed to get interface identifier mappings") } - for _, opticalAmplifierInterface := range opticalAmplifierInterfaces { + for i, opticalAmplifierInterface := range opticalAmplifierInterfaces { identifier := m.slotIdentifier + "/" + m.moduleName + "/" + *opticalAmplifierInterface.Identifier idx, ok := mappings[identifier] if !ok { return nil, fmt.Errorf("interface for identifier '%s' not found", identifier) } - interfaces[idx].OpticalAmplifierInterface = opticalAmplifierInterface + interfaces[idx].OpticalAmplifier = &opticalAmplifierInterfaces[i] + interfaces[idx].IfAlias = interfaces[idx].OpticalAmplifier.Label } return interfaces, nil } diff --git a/core/communicator/ekinops_module_reader_opm.go b/core/communicator/ekinops_module_reader_opm.go index 186cc77..4496e69 100644 --- a/core/communicator/ekinops_module_reader_opm.go +++ b/core/communicator/ekinops_module_reader_opm.go @@ -35,13 +35,14 @@ func (m *ekinopsModuleReaderOPM8) readModuleMetrics(ctx context.Context, interfa return nil, errors.Wrap(err, "failed to get interface identifier mappings") } - for _, opticalOPMInterface := range opticalOPMInterfaces { + for i, opticalOPMInterface := range opticalOPMInterfaces { identifier := m.slotIdentifier + "/" + m.moduleName + "/" + *opticalOPMInterface.Identifier idx, ok := mappings[identifier] if !ok { return nil, fmt.Errorf("interface for identifier '%s' not found", identifier) } - interfaces[idx].OpticalOPMInterface = opticalOPMInterface + interfaces[idx].OpticalOPM = &opticalOPMInterfaces[i] + interfaces[idx].IfAlias = interfaces[idx].OpticalOPM.Label } return interfaces, nil diff --git a/core/communicator/ekinops_module_reader_transponder.go b/core/communicator/ekinops_module_reader_transponder.go index 2d8189d..3fc9efd 100644 --- a/core/communicator/ekinops_module_reader_transponder.go +++ b/core/communicator/ekinops_module_reader_transponder.go @@ -49,13 +49,14 @@ func (m *ekinopsModuleReaderTransponder) readModuleMetrics(ctx context.Context, return nil, errors.Wrap(err, "failed to get interface identifier mappings") } - for _, opticalTransponderInterface := range OpticalTransponderInterfaces { + for i, opticalTransponderInterface := range OpticalTransponderInterfaces { identifier := m.slotIdentifier + "/" + m.moduleName + "/" + *opticalTransponderInterface.Identifier idx, ok := mappings[identifier] if !ok { return nil, fmt.Errorf("interface for identifier '%s' not found", identifier) } - interfaces[idx].OpticalTransponderInterface = opticalTransponderInterface + interfaces[idx].OpticalTransponder = &OpticalTransponderInterfaces[i] + interfaces[idx].IfAlias = interfaces[idx].OpticalTransponder.Label } return interfaces, nil } diff --git a/core/communicator/network_device_communicator.go b/core/communicator/network_device_communicator.go index 4e06679..0ec246e 100644 --- a/core/communicator/network_device_communicator.go +++ b/core/communicator/network_device_communicator.go @@ -6,6 +6,7 @@ import ( "github.com/inexio/thola/core/tholaerr" "github.com/inexio/thola/core/utility" "github.com/pkg/errors" + "math" ) // NetworkDeviceCommunicator represents a communicator for a device @@ -17,6 +18,7 @@ type NetworkDeviceCommunicator interface { GetUPSComponent(ctx context.Context) (device.UPSComponent, error) GetSBCComponent(ctx context.Context) (device.SBCComponent, error) GetServerComponent(ctx context.Context) (device.ServerComponent, error) + GetDiskComponent(ctx context.Context) (device.DiskComponent, error) GetHardwareHealthComponent(ctx context.Context) (device.HardwareHealthComponent, error) availableCommunicatorFunctions } @@ -35,6 +37,7 @@ type availableCommunicatorFunctions interface { availableUPSCommunicatorFunctions availableSBCCommunicatorFunctions availableServerCommunicatorFunctions + availableDiskCommunicatorFunctions availableHardwareHealthCommunicatorFunctions } @@ -74,11 +77,14 @@ type availableSBCCommunicatorFunctions interface { } type availableServerCommunicatorFunctions interface { - GetServerComponentDisk(ctx context.Context) (int, error) GetServerComponentProcs(ctx context.Context) (int, error) GetServerComponentUsers(ctx context.Context) (int, error) } +type availableDiskCommunicatorFunctions interface { + GetDiskComponentStorages(ctx context.Context) ([]device.DiskComponentStorage, error) +} + type availableHardwareHealthCommunicatorFunctions interface { GetHardwareHealthComponentFans(ctx context.Context) ([]device.HardwareHealthComponentFan, error) GetHardwareHealthComponentPowerSupply(ctx context.Context) ([]device.HardwareHealthComponentPowerSupply, error) @@ -481,16 +487,6 @@ func (c *networkDeviceCommunicator) GetServerComponent(ctx context.Context) (dev empty := true - disk, err := c.head.GetServerComponentDisk(ctx) - if err != nil { - if !tholaerr.IsNotFoundError(err) && !tholaerr.IsNotImplementedError(err) { - return device.ServerComponent{}, errors.Wrap(err, "error occurred during get server component disk") - } - } else { - server.Disk = &disk - empty = false - } - procs, err := c.head.GetServerComponentProcs(ctx) if err != nil { if !tholaerr.IsNotFoundError(err) && !tholaerr.IsNotImplementedError(err) { @@ -518,6 +514,32 @@ func (c *networkDeviceCommunicator) GetServerComponent(ctx context.Context) (dev return server, nil } +func (c *networkDeviceCommunicator) GetDiskComponent(ctx context.Context) (device.DiskComponent, error) { + if !c.deviceClassCommunicator.hasAvailableComponent(diskComponent) { + return device.DiskComponent{}, tholaerr.NewComponentNotFoundError("no disk component available for this device") + } + + var disk device.DiskComponent + + empty := true + + storages, err := c.head.GetDiskComponentStorages(ctx) + if err != nil { + if !tholaerr.IsNotFoundError(err) && !tholaerr.IsNotImplementedError(err) { + return device.DiskComponent{}, errors.Wrap(err, "error occurred during get disk component storages") + } + } else { + disk.Storages = storages + empty = false + } + + if empty { + return device.DiskComponent{}, tholaerr.NewNotFoundError("no disk data available") + } + + return disk, nil +} + func (c *networkDeviceCommunicator) GetHardwareHealthComponent(ctx context.Context) (device.HardwareHealthComponent, error) { if !c.deviceClassCommunicator.hasAvailableComponent(hardwareHealthComponent) { return device.HardwareHealthComponent{}, tholaerr.NewComponentNotFoundError("no sbc component available for this device") @@ -723,20 +745,6 @@ func (c *networkDeviceCommunicator) GetMemoryComponentMemoryUsage(ctx context.Co return res.(float64), err } -func (c *networkDeviceCommunicator) GetServerComponentDisk(ctx context.Context) (int, error) { - if !c.deviceClassCommunicator.hasAvailableComponent(serverComponent) { - return 0, tholaerr.NewComponentNotFoundError("no server component available for this device") - } - fClass := newCommunicatorAdapter(c.deviceClassCommunicator).getServerDisk - fCom := utility.IfThenElse(c.codeCommunicator != nil, adapterFunc(newCommunicatorAdapter(c.codeCommunicator).getServerDisk), emptyAdapterFunc).(adapterFunc) - fSub := utility.IfThenElse(c.sub != nil, adapterFunc(newCommunicatorAdapter(c.sub).getServerDisk), emptyAdapterFunc).(adapterFunc) - res, err := c.executeWithRecursion(fClass, fCom, fSub, ctx) - if err != nil { - return 0, err - } - return res.(int), err -} - func (c *networkDeviceCommunicator) GetServerComponentProcs(ctx context.Context) (int, error) { if !c.deviceClassCommunicator.hasAvailableComponent(serverComponent) { return 0, tholaerr.NewComponentNotFoundError("no server component available for this device") @@ -765,6 +773,17 @@ func (c *networkDeviceCommunicator) GetServerComponentUsers(ctx context.Context) return res.(int), err } +func (c *networkDeviceCommunicator) GetDiskComponentStorages(ctx context.Context) ([]device.DiskComponentStorage, error) { + fClass := newCommunicatorAdapter(c.deviceClassCommunicator).getDiskComponentStorages + fCom := utility.IfThenElse(c.codeCommunicator != nil, adapterFunc(newCommunicatorAdapter(c.codeCommunicator).getDiskComponentStorages), emptyAdapterFunc).(adapterFunc) + fSub := utility.IfThenElse(c.sub != nil, adapterFunc(newCommunicatorAdapter(c.sub).getDiskComponentStorages), emptyAdapterFunc).(adapterFunc) + res, err := c.executeWithRecursion(fClass, fCom, fSub, ctx) + if err != nil { + return nil, err + } + return res.([]device.DiskComponentStorage), err +} + func (c *networkDeviceCommunicator) GetUPSComponentAlarmLowVoltageDisconnect(ctx context.Context) (int, error) { fClass := newCommunicatorAdapter(c.deviceClassCommunicator).getUPSComponentAlarmLowVoltageDisconnect fCom := utility.IfThenElse(c.codeCommunicator != nil, adapterFunc(newCommunicatorAdapter(c.codeCommunicator).getUPSComponentAlarmLowVoltageDisconnect), emptyAdapterFunc).(adapterFunc) @@ -1024,7 +1043,7 @@ func (c *networkDeviceCommunicator) isHead() bool { func normalizeInterfaces(interfaces []device.Interface) []device.Interface { for i, interf := range interfaces { - if interf.IfSpeed != nil && interf.IfHighSpeed != nil && *interf.IfSpeed == 4294967295 { + if interf.IfSpeed != nil && interf.IfHighSpeed != nil && *interf.IfSpeed == math.MaxUint32 { ifSpeed := *interf.IfHighSpeed * 1000000 interfaces[i].IfSpeed = &ifSpeed } diff --git a/core/communicator/network_device_communicator_adapter.go b/core/communicator/network_device_communicator_adapter.go index 694838e..528928a 100644 --- a/core/communicator/network_device_communicator_adapter.go +++ b/core/communicator/network_device_communicator_adapter.go @@ -24,6 +24,7 @@ type communicatorAdapter interface { communicatorAdapterMemory communicatorAdapterSCB communicatorAdapterServer + communicatorAdapterDisk communicatorAdapterHardwareHealth } @@ -37,11 +38,14 @@ type communicatorAdapterMemory interface { } type communicatorAdapterServer interface { - getServerDisk(...interface{}) (interface{}, error) getServerProcs(...interface{}) (interface{}, error) getServerUsers(...interface{}) (interface{}, error) } +type communicatorAdapterDisk interface { + getDiskComponentStorages(...interface{}) (interface{}, error) +} + type communicatorAdapterUPS interface { getUPSComponentAlarmLowVoltageDisconnect(...interface{}) (interface{}, error) getUPSComponentBatteryAmperage(...interface{}) (interface{}, error) @@ -124,10 +128,6 @@ func (a *adapter) getMemoryUsage(i ...interface{}) (interface{}, error) { return a.com.GetMemoryComponentMemoryUsage(i[0].(context.Context)) } -func (a *adapter) getServerDisk(i ...interface{}) (interface{}, error) { - return a.com.GetServerComponentDisk(i[0].(context.Context)) -} - func (a *adapter) getServerProcs(i ...interface{}) (interface{}, error) { return a.com.GetServerComponentProcs(i[0].(context.Context)) } @@ -136,6 +136,10 @@ func (a *adapter) getServerUsers(i ...interface{}) (interface{}, error) { return a.com.GetServerComponentUsers(i[0].(context.Context)) } +func (a *adapter) getDiskComponentStorages(i ...interface{}) (interface{}, error) { + return a.com.GetDiskComponentStorages(i[0].(context.Context)) +} + func (a *adapter) getUPSComponentAlarmLowVoltageDisconnect(i ...interface{}) (interface{}, error) { return a.com.GetUPSComponentAlarmLowVoltageDisconnect(i[0].(context.Context)) } diff --git a/core/device/device.go b/core/device/device.go index a2f464e..8f1eec6 100644 --- a/core/device/device.go +++ b/core/device/device.go @@ -106,12 +106,16 @@ type Interface struct { IfHighSpeed *uint64 `yaml:"ifHighSpeed" json:"ifHighSpeed" xml:"ifHighSpeed"` IfAlias *string `yaml:"ifAlias" json:"ifAlias" xml:"ifAlias"` - EthernetLikeInterface `mapstructure:",squash"` - RadioInterface `mapstructure:",squash"` - DWDMInterface `mapstructure:",squash"` - OpticalTransponderInterface `mapstructure:",squash"` - OpticalAmplifierInterface `mapstructure:",squash"` - OpticalOPMInterface `mapstructure:",squash"` + // SubType is not set per default and cannot be read out through a device class. + // It is used to internally specify a port type, without changing the actual ifType. + SubType *string `yaml:"-" json:"-" xml:"-"` + + EthernetLike *EthernetLikeInterface `yaml:"ethernet_like,omitempty" json:"ethernet_like,omitempty" xml:"ethernet_like,omitempty"` + Radio *RadioInterface `yaml:"radio,omitempty" json:"radio,omitempty" xml:"radio,omitempty" ` + DWDM *DWDMInterface `yaml:"dwdm,omitempty" json:"dwdm,omitempty" xml:"dwdm,omitempty"` + OpticalTransponder *OpticalTransponderInterface `yaml:"optical_transponder,omitempty" json:"optical_transponder,omitempty" xml:"optical_transponder,omitempty"` + OpticalAmplifier *OpticalAmplifierInterface `yaml:"optical_amplifier,omitempty" json:"optical_amplifier,omitempty" xml:"optical_amplifier,omitempty"` + OpticalOPM *OpticalOPMInterface `yaml:"optical_opm,omitempty" json:"optical_opm,omitempty" xml:"optical_opm,omitempty"` } // EthernetLikeInterface represents an ethernet like interface @@ -147,26 +151,26 @@ type DWDMInterface struct { } type OpticalTransponderInterface struct { - Identifier *string `yaml:"identifier_transponder,omitempty" json:"identifier_transponder,omitempty" xml:"identifier_transponder,omitempty" mapstructure:"identifier_transponder"` - Label *string `yaml:"label_transponder,omitempty" json:"label_transponder,omitempty" xml:"label_transponder,omitempty" mapstructure:"label_transponder"` - RXPower *float64 `yaml:"rx_power_transponder,omitempty" json:"rx_power_transponder,omitempty" xml:"rx_power_transponder,omitempty" mapstructure:"rx_power_transponder"` - TXPower *float64 `yaml:"tx_power_transponder,omitempty" json:"tx_power_transponder,omitempty" xml:"tx_power_transponder,omitempty" mapstructure:"tx_power_transponder"` + Identifier *string `yaml:"identifier,omitempty" json:"identifier,omitempty" xml:"identifier,omitempty" mapstructure:"identifier"` + Label *string `yaml:"label,omitempty" json:"label,omitempty" xml:"label,omitempty" mapstructure:"label"` + RXPower *float64 `yaml:"rx_power,omitempty" json:"rx_power,omitempty" xml:"rx_power,omitempty" mapstructure:"rx_power"` + TXPower *float64 `yaml:"tx_power,omitempty" json:"tx_power,omitempty" xml:"tx_power,omitempty" mapstructure:"tx_power"` CorrectedFEC *uint64 `yaml:"corrected_fec,omitempty" json:"corrected_fec,omitempty" xml:"corrected_fec,omitempty" mapstructure:"corrected_fec"` UncorrectedFEC *uint64 `yaml:"uncorrected_fec,omitempty" json:"uncorrected_fec,omitempty" xml:"uncorrected_fec,omitempty" mapstructure:"uncorrected_fec"` } type OpticalAmplifierInterface struct { - Identifier *string `yaml:"identifier_amplifier,omitempty" json:"identifier_amplifier,omitempty" xml:"identifier_amplifier,omitempty" mapstructure:"identifier_amplifier"` - Label *string `yaml:"label_amplifier,omitempty" json:"label_amplifier,omitempty" xml:"label_amplifier,omitempty" mapstructure:"label_amplifier"` - RXPower *float64 `yaml:"rx_power_amplifier,omitempty" json:"rx_power_amplifier,omitempty" xml:"rx_power_amplifier,omitempty" mapstructure:"rx_power_amplifier"` - TXPower *float64 `yaml:"tx_power_amplifier,omitempty" json:"tx_power_amplifier,omitempty" xml:"tx_power_amplifier,omitempty" mapstructure:"tx_power_amplifier"` + Identifier *string `yaml:"identifier,omitempty" json:"identifier,omitempty" xml:"identifier,omitempty" mapstructure:"identifier"` + Label *string `yaml:"label,omitempty" json:"label,omitempty" xml:"label,omitempty" mapstructure:"label"` + RXPower *float64 `yaml:"rx_power,omitempty" json:"rx_power,omitempty" xml:"rx_power,omitempty" mapstructure:"rx_power"` + TXPower *float64 `yaml:"tx_power,omitempty" json:"tx_power,omitempty" xml:"tx_power,omitempty" mapstructure:"tx_power"` Gain *float64 `yaml:"gain,omitempty" json:"gain,omitempty" xml:"gain,omitempty" mapstructure:"gain"` } type OpticalOPMInterface struct { - Identifier *string `yaml:"identifier_opm,omitempty" json:"identifier_opm,omitempty" xml:"identifier_opm,omitempty" mapstructure:"identifier_opm"` - Label *string `yaml:"label_opm,omitempty" json:"label_opm,omitempty" xml:"label_opm,omitempty" mapstructure:"label_opm"` - RXPower *float64 `yaml:"rx_power_opm,omitempty" json:"rx_power_opm,omitempty" xml:"rx_power_opm,omitempty" mapstructure:"rx_power_opm"` + Identifier *string `yaml:"identifier,omitempty" json:"identifier,omitempty" xml:"identifier,omitempty" mapstructure:"identifier"` + Label *string `yaml:"label,omitempty" json:"label,omitempty" xml:"label,omitempty" mapstructure:"label"` + RXPower *float64 `yaml:"rx_power,omitempty" json:"rx_power,omitempty" xml:"rx_power,omitempty" mapstructure:"rx_power"` Channels []OpticalOPMChannel `yaml:"channels,omitempty" json:"channels,omitempty" xml:"channels,omitempty" mapstructure:"channels"` } @@ -192,11 +196,23 @@ type UPSComponent struct { // ServerComponent represents a server component type ServerComponent struct { - Disk *int `yaml:"disk" json:"disk" xml:"disk"` Procs *int `yaml:"procs" json:"procs" xml:"procs"` Users *int `yaml:"users" json:"users" xml:"users"` } +// DiskComponent represents a disk component +type DiskComponent struct { + Storages []DiskComponentStorage `yaml:"storages" json:"storages" xml:"storages"` +} + +// DiskComponentStorage contains information per storage. +type DiskComponentStorage struct { + Type *string `yaml:"type" json:"type" xml:"type"` + Description *string `yaml:"description" json:"description" xml:"description"` + Available *int `yaml:"available" json:"available" xml:"available"` + Used *int `yaml:"used" json:"used" xml:"used"` +} + // SBCComponent represents a SBC component type SBCComponent struct { Agents []SBCComponentAgent `yaml:"agents" json:"agents" xml:"agents"` diff --git a/core/network/snmp_client.go b/core/network/snmp_client.go index d38d39d..5bb752e 100644 --- a/core/network/snmp_client.go +++ b/core/network/snmp_client.go @@ -273,6 +273,9 @@ func (s *SNMPClient) SNMPWalk(ctx context.Context, oid string) ([]SNMPResponse, var err error if s.client.Version != gosnmp.Version1 { response, err = s.client.BulkWalkAll(oid) + if err != nil { + log.Ctx(ctx).Trace().Err(err).Msg("bulk walk failed") + } } if s.client.Version == gosnmp.Version1 || err != nil { response, err = s.client.WalkAll(oid) diff --git a/core/parser/human_readable_parser.go b/core/parser/human_readable_parser.go index c52583d..e0970a0 100644 --- a/core/parser/human_readable_parser.go +++ b/core/parser/human_readable_parser.go @@ -7,89 +7,65 @@ import ( "strings" ) -func toHumanReadable(value reflect.Value, insertion int) []byte { - var outputString []byte - +func toHumanReadable(value reflect.Value, insertion int) string { kind := value.Kind() switch kind { case reflect.Struct: - valueField := "" - if insertion > 0 { - valueField += "\n" - } - for index := 0; index < value.NumField(); index++ { - valueField += strings.Repeat(" ", insertion) - valueField += value.Type().Field(index).Name + ": " - arg := toHumanReadable(value.Field(index), insertion+1) - if arg == nil || string(arg) == "null" { - valueField = "" + output := "\n" + for i := 0; i < value.NumField(); i++ { + fieldValue := toHumanReadable(value.Field(i), insertion+1) + if strings.TrimSpace(fieldValue) == "" { continue } - outputString = append(outputString, valueField...) - outputString = append(outputString, arg...) - fKind := value.Field(index).Type().Kind() - if fKind == reflect.String || fKind == reflect.Int || fKind == reflect.Float64 || fKind == reflect.Ptr { - outputString = append(outputString, "\n"...) - } - valueField = "" + output += strings.Repeat(" ", insertion) + output += value.Type().Field(i).Name + ": " + output += fieldValue + output += "\n" } + return output case reflect.Slice: if value.IsNil() { - fieldValue := "null" - outputString = append(outputString, fieldValue...) - return outputString + return "" } - outputString = append(outputString, "["+strconv.Itoa(value.Len())+"] "...) - for index := 0; index < value.Len(); index++ { - arg := toHumanReadable(value.Index(index), insertion+1) - outputString = append(outputString, arg...) - outputString = append(outputString, " "...) + output := "[" + strconv.Itoa(value.Len()) + "] " + for i := 0; i < value.Len(); i++ { + output += toHumanReadable(value.Index(i), insertion+1) + output += " " } - outputString = append(outputString, "\n"...) + output += "\n" + return output case reflect.Map: - outputString = append(outputString, "("+strconv.Itoa(value.Len())+") \n"...) + output := "(" + strconv.Itoa(value.Len()) + ") \n" for _, key := range value.MapKeys() { - outputString = append(outputString, strings.Repeat(" ", insertion)...) - outputString = append(outputString, key.String()+": "...) - arg := toHumanReadable(value.MapIndex(key), insertion+1) - outputString = append(outputString, arg...) - outputString = append(outputString, "\n"...) + output += strings.Repeat(" ", insertion) + output += key.String() + ": " + output += toHumanReadable(value.MapIndex(key), insertion+1) + output += "\n" } + return output case reflect.String: - fieldValue := value.String() - outputString = append(outputString, fieldValue...) + return value.String() case reflect.Int: - fieldValue := strconv.Itoa(int(value.Int())) - outputString = append(outputString, fieldValue...) + return strconv.Itoa(int(value.Int())) case reflect.Uint: - fieldValue := strconv.Itoa(int(value.Uint())) - outputString = append(outputString, fieldValue...) + return strconv.Itoa(int(value.Uint())) case reflect.Uint64: - fieldValue := strconv.Itoa(int(value.Uint())) - outputString = append(outputString, fieldValue...) + return strconv.Itoa(int(value.Uint())) case reflect.Float64: - fieldValue := strconv.FormatFloat(value.Float(), 'f', -1, 64) - outputString = append(outputString, fieldValue...) + return strconv.FormatFloat(value.Float(), 'f', -1, 64) case reflect.Ptr: if value.IsNil() { - fieldValue := "null" - outputString = append(outputString, fieldValue...) - return outputString + return "" } - arg := toHumanReadable(reflect.Indirect(value), insertion) - outputString = append(outputString, arg...) + return toHumanReadable(reflect.Indirect(value), insertion) case reflect.Interface: - ifValue := reflect.ValueOf(value.Interface()) - outputString = append(outputString, toHumanReadable(ifValue, insertion)...) + return toHumanReadable(reflect.ValueOf(value.Interface()), insertion) default: if !value.IsValid() { - outputString = append(outputString, " "...) - + return "" } else { - outputString = append(outputString, fmt.Sprint(value.Interface())...) + return fmt.Sprint(value.Interface()) } } - - return outputString } diff --git a/core/parser/object_parser.go b/core/parser/object_parser.go index b38076f..784145c 100644 --- a/core/parser/object_parser.go +++ b/core/parser/object_parser.go @@ -75,7 +75,7 @@ func ToHumanReadable(i interface{}) ([]byte, error) { if i == nil { return []byte("null"), nil } - return bytes.TrimSpace(toHumanReadable(reflect.ValueOf(i), 0)), nil + return bytes.TrimSpace([]byte(toHumanReadable(reflect.ValueOf(i), 0))), nil } // ToCheckPluginOutput parses the object to a check plugin format. diff --git a/core/request/check_disk_request.go b/core/request/check_disk_request.go new file mode 100644 index 0000000..93ba9e5 --- /dev/null +++ b/core/request/check_disk_request.go @@ -0,0 +1,20 @@ +package request + +import "context" + +// CheckDiskRequest +// +// CheckDiskRequest is a the request struct for the check disk request. +// +// swagger:model +type CheckDiskRequest struct { + CheckDeviceRequest + DiskThresholds CheckThresholds `json:"diskThresholds" xml:"diskThresholds"` +} + +func (r *CheckDiskRequest) validate(ctx context.Context) error { + if err := r.DiskThresholds.validate(); err != nil { + return err + } + return r.CheckDeviceRequest.validate(ctx) +} diff --git a/core/request/check_disk_request_process.go b/core/request/check_disk_request_process.go new file mode 100644 index 0000000..a9ecb3e --- /dev/null +++ b/core/request/check_disk_request_process.go @@ -0,0 +1,55 @@ +// +build !client + +package request + +import ( + "context" + "fmt" + "github.com/inexio/go-monitoringplugin" + "github.com/inexio/thola/core/value" +) + +func (r *CheckDiskRequest) process(ctx context.Context) (Response, error) { + r.init() + + diskRequest := ReadDiskRequest{ReadRequest{r.BaseRequest}} + response, err := diskRequest.process(ctx) + if r.mon.UpdateStatusOnError(err, monitoringplugin.UNKNOWN, "error while processing read disk request", true) { + return &CheckResponse{r.mon.GetInfo()}, nil + } + disk := response.(*ReadDiskResponse).Disk + + for _, storage := range disk.Storages { + if storage.Type != nil && storage.Description != nil && storage.Available != nil && storage.Used != nil { + p := monitoringplugin.NewPerformanceDataPoint("disk_available", *storage.Available, "KB").SetLabel(*storage.Description) + err = r.mon.AddPerformanceDataPoint(p) + if r.mon.UpdateStatusOnError(err, monitoringplugin.UNKNOWN, "error while adding performance data point", true) { + r.mon.PrintPerformanceData(false) + return &CheckResponse{r.mon.GetInfo()}, nil + } + + p = monitoringplugin.NewPerformanceDataPoint("disk_used", *storage.Used, "KB").SetLabel(*storage.Description) + err = r.mon.AddPerformanceDataPoint(p) + if r.mon.UpdateStatusOnError(err, monitoringplugin.UNKNOWN, "error while adding performance data point", true) { + r.mon.PrintPerformanceData(false) + return &CheckResponse{r.mon.GetInfo()}, nil + } + + // get percentage of free part on the storage + free := fmt.Sprintf("%.2f", 100-float64(*storage.Used)/float64(*storage.Available)*100) + p = monitoringplugin.NewPerformanceDataPoint("disk_free", free, "%").SetLabel(*storage.Description) + err = r.mon.AddPerformanceDataPoint(p) + if r.mon.UpdateStatusOnError(err, monitoringplugin.UNKNOWN, "error while adding performance data point", true) { + r.mon.PrintPerformanceData(false) + return &CheckResponse{r.mon.GetInfo()}, nil + } + val := value.New(free) + if !r.DiskThresholds.isEmpty() { + code := r.DiskThresholds.checkValue(val) + r.mon.UpdateStatusIf(code != monitoringplugin.OK, code, fmt.Sprintf("disk usage at %s is %s%%", *storage.Description, val)) + } + } + } + + return &CheckResponse{r.mon.GetInfo()}, nil +} diff --git a/core/request/check_interface_metrics_request.go b/core/request/check_interface_metrics_request.go index 5f329b2..de6bd2a 100644 --- a/core/request/check_interface_metrics_request.go +++ b/core/request/check_interface_metrics_request.go @@ -7,6 +7,7 @@ package request // swagger:model type CheckInterfaceMetricsRequest struct { PrintInterfaces bool `yaml:"print_interfaces" json:"print_interfaces" xml:"print_interfaces"` - Filter []string `yaml:"filter" json:"filter" xml:"filter"` + IfTypeFilter []string `yaml:"ifType_filter" json:"ifType_filter" xml:"ifType_filter"` + IfNameFilter []string `yaml:"ifName_filter" json:"ifName_filter" xml:"ifName_filter"` CheckDeviceRequest } diff --git a/core/request/check_interface_metrics_request_process.go b/core/request/check_interface_metrics_request_process.go index 5f9c305..0fbd6a4 100644 --- a/core/request/check_interface_metrics_request_process.go +++ b/core/request/check_interface_metrics_request_process.go @@ -9,6 +9,7 @@ import ( "github.com/inexio/thola/core/device" "github.com/inexio/thola/core/parser" "github.com/pkg/errors" + "regexp" ) type interfaceCheckOutput struct { @@ -20,6 +21,8 @@ type interfaceCheckOutput struct { IfPhysAddress string `json:"ifPhysAddress"` IfAdminStatus string `json:"ifAdminStatus"` IfOperStatus string `json:"ifOperStatus"` + + SubType string `json:"subType"` } func (r *CheckInterfaceMetricsRequest) process(ctx context.Context) (Response, error) { @@ -59,6 +62,9 @@ func (r *CheckInterfaceMetricsRequest) process(ctx context.Context) (Response, e if interf.IfOperStatus != nil { x.IfOperStatus = string(*interf.IfOperStatus) } + if interf.SubType != nil { + x.SubType = *interf.SubType + } interfaces = append(interfaces, x) } output, err := parser.Parse(interfaces, "json") @@ -86,21 +92,41 @@ func (r *CheckInterfaceMetricsRequest) getData(ctx context.Context) (*ReadInterf readInterfacesResponse := response.(*ReadInterfacesResponse) - if len(r.Filter) > 0 { - var interfaces []device.Interface - for _, filter := range r.Filter { - for _, interf := range readInterfacesResponse.Interfaces { - if interf.IfType == nil || *interf.IfType != filter { - interfaces = append(interfaces, interf) + var filterIndices []int +out: + for i, interf := range readInterfacesResponse.Interfaces { + for _, filter := range r.IfTypeFilter { + if interf.IfType != nil && *interf.IfType == filter { + filterIndices = append(filterIndices, i) + continue out + } + } + for _, filter := range r.IfNameFilter { + if interf.IfName != nil { + matched, err := regexp.MatchString(filter, *interf.IfName) + if err != nil { + return nil, errors.Wrap(err, "ifName filter regex match failed") + } + if matched { + filterIndices = append(filterIndices, i) + continue out } } } - readInterfacesResponse.Interfaces = interfaces } + readInterfacesResponse.Interfaces = filterInterfaces(readInterfacesResponse.Interfaces, filterIndices, 0) + return readInterfacesResponse, nil } +func filterInterfaces(interfaces []device.Interface, toRemove []int, alreadyRemoved int) []device.Interface { + if len(toRemove) == 0 { + return interfaces + } + return append(interfaces[:toRemove[0]-alreadyRemoved], filterInterfaces(interfaces[toRemove[0]+1-alreadyRemoved:], toRemove[1:], toRemove[0]+1)...) +} + func addCheckInterfacePerformanceData(interfaces []device.Interface, r *monitoringplugin.Response) error { ifDescriptions := make(map[string]*device.Interface) @@ -309,201 +335,217 @@ func addCheckInterfacePerformanceData(interfaces []device.Interface, r *monitori } //ethernet like interface metrics - if i.Dot3StatsAlignmentErrors != nil { - err := r.AddPerformanceDataPoint(monitoringplugin.NewPerformanceDataPoint("error_counter_alignment_errors", *i.Dot3StatsAlignmentErrors, "c").SetLabel(*i.IfDescr)) - if err != nil { - return err + if i.EthernetLike != nil { + if i.EthernetLike.Dot3StatsAlignmentErrors != nil { + err := r.AddPerformanceDataPoint(monitoringplugin.NewPerformanceDataPoint("error_counter_alignment_errors", *i.EthernetLike.Dot3StatsAlignmentErrors, "c").SetLabel(*i.IfDescr)) + if err != nil { + return err + } } - } - if i.Dot3StatsFCSErrors != nil { - err := r.AddPerformanceDataPoint(monitoringplugin.NewPerformanceDataPoint("error_counter_FCSErrors", *i.Dot3StatsFCSErrors, "c").SetLabel(*i.IfDescr)) - if err != nil { - return err + if i.EthernetLike.Dot3StatsFCSErrors != nil { + err := r.AddPerformanceDataPoint(monitoringplugin.NewPerformanceDataPoint("error_counter_FCSErrors", *i.EthernetLike.Dot3StatsFCSErrors, "c").SetLabel(*i.IfDescr)) + if err != nil { + return err + } } - } - if i.Dot3StatsSingleCollisionFrames != nil { - err := r.AddPerformanceDataPoint(monitoringplugin.NewPerformanceDataPoint("error_counter_single_collision_frames", *i.Dot3StatsSingleCollisionFrames, "c").SetLabel(*i.IfDescr)) - if err != nil { - return err + if i.EthernetLike.Dot3StatsSingleCollisionFrames != nil { + err := r.AddPerformanceDataPoint(monitoringplugin.NewPerformanceDataPoint("error_counter_single_collision_frames", *i.EthernetLike.Dot3StatsSingleCollisionFrames, "c").SetLabel(*i.IfDescr)) + if err != nil { + return err + } } - } - if i.Dot3StatsMultipleCollisionFrames != nil { - err := r.AddPerformanceDataPoint(monitoringplugin.NewPerformanceDataPoint("error_counter_multiple_collision_frames", *i.Dot3StatsMultipleCollisionFrames, "c").SetLabel(*i.IfDescr)) - if err != nil { - return err + if i.EthernetLike.Dot3StatsMultipleCollisionFrames != nil { + err := r.AddPerformanceDataPoint(monitoringplugin.NewPerformanceDataPoint("error_counter_multiple_collision_frames", *i.EthernetLike.Dot3StatsMultipleCollisionFrames, "c").SetLabel(*i.IfDescr)) + if err != nil { + return err + } } - } - if i.Dot3StatsSQETestErrors != nil { - err := r.AddPerformanceDataPoint(monitoringplugin.NewPerformanceDataPoint("error_counter_SQETest_errors", *i.Dot3StatsSQETestErrors, "c").SetLabel(*i.IfDescr)) - if err != nil { - return err + if i.EthernetLike.Dot3StatsSQETestErrors != nil { + err := r.AddPerformanceDataPoint(monitoringplugin.NewPerformanceDataPoint("error_counter_SQETest_errors", *i.EthernetLike.Dot3StatsSQETestErrors, "c").SetLabel(*i.IfDescr)) + if err != nil { + return err + } } - } - if i.Dot3StatsDeferredTransmissions != nil { - err := r.AddPerformanceDataPoint(monitoringplugin.NewPerformanceDataPoint("error_counter_deferred_transmissions", *i.Dot3StatsDeferredTransmissions, "c").SetLabel(*i.IfDescr)) - if err != nil { - return err + if i.EthernetLike.Dot3StatsDeferredTransmissions != nil { + err := r.AddPerformanceDataPoint(monitoringplugin.NewPerformanceDataPoint("error_counter_deferred_transmissions", *i.EthernetLike.Dot3StatsDeferredTransmissions, "c").SetLabel(*i.IfDescr)) + if err != nil { + return err + } } - } - if i.Dot3StatsLateCollisions != nil { - err := r.AddPerformanceDataPoint(monitoringplugin.NewPerformanceDataPoint("error_counter_late_collisions", *i.Dot3StatsLateCollisions, "c").SetLabel(*i.IfDescr)) - if err != nil { - return err + if i.EthernetLike.Dot3StatsLateCollisions != nil { + err := r.AddPerformanceDataPoint(monitoringplugin.NewPerformanceDataPoint("error_counter_late_collisions", *i.EthernetLike.Dot3StatsLateCollisions, "c").SetLabel(*i.IfDescr)) + if err != nil { + return err + } } - } - if i.Dot3StatsExcessiveCollisions != nil { - err := r.AddPerformanceDataPoint(monitoringplugin.NewPerformanceDataPoint("error_counter_excessive_collisions", *i.Dot3StatsExcessiveCollisions, "c").SetLabel(*i.IfDescr)) - if err != nil { - return err + if i.EthernetLike.Dot3StatsExcessiveCollisions != nil { + err := r.AddPerformanceDataPoint(monitoringplugin.NewPerformanceDataPoint("error_counter_excessive_collisions", *i.EthernetLike.Dot3StatsExcessiveCollisions, "c").SetLabel(*i.IfDescr)) + if err != nil { + return err + } } - } - if i.Dot3StatsInternalMacTransmitErrors != nil { - err := r.AddPerformanceDataPoint(monitoringplugin.NewPerformanceDataPoint("error_counter_internal_mac_transmit_errors", *i.Dot3StatsInternalMacTransmitErrors, "c").SetLabel(*i.IfDescr)) - if err != nil { - return err + if i.EthernetLike.Dot3StatsInternalMacTransmitErrors != nil { + err := r.AddPerformanceDataPoint(monitoringplugin.NewPerformanceDataPoint("error_counter_internal_mac_transmit_errors", *i.EthernetLike.Dot3StatsInternalMacTransmitErrors, "c").SetLabel(*i.IfDescr)) + if err != nil { + return err + } } - } - if i.Dot3StatsCarrierSenseErrors != nil { - err := r.AddPerformanceDataPoint(monitoringplugin.NewPerformanceDataPoint("error_counter_carrier_sense_errors", *i.Dot3StatsCarrierSenseErrors, "c").SetLabel(*i.IfDescr)) - if err != nil { - return err + if i.EthernetLike.Dot3StatsCarrierSenseErrors != nil { + err := r.AddPerformanceDataPoint(monitoringplugin.NewPerformanceDataPoint("error_counter_carrier_sense_errors", *i.EthernetLike.Dot3StatsCarrierSenseErrors, "c").SetLabel(*i.IfDescr)) + if err != nil { + return err + } } - } - if i.Dot3StatsFrameTooLongs != nil { - err := r.AddPerformanceDataPoint(monitoringplugin.NewPerformanceDataPoint("error_counter_frame_too_longs", *i.Dot3StatsFrameTooLongs, "c").SetLabel(*i.IfDescr)) - if err != nil { - return err + if i.EthernetLike.Dot3StatsFrameTooLongs != nil { + err := r.AddPerformanceDataPoint(monitoringplugin.NewPerformanceDataPoint("error_counter_frame_too_longs", *i.EthernetLike.Dot3StatsFrameTooLongs, "c").SetLabel(*i.IfDescr)) + if err != nil { + return err + } } - } - if i.Dot3StatsInternalMacReceiveErrors != nil { - err := r.AddPerformanceDataPoint(monitoringplugin.NewPerformanceDataPoint("error_counter_internal_mac_receive_errors", *i.Dot3StatsInternalMacReceiveErrors, "c").SetLabel(*i.IfDescr)) - if err != nil { - return err + if i.EthernetLike.Dot3StatsInternalMacReceiveErrors != nil { + err := r.AddPerformanceDataPoint(monitoringplugin.NewPerformanceDataPoint("error_counter_internal_mac_receive_errors", *i.EthernetLike.Dot3StatsInternalMacReceiveErrors, "c").SetLabel(*i.IfDescr)) + if err != nil { + return err + } } - } - if i.Dot3HCStatsFCSErrors != nil { - err := r.AddPerformanceDataPoint(monitoringplugin.NewPerformanceDataPoint("error_counter_dot3HCStatsFCSErrors", *i.Dot3HCStatsFCSErrors, "c").SetLabel(*i.IfDescr)) - if err != nil { - return err + if i.EthernetLike.Dot3HCStatsFCSErrors != nil { + err := r.AddPerformanceDataPoint(monitoringplugin.NewPerformanceDataPoint("error_counter_dot3HCStatsFCSErrors", *i.EthernetLike.Dot3HCStatsFCSErrors, "c").SetLabel(*i.IfDescr)) + if err != nil { + return err + } } - } - if i.EtherStatsCRCAlignErrors != nil { - err := r.AddPerformanceDataPoint(monitoringplugin.NewPerformanceDataPoint("error_counter_CRCAlign_errors", *i.EtherStatsCRCAlignErrors, "c").SetLabel(*i.IfDescr)) - if err != nil { - return err + if i.EthernetLike.EtherStatsCRCAlignErrors != nil { + err := r.AddPerformanceDataPoint(monitoringplugin.NewPerformanceDataPoint("error_counter_CRCAlign_errors", *i.EthernetLike.EtherStatsCRCAlignErrors, "c").SetLabel(*i.IfDescr)) + if err != nil { + return err + } } } //radio interface metrics - if i.LevelOut != nil { - err := r.AddPerformanceDataPoint(monitoringplugin.NewPerformanceDataPoint("interface_level_out", *i.LevelOut, "").SetLabel(*i.IfDescr)) - if err != nil { - return err + if i.Radio != nil { + if i.Radio.LevelOut != nil { + err := r.AddPerformanceDataPoint(monitoringplugin.NewPerformanceDataPoint("interface_level_out", *i.Radio.LevelOut, "").SetLabel(*i.IfDescr)) + if err != nil { + return err + } } - } - if i.LevelIn != nil { - err := r.AddPerformanceDataPoint(monitoringplugin.NewPerformanceDataPoint("interface_level_in", *i.LevelIn, "").SetLabel(*i.IfDescr)) - if err != nil { - return err + if i.Radio.LevelIn != nil { + err := r.AddPerformanceDataPoint(monitoringplugin.NewPerformanceDataPoint("interface_level_in", *i.Radio.LevelIn, "").SetLabel(*i.IfDescr)) + if err != nil { + return err + } } - } - if i.MaxbitrateOut != nil { - err := r.AddPerformanceDataPoint(monitoringplugin.NewPerformanceDataPoint("interface_maxbitrate_out", *i.MaxbitrateOut, "B").SetLabel(*i.IfDescr)) - if err != nil { - return err + if i.Radio.MaxbitrateOut != nil { + err := r.AddPerformanceDataPoint(monitoringplugin.NewPerformanceDataPoint("interface_maxbitrate_out", *i.Radio.MaxbitrateOut, "B").SetLabel(*i.IfDescr)) + if err != nil { + return err + } } - } - if i.MaxbitrateIn != nil { - err := r.AddPerformanceDataPoint(monitoringplugin.NewPerformanceDataPoint("interface_maxbitrate_in", *i.MaxbitrateIn, "B").SetLabel(*i.IfDescr)) - if err != nil { - return err + if i.Radio.MaxbitrateIn != nil { + err := r.AddPerformanceDataPoint(monitoringplugin.NewPerformanceDataPoint("interface_maxbitrate_in", *i.Radio.MaxbitrateIn, "B").SetLabel(*i.IfDescr)) + if err != nil { + return err + } } } //DWDM interface metrics - if i.RXLevel != nil { - err := r.AddPerformanceDataPoint(monitoringplugin.NewPerformanceDataPoint("rx_level", *i.RXLevel, "").SetLabel(*i.IfDescr)) - if err != nil { - return err + if i.DWDM != nil { + if i.DWDM.RXLevel != nil { + err := r.AddPerformanceDataPoint(monitoringplugin.NewPerformanceDataPoint("rx_level", *i.DWDM.RXLevel, "").SetLabel(*i.IfDescr)) + if err != nil { + return err + } } - } - if i.TXLevel != nil { - err := r.AddPerformanceDataPoint(monitoringplugin.NewPerformanceDataPoint("tx_level", *i.TXLevel, "").SetLabel(*i.IfDescr)) - if err != nil { - return err + if i.DWDM.TXLevel != nil { + err := r.AddPerformanceDataPoint(monitoringplugin.NewPerformanceDataPoint("tx_level", *i.DWDM.TXLevel, "").SetLabel(*i.IfDescr)) + if err != nil { + return err + } } } - //OpticalAmplifierInterface - if i.OpticalAmplifierInterface.RXPower != nil { - err := r.AddPerformanceDataPoint(monitoringplugin.NewPerformanceDataPoint("rx_power", *i.OpticalAmplifierInterface.RXPower, "").SetLabel(*i.IfDescr)) - if err != nil { - return err + //OpticalAmplifier + if i.OpticalAmplifier != nil { + if i.OpticalAmplifier.RXPower != nil { + err := r.AddPerformanceDataPoint(monitoringplugin.NewPerformanceDataPoint("rx_power", *i.OpticalAmplifier.RXPower, "").SetLabel(*i.IfDescr)) + if err != nil { + return err + } } - } - if i.OpticalAmplifierInterface.TXPower != nil { - err := r.AddPerformanceDataPoint(monitoringplugin.NewPerformanceDataPoint("tx_power", *i.OpticalAmplifierInterface.TXPower, "").SetLabel(*i.IfDescr)) - if err != nil { - return err + if i.OpticalAmplifier.TXPower != nil { + err := r.AddPerformanceDataPoint(monitoringplugin.NewPerformanceDataPoint("tx_power", *i.OpticalAmplifier.TXPower, "").SetLabel(*i.IfDescr)) + if err != nil { + return err + } } - } - if i.OpticalAmplifierInterface.Gain != nil { - err := r.AddPerformanceDataPoint(monitoringplugin.NewPerformanceDataPoint("gain", *i.OpticalAmplifierInterface.Gain, "").SetLabel(*i.IfDescr)) - if err != nil { - return err + if i.OpticalAmplifier.Gain != nil { + err := r.AddPerformanceDataPoint(monitoringplugin.NewPerformanceDataPoint("gain", *i.OpticalAmplifier.Gain, "").SetLabel(*i.IfDescr)) + if err != nil { + return err + } } } - //OpticalTransponderInterface - if i.OpticalTransponderInterface.RXPower != nil { - err := r.AddPerformanceDataPoint(monitoringplugin.NewPerformanceDataPoint("rx_power", *i.OpticalTransponderInterface.RXPower, "").SetLabel(*i.IfDescr)) - if err != nil { - return err + //OpticalTransponder + if i.OpticalTransponder != nil { + if i.OpticalTransponder.RXPower != nil { + err := r.AddPerformanceDataPoint(monitoringplugin.NewPerformanceDataPoint("rx_power", *i.OpticalTransponder.RXPower, "").SetLabel(*i.IfDescr)) + if err != nil { + return err + } } - } - if i.OpticalTransponderInterface.TXPower != nil { - err := r.AddPerformanceDataPoint(monitoringplugin.NewPerformanceDataPoint("tx_power", *i.OpticalTransponderInterface.TXPower, "").SetLabel(*i.IfDescr)) - if err != nil { - return err + if i.OpticalTransponder.TXPower != nil { + err := r.AddPerformanceDataPoint(monitoringplugin.NewPerformanceDataPoint("tx_power", *i.OpticalTransponder.TXPower, "").SetLabel(*i.IfDescr)) + if err != nil { + return err + } } - } - if i.OpticalTransponderInterface.CorrectedFEC != nil { - err := r.AddPerformanceDataPoint(monitoringplugin.NewPerformanceDataPoint("corrected_fec", *i.OpticalTransponderInterface.CorrectedFEC, "").SetLabel(*i.IfDescr)) - if err != nil { - return err + if i.OpticalTransponder.CorrectedFEC != nil { + err := r.AddPerformanceDataPoint(monitoringplugin.NewPerformanceDataPoint("corrected_fec_counter", *i.OpticalTransponder.CorrectedFEC, "").SetLabel(*i.IfDescr)) + if err != nil { + return err + } } - } - if i.OpticalTransponderInterface.UncorrectedFEC != nil { - err := r.AddPerformanceDataPoint(monitoringplugin.NewPerformanceDataPoint("uncorrected_fec", *i.OpticalTransponderInterface.UncorrectedFEC, "").SetLabel(*i.IfDescr)) - if err != nil { - return err + if i.OpticalTransponder.UncorrectedFEC != nil { + err := r.AddPerformanceDataPoint(monitoringplugin.NewPerformanceDataPoint("uncorrected_fec_counter", *i.OpticalTransponder.UncorrectedFEC, "").SetLabel(*i.IfDescr)) + if err != nil { + return err + } } } - //OpticalOPMInterface - if i.OpticalOPMInterface.RXPower != nil { - for _, channel := range i.OpticalOPMInterface.Channels { - if channel.RXPower != nil { - err := r.AddPerformanceDataPoint(monitoringplugin.NewPerformanceDataPoint("rx_power", *channel.RXPower, "").SetLabel(*i.IfDescr + "_" + channel.Channel)) - if err != nil { - return err + //OpticalOPM + if i.OpticalOPM != nil { + if i.OpticalOPM.RXPower != nil { + err := r.AddPerformanceDataPoint(monitoringplugin.NewPerformanceDataPoint("rx_power", *i.OpticalOPM.RXPower, "").SetLabel(*i.IfDescr)) + if err != nil { + return err + } + for _, channel := range i.OpticalOPM.Channels { + if channel.RXPower != nil { + err := r.AddPerformanceDataPoint(monitoringplugin.NewPerformanceDataPoint("rx_power", *channel.RXPower, "").SetLabel(*i.IfDescr + "_" + channel.Channel)) + if err != nil { + return err + } } } } diff --git a/core/request/check_server_request_process.go b/core/request/check_server_request_process.go index a5104b6..3a2b466 100644 --- a/core/request/check_server_request_process.go +++ b/core/request/check_server_request_process.go @@ -17,13 +17,6 @@ func (r *CheckServerRequest) process(ctx context.Context) (Response, error) { } server := response.(*ReadServerResponse) - if server.Server.Disk != nil { - err = r.mon.AddPerformanceDataPoint(monitoringplugin.NewPerformanceDataPoint("disk_usage", *server.Server.Disk, "")) - if r.mon.UpdateStatusOnError(err, monitoringplugin.UNKNOWN, "error while adding performance data point", true) { - r.mon.PrintPerformanceData(false) - return &CheckResponse{r.mon.GetInfo()}, nil - } - } if server.Server.Procs != nil { err = r.mon.AddPerformanceDataPoint(monitoringplugin.NewPerformanceDataPoint("procs", *server.Server.Procs, "")) if r.mon.UpdateStatusOnError(err, monitoringplugin.UNKNOWN, "error while adding performance data point", true) { diff --git a/core/request/client_process.go b/core/request/client_process.go index 8a641b2..38ced9f 100644 --- a/core/request/client_process.go +++ b/core/request/client_process.go @@ -112,6 +112,10 @@ func (r *CheckServerRequest) process(ctx context.Context) (Response, error) { return checkProcess(ctx, r, "check/server"), nil } +func (r *CheckDiskRequest) process(ctx context.Context) (Response, error) { + return checkProcess(ctx, r, "check/disk"), nil +} + func (r *CheckCPULoadRequest) process(ctx context.Context) (Response, error) { return checkProcess(ctx, r, "check/cpu-load"), nil } @@ -218,6 +222,20 @@ func (r *ReadServerRequest) process(ctx context.Context) (Response, error) { return &res, nil } +func (r *ReadDiskRequest) process(ctx context.Context) (Response, error) { + apiFormat := viper.GetString("target-api-format") + responseBody, err := sendToAPI(ctx, r, "read/disk", apiFormat) + if err != nil { + return nil, err + } + var res ReadDiskResponse + err = parser.ToStruct(responseBody, apiFormat, &res) + if err != nil { + return nil, errors.Wrap(err, "failed to parse api response body to thola response") + } + return &res, nil +} + func (r *ReadHardwareHealthRequest) process(ctx context.Context) (Response, error) { apiFormat := viper.GetString("target-api-format") responseBody, err := sendToAPI(ctx, r, "read/hardware-health", apiFormat) diff --git a/core/request/read_disk_request.go b/core/request/read_disk_request.go new file mode 100644 index 0000000..9ace7da --- /dev/null +++ b/core/request/read_disk_request.go @@ -0,0 +1,22 @@ +package request + +import "github.com/inexio/thola/core/device" + +// ReadDiskRequest +// +// ReadDiskRequest is a the request struct for the read disk request. +// +// swagger:model +type ReadDiskRequest struct { + ReadRequest +} + +// ReadDiskResponse +// +// ReadDiskResponse is a the response struct for the read disk response. +// +// swagger:model +type ReadDiskResponse struct { + Disk device.DiskComponent `yaml:"disk" json:"disk" xml:"disk"` + ReadResponse +} diff --git a/core/request/read_disk_request_process.go b/core/request/read_disk_request_process.go new file mode 100644 index 0000000..f7d300f --- /dev/null +++ b/core/request/read_disk_request_process.go @@ -0,0 +1,24 @@ +// +build !client + +package request + +import ( + "context" + "github.com/pkg/errors" +) + +func (r *ReadDiskRequest) process(ctx context.Context) (Response, error) { + com, err := GetCommunicator(ctx, r.BaseRequest) + if err != nil { + return nil, errors.Wrap(err, "failed to get communicator") + } + + result, err := com.GetDiskComponent(ctx) + if err != nil { + return nil, errors.Wrap(err, "can't get disk components") + } + + return &ReadDiskResponse{ + Disk: result, + }, nil +} diff --git a/core/request/request_test.go b/core/request/request_test.go index c52a6ca..88f7b58 100644 --- a/core/request/request_test.go +++ b/core/request/request_test.go @@ -1,6 +1,7 @@ package request import ( + "github.com/inexio/thola/core/device" "github.com/stretchr/testify/assert" "testing" ) @@ -50,3 +51,18 @@ func TestCheckThresholds(t *testing.T) { func getPointer(f float64) *float64 { return &f } + +func TestRemoveInterfaces(t *testing.T) { + for i := 1; i < 1000; i++ { + var interfaces []device.Interface + var toRemove []int + for j := 0; j < i; j++ { + interfaces = append(interfaces, device.Interface{}) + if j%2 == 0 { + toRemove = append(toRemove, j) + } + } + interfaces = filterInterfaces(interfaces, toRemove, 0) + assert.Equal(t, i/2, len(interfaces), "expected removed length and actual length differs") + } +} diff --git a/test/testdata/devices/arista_eos/device_1/test_data.json b/test/testdata/devices/arista_eos/device_1/test_data.json index f7ec60b..0c966b8 100644 --- a/test/testdata/devices/arista_eos/device_1/test_data.json +++ b/test/testdata/devices/arista_eos/device_1/test_data.json @@ -18,17 +18,7 @@ "status_code": 0, "performance_data": [ { - "metric": "packet_counter_broadcast_out", - "label": "Ethernet2", - "value": 0, - "unit": "c", - "warn": null, - "crit": null, - "min": null, - "max": null - }, - { - "metric": "error_counter_deferred_transmissions", + "metric": "error_counter_alignment_errors", "label": "Ethernet2", "value": 0, "unit": "c", @@ -38,7 +28,7 @@ "max": null }, { - "metric": "error_counter_carrier_sense_errors", + "metric": "packet_counter_discard_out", "label": "Ethernet3", "value": 0, "unit": "c", @@ -48,8 +38,8 @@ "max": null }, { - "metric": "error_counter_internal_mac_receive_errors", - "label": "Ethernet3", + "metric": "packet_counter_broadcast_in", + "label": "Management1", "value": 0, "unit": "c", "warn": null, @@ -68,19 +58,19 @@ "max": null }, { - "metric": "interface_oper_status", + "metric": "interface_maxspeed_in", "label": "Management1", - "value": 1, - "unit": "", + "value": 1000000000, + "unit": "B", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "error_counter_late_collisions", - "label": "Management1", - "value": 0, + "metric": "packet_counter_multicast_out", + "label": "Ethernet2", + "value": 237534, "unit": "c", "warn": null, "crit": null, @@ -89,7 +79,7 @@ }, { "metric": "packet_counter_multicast_out", - "label": "Ethernet2", + "label": "Ethernet3", "value": 237534, "unit": "c", "warn": null, @@ -98,37 +88,37 @@ "max": null }, { - "metric": "traffic_counter_in", - "label": "Ethernet3", + "metric": "error_counter_internal_mac_receive_errors", + "label": "Management1", "value": 0, - "unit": "B", + "unit": "c", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "error_counter_internal_mac_transmit_errors", - "label": "Management1", + "metric": "interface_maxspeed_out", + "label": "Ethernet1", "value": 0, - "unit": "c", + "unit": "B", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "error_counter_FCSErrors", - "label": "Ethernet3", + "metric": "interface_maxspeed_in", + "label": "Ethernet2", "value": 0, - "unit": "c", + "unit": "B", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "packet_counter_unicast_in", + "metric": "packet_counter_multicast_out", "label": "Management1", "value": 0, "unit": "c", @@ -138,10 +128,20 @@ "max": null }, { - "metric": "error_counter_carrier_sense_errors", + "metric": "interface_admin_status", "label": "Ethernet2", + "value": 1, + "unit": "", + "warn": null, + "crit": null, + "min": null, + "max": null + }, + { + "metric": "traffic_counter_in", + "label": "Ethernet1", "value": 0, - "unit": "c", + "unit": "B", "warn": null, "crit": null, "min": null, @@ -149,7 +149,7 @@ }, { "metric": "error_counter_out", - "label": "Ethernet3", + "label": "Ethernet2", "value": 0, "unit": "c", "warn": null, @@ -158,18 +158,18 @@ "max": null }, { - "metric": "traffic_counter_out", - "label": "Ethernet3", - "value": 30003997, - "unit": "B", + "metric": "error_counter_late_collisions", + "label": "Ethernet2", + "value": 0, + "unit": "c", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "packet_counter_multicast_in", - "label": "Ethernet3", + "metric": "error_counter_excessive_collisions", + "label": "Ethernet2", "value": 0, "unit": "c", "warn": null, @@ -178,18 +178,18 @@ "max": null }, { - "metric": "error_counter_multiple_collision_frames", - "label": "Management1", + "metric": "traffic_counter_in", + "label": "Ethernet3", "value": 0, - "unit": "c", + "unit": "B", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "error_counter_carrier_sense_errors", - "label": "Ethernet1", + "metric": "error_counter_deferred_transmissions", + "label": "Ethernet3", "value": 0, "unit": "c", "warn": null, @@ -198,10 +198,10 @@ "max": null }, { - "metric": "interface_admin_status", - "label": "Ethernet2", - "value": 1, - "unit": "", + "metric": "packet_counter_discard_in", + "label": "Ethernet1", + "value": 0, + "unit": "c", "warn": null, "crit": null, "min": null, @@ -218,7 +218,7 @@ "max": null }, { - "metric": "error_counter_internal_mac_transmit_errors", + "metric": "error_counter_out", "label": "Ethernet3", "value": 0, "unit": "c", @@ -228,7 +228,7 @@ "max": null }, { - "metric": "packet_counter_broadcast_out", + "metric": "error_counter_out", "label": "Management1", "value": 0, "unit": "c", @@ -238,10 +238,10 @@ "max": null }, { - "metric": "traffic_counter_out", + "metric": "error_counter_carrier_sense_errors", "label": "Ethernet1", - "value": 30003997, - "unit": "B", + "value": 0, + "unit": "c", "warn": null, "crit": null, "min": null, @@ -249,7 +249,7 @@ }, { "metric": "packet_counter_unicast_in", - "label": "Ethernet3", + "label": "Management1", "value": 0, "unit": "c", "warn": null, @@ -258,9 +258,9 @@ "max": null }, { - "metric": "packet_counter_multicast_out", - "label": "Ethernet3", - "value": 237534, + "metric": "error_counter_single_collision_frames", + "label": "Management1", + "value": 0, "unit": "c", "warn": null, "crit": null, @@ -269,7 +269,7 @@ }, { "metric": "packet_counter_discard_in", - "label": "Management1", + "label": "Ethernet2", "value": 0, "unit": "c", "warn": null, @@ -278,7 +278,17 @@ "max": null }, { - "metric": "error_counter_frame_too_longs", + "metric": "interface_admin_status", + "label": "Ethernet3", + "value": 1, + "unit": "", + "warn": null, + "crit": null, + "min": null, + "max": null + }, + { + "metric": "error_counter_dot3HCStatsFCSErrors", "label": "Management1", "value": 0, "unit": "c", @@ -288,7 +298,7 @@ "max": null }, { - "metric": "packet_counter_unicast_in", + "metric": "error_counter_SQETest_errors", "label": "Ethernet1", "value": 0, "unit": "c", @@ -298,18 +308,18 @@ "max": null }, { - "metric": "packet_counter_multicast_out", - "label": "Ethernet1", - "value": 237534, - "unit": "c", + "metric": "interface_maxspeed_in", + "label": "Ethernet3", + "value": 0, + "unit": "B", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "error_counter_FCSErrors", - "label": "Ethernet2", + "metric": "error_counter_internal_mac_transmit_errors", + "label": "Management1", "value": 0, "unit": "c", "warn": null, @@ -318,8 +328,8 @@ "max": null }, { - "metric": "error_counter_in", - "label": "Ethernet3", + "metric": "packet_counter_unicast_in", + "label": "Ethernet2", "value": 0, "unit": "c", "warn": null, @@ -328,18 +338,18 @@ "max": null }, { - "metric": "traffic_counter_in", + "metric": "error_counter_FCSErrors", "label": "Ethernet2", "value": 0, - "unit": "B", + "unit": "c", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "interface_maxspeed_in", - "label": "Ethernet3", + "metric": "traffic_counter_out", + "label": "Management1", "value": 0, "unit": "B", "warn": null, @@ -348,9 +358,9 @@ "max": null }, { - "metric": "error_counter_alignment_errors", + "metric": "packet_counter_unicast_out", "label": "Management1", - "value": 0, + "value": 156523, "unit": "c", "warn": null, "crit": null, @@ -358,8 +368,8 @@ "max": null }, { - "metric": "packet_counter_broadcast_in", - "label": "Ethernet3", + "metric": "error_counter_carrier_sense_errors", + "label": "Management1", "value": 0, "unit": "c", "warn": null, @@ -368,8 +378,8 @@ "max": null }, { - "metric": "packet_counter_broadcast_out", - "label": "Ethernet1", + "metric": "error_counter_frame_too_longs", + "label": "Management1", "value": 0, "unit": "c", "warn": null, @@ -378,17 +388,17 @@ "max": null }, { - "metric": "error_counter_internal_mac_receive_errors", + "metric": "traffic_counter_out", "label": "Ethernet1", - "value": 0, - "unit": "c", + "value": 30003997, + "unit": "B", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "error_counter_excessive_collisions", + "metric": "packet_counter_broadcast_out", "label": "Ethernet2", "value": 0, "unit": "c", @@ -398,18 +408,18 @@ "max": null }, { - "metric": "interface_admin_status", + "metric": "error_counter_excessive_collisions", "label": "Ethernet3", - "value": 1, - "unit": "", + "value": 0, + "unit": "c", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "error_counter_in", - "label": "Ethernet2", + "metric": "error_counter_internal_mac_transmit_errors", + "label": "Ethernet1", "value": 0, "unit": "c", "warn": null, @@ -418,18 +428,18 @@ "max": null }, { - "metric": "error_counter_CRCAlign_errors", - "label": "Ethernet2", + "metric": "interface_maxspeed_in", + "label": "Ethernet1", "value": 0, - "unit": "c", + "unit": "B", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "packet_counter_broadcast_out", - "label": "Ethernet3", + "metric": "error_counter_single_collision_frames", + "label": "Ethernet2", "value": 0, "unit": "c", "warn": null, @@ -438,7 +448,7 @@ "max": null }, { - "metric": "error_counter_SQETest_errors", + "metric": "error_counter_alignment_errors", "label": "Ethernet3", "value": 0, "unit": "c", @@ -448,8 +458,8 @@ "max": null }, { - "metric": "error_counter_CRCAlign_errors", - "label": "Ethernet3", + "metric": "packet_counter_unicast_out", + "label": "Ethernet1", "value": 0, "unit": "c", "warn": null, @@ -458,8 +468,8 @@ "max": null }, { - "metric": "error_counter_excessive_collisions", - "label": "Management1", + "metric": "error_counter_carrier_sense_errors", + "label": "Ethernet2", "value": 0, "unit": "c", "warn": null, @@ -468,8 +478,8 @@ "max": null }, { - "metric": "traffic_counter_out", - "label": "Management1", + "metric": "interface_maxspeed_out", + "label": "Ethernet2", "value": 0, "unit": "B", "warn": null, @@ -478,8 +488,8 @@ "max": null }, { - "metric": "error_counter_frame_too_longs", - "label": "Ethernet1", + "metric": "error_counter_in", + "label": "Ethernet2", "value": 0, "unit": "c", "warn": null, @@ -488,8 +498,8 @@ "max": null }, { - "metric": "error_counter_out", - "label": "Ethernet2", + "metric": "error_counter_multiple_collision_frames", + "label": "Ethernet3", "value": 0, "unit": "c", "warn": null, @@ -498,8 +508,8 @@ "max": null }, { - "metric": "packet_counter_discard_out", - "label": "Ethernet2", + "metric": "error_counter_internal_mac_transmit_errors", + "label": "Ethernet3", "value": 0, "unit": "c", "warn": null, @@ -508,7 +518,7 @@ "max": null }, { - "metric": "error_counter_frame_too_longs", + "metric": "error_counter_internal_mac_receive_errors", "label": "Ethernet3", "value": 0, "unit": "c", @@ -518,8 +528,8 @@ "max": null }, { - "metric": "error_counter_out", - "label": "Ethernet1", + "metric": "error_counter_FCSErrors", + "label": "Management1", "value": 0, "unit": "c", "warn": null, @@ -528,8 +538,8 @@ "max": null }, { - "metric": "packet_counter_unicast_out", - "label": "Ethernet3", + "metric": "error_counter_multiple_collision_frames", + "label": "Ethernet1", "value": 0, "unit": "c", "warn": null, @@ -538,7 +548,7 @@ "max": null }, { - "metric": "packet_counter_unicast_out", + "metric": "error_counter_CRCAlign_errors", "label": "Ethernet1", "value": 0, "unit": "c", @@ -548,38 +558,38 @@ "max": null }, { - "metric": "interface_maxspeed_in", - "label": "Ethernet1", + "metric": "packet_counter_discard_in", + "label": "Ethernet3", "value": 0, - "unit": "B", + "unit": "c", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "packet_counter_broadcast_in", - "label": "Ethernet2", - "value": 0, - "unit": "c", + "metric": "interface_oper_status", + "label": "Management1", + "value": 1, + "unit": "", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "error_counter_dot3HCStatsFCSErrors", - "label": "Ethernet3", - "value": 0, - "unit": "c", + "metric": "interface_maxspeed_out", + "label": "Management1", + "value": 1000000000, + "unit": "B", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "packet_counter_discard_out", - "label": "Management1", + "metric": "packet_counter_unicast_in", + "label": "Ethernet1", "value": 0, "unit": "c", "warn": null, @@ -588,8 +598,8 @@ "max": null }, { - "metric": "packet_counter_discard_in", - "label": "Ethernet1", + "metric": "error_counter_CRCAlign_errors", + "label": "Ethernet3", "value": 0, "unit": "c", "warn": null, @@ -598,7 +608,7 @@ "max": null }, { - "metric": "interface_admin_status", + "metric": "interface_oper_status", "label": "Ethernet1", "value": 1, "unit": "", @@ -608,8 +618,8 @@ "max": null }, { - "metric": "packet_counter_discard_in", - "label": "Ethernet2", + "metric": "error_counter_frame_too_longs", + "label": "Ethernet1", "value": 0, "unit": "c", "warn": null, @@ -618,7 +628,7 @@ "max": null }, { - "metric": "error_counter_frame_too_longs", + "metric": "error_counter_deferred_transmissions", "label": "Ethernet2", "value": 0, "unit": "c", @@ -628,38 +638,28 @@ "max": null }, { - "metric": "interface_oper_status", - "label": "Ethernet1", - "value": 1, - "unit": "", - "warn": null, - "crit": null, - "min": null, - "max": null - }, - { - "metric": "interface_maxspeed_out", + "metric": "error_counter_CRCAlign_errors", "label": "Ethernet2", "value": 0, - "unit": "B", + "unit": "c", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "interface_maxspeed_in", + "metric": "error_counter_alignment_errors", "label": "Management1", - "value": 1000000000, - "unit": "B", + "value": 0, + "unit": "c", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "error_counter_carrier_sense_errors", - "label": "Management1", + "metric": "error_counter_in", + "label": "Ethernet1", "value": 0, "unit": "c", "warn": null, @@ -668,20 +668,20 @@ "max": null }, { - "metric": "interface_oper_status", + "metric": "packet_counter_discard_out", "label": "Ethernet2", - "value": 1, - "unit": "", + "value": 0, + "unit": "c", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "interface_maxspeed_in", + "metric": "interface_oper_status", "label": "Ethernet2", - "value": 0, - "unit": "B", + "value": 1, + "unit": "", "warn": null, "crit": null, "min": null, @@ -689,7 +689,7 @@ }, { "metric": "error_counter_in", - "label": "Management1", + "label": "Ethernet3", "value": 0, "unit": "c", "warn": null, @@ -698,18 +698,18 @@ "max": null }, { - "metric": "error_counter_internal_mac_receive_errors", - "label": "Management1", - "value": 0, - "unit": "c", + "metric": "traffic_counter_out", + "label": "Ethernet3", + "value": 30003997, + "unit": "B", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "error_counter_multiple_collision_frames", - "label": "Ethernet2", + "metric": "packet_counter_broadcast_in", + "label": "Ethernet1", "value": 0, "unit": "c", "warn": null, @@ -718,8 +718,8 @@ "max": null }, { - "metric": "interface_oper_status", - "label": "Ethernet3", + "metric": "interface_admin_status", + "label": "Management1", "value": 1, "unit": "", "warn": null, @@ -728,28 +728,28 @@ "max": null }, { - "metric": "interface_maxspeed_out", - "label": "Ethernet3", + "metric": "packet_counter_multicast_in", + "label": "Management1", "value": 0, - "unit": "B", + "unit": "c", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "interface_maxspeed_out", - "label": "Ethernet1", + "metric": "error_counter_excessive_collisions", + "label": "Management1", "value": 0, - "unit": "B", + "unit": "c", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "error_counter_alignment_errors", - "label": "Ethernet1", + "metric": "error_counter_in", + "label": "Management1", "value": 0, "unit": "c", "warn": null, @@ -758,7 +758,7 @@ "max": null }, { - "metric": "error_counter_single_collision_frames", + "metric": "error_counter_FCSErrors", "label": "Ethernet1", "value": 0, "unit": "c", @@ -768,28 +768,28 @@ "max": null }, { - "metric": "packet_counter_multicast_in", - "label": "Ethernet2", + "metric": "interface_maxspeed_out", + "label": "Ethernet3", "value": 0, - "unit": "c", + "unit": "B", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "interface_maxspeed_out", - "label": "Management1", - "value": 1000000000, - "unit": "B", + "metric": "error_counter_frame_too_longs", + "label": "Ethernet3", + "value": 0, + "unit": "c", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "error_counter_single_collision_frames", - "label": "Ethernet2", + "metric": "error_counter_alignment_errors", + "label": "Ethernet1", "value": 0, "unit": "c", "warn": null, @@ -798,7 +798,7 @@ "max": null }, { - "metric": "packet_counter_discard_out", + "metric": "packet_counter_broadcast_out", "label": "Ethernet3", "value": 0, "unit": "c", @@ -808,8 +808,8 @@ "max": null }, { - "metric": "error_counter_excessive_collisions", - "label": "Ethernet3", + "metric": "error_counter_late_collisions", + "label": "Management1", "value": 0, "unit": "c", "warn": null, @@ -818,8 +818,8 @@ "max": null }, { - "metric": "packet_counter_broadcast_in", - "label": "Management1", + "metric": "error_counter_out", + "label": "Ethernet1", "value": 0, "unit": "c", "warn": null, @@ -828,7 +828,7 @@ "max": null }, { - "metric": "error_counter_internal_mac_transmit_errors", + "metric": "error_counter_excessive_collisions", "label": "Ethernet1", "value": 0, "unit": "c", @@ -838,28 +838,28 @@ "max": null }, { - "metric": "traffic_counter_in", - "label": "Ethernet1", + "metric": "packet_counter_broadcast_in", + "label": "Ethernet2", "value": 0, - "unit": "B", + "unit": "c", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "packet_counter_unicast_out", + "metric": "traffic_counter_in", "label": "Management1", - "value": 156523, - "unit": "c", + "value": 0, + "unit": "B", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "error_counter_FCSErrors", - "label": "Management1", + "metric": "packet_counter_discard_out", + "label": "Ethernet1", "value": 0, "unit": "c", "warn": null, @@ -868,8 +868,8 @@ "max": null }, { - "metric": "packet_counter_discard_in", - "label": "Ethernet3", + "metric": "packet_counter_multicast_in", + "label": "Ethernet2", "value": 0, "unit": "c", "warn": null, @@ -878,8 +878,8 @@ "max": null }, { - "metric": "error_counter_alignment_errors", - "label": "Ethernet3", + "metric": "error_counter_SQETest_errors", + "label": "Ethernet2", "value": 0, "unit": "c", "warn": null, @@ -888,7 +888,7 @@ "max": null }, { - "metric": "error_counter_deferred_transmissions", + "metric": "error_counter_dot3HCStatsFCSErrors", "label": "Ethernet3", "value": 0, "unit": "c", @@ -898,8 +898,8 @@ "max": null }, { - "metric": "error_counter_SQETest_errors", - "label": "Management1", + "metric": "error_counter_internal_mac_receive_errors", + "label": "Ethernet1", "value": 0, "unit": "c", "warn": null, @@ -908,8 +908,8 @@ "max": null }, { - "metric": "packet_counter_multicast_out", - "label": "Management1", + "metric": "error_counter_FCSErrors", + "label": "Ethernet3", "value": 0, "unit": "c", "warn": null, @@ -918,8 +918,8 @@ "max": null }, { - "metric": "error_counter_SQETest_errors", - "label": "Ethernet1", + "metric": "error_counter_single_collision_frames", + "label": "Ethernet3", "value": 0, "unit": "c", "warn": null, @@ -928,8 +928,8 @@ "max": null }, { - "metric": "packet_counter_unicast_in", - "label": "Ethernet2", + "metric": "packet_counter_multicast_in", + "label": "Ethernet3", "value": 0, "unit": "c", "warn": null, @@ -938,7 +938,7 @@ "max": null }, { - "metric": "error_counter_internal_mac_receive_errors", + "metric": "error_counter_frame_too_longs", "label": "Ethernet2", "value": 0, "unit": "c", @@ -948,8 +948,8 @@ "max": null }, { - "metric": "error_counter_out", - "label": "Management1", + "metric": "error_counter_carrier_sense_errors", + "label": "Ethernet3", "value": 0, "unit": "c", "warn": null, @@ -958,17 +958,17 @@ "max": null }, { - "metric": "traffic_counter_in", + "metric": "packet_counter_discard_in", "label": "Management1", "value": 0, - "unit": "B", + "unit": "c", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "error_counter_deferred_transmissions", + "metric": "error_counter_dot3HCStatsFCSErrors", "label": "Ethernet1", "value": 0, "unit": "c", @@ -978,9 +978,9 @@ "max": null }, { - "metric": "traffic_counter_out", + "metric": "traffic_counter_in", "label": "Ethernet2", - "value": 30003997, + "value": 0, "unit": "B", "warn": null, "crit": null, @@ -988,18 +988,18 @@ "max": null }, { - "metric": "error_counter_late_collisions", - "label": "Ethernet2", - "value": 0, - "unit": "c", + "metric": "interface_oper_status", + "label": "Ethernet3", + "value": 1, + "unit": "", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "error_counter_single_collision_frames", - "label": "Ethernet3", + "metric": "packet_counter_discard_out", + "label": "Management1", "value": 0, "unit": "c", "warn": null, @@ -1009,7 +1009,7 @@ }, { "metric": "error_counter_late_collisions", - "label": "Ethernet3", + "label": "Ethernet1", "value": 0, "unit": "c", "warn": null, @@ -1018,8 +1018,8 @@ "max": null }, { - "metric": "error_counter_single_collision_frames", - "label": "Management1", + "metric": "packet_counter_unicast_in", + "label": "Ethernet3", "value": 0, "unit": "c", "warn": null, @@ -1028,8 +1028,8 @@ "max": null }, { - "metric": "packet_counter_multicast_in", - "label": "Ethernet1", + "metric": "error_counter_multiple_collision_frames", + "label": "Management1", "value": 0, "unit": "c", "warn": null, @@ -1038,8 +1038,8 @@ "max": null }, { - "metric": "error_counter_FCSErrors", - "label": "Ethernet1", + "metric": "error_counter_SQETest_errors", + "label": "Management1", "value": 0, "unit": "c", "warn": null, @@ -1048,8 +1048,8 @@ "max": null }, { - "metric": "error_counter_multiple_collision_frames", - "label": "Ethernet1", + "metric": "error_counter_deferred_transmissions", + "label": "Management1", "value": 0, "unit": "c", "warn": null, @@ -1058,8 +1058,8 @@ "max": null }, { - "metric": "error_counter_internal_mac_transmit_errors", - "label": "Ethernet2", + "metric": "packet_counter_multicast_in", + "label": "Ethernet1", "value": 0, "unit": "c", "warn": null, @@ -1068,8 +1068,8 @@ "max": null }, { - "metric": "error_counter_alignment_errors", - "label": "Ethernet2", + "metric": "error_counter_deferred_transmissions", + "label": "Ethernet1", "value": 0, "unit": "c", "warn": null, @@ -1078,7 +1078,7 @@ "max": null }, { - "metric": "error_counter_multiple_collision_frames", + "metric": "error_counter_SQETest_errors", "label": "Ethernet3", "value": 0, "unit": "c", @@ -1088,8 +1088,8 @@ "max": null }, { - "metric": "error_counter_in", - "label": "Ethernet1", + "metric": "error_counter_late_collisions", + "label": "Ethernet3", "value": 0, "unit": "c", "warn": null, @@ -1098,7 +1098,7 @@ "max": null }, { - "metric": "packet_counter_broadcast_in", + "metric": "packet_counter_broadcast_out", "label": "Ethernet1", "value": 0, "unit": "c", @@ -1108,18 +1108,18 @@ "max": null }, { - "metric": "packet_counter_multicast_in", - "label": "Management1", - "value": 0, - "unit": "c", + "metric": "traffic_counter_out", + "label": "Ethernet2", + "value": 30003997, + "unit": "B", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "error_counter_dot3HCStatsFCSErrors", - "label": "Management1", + "metric": "error_counter_multiple_collision_frames", + "label": "Ethernet2", "value": 0, "unit": "c", "warn": null, @@ -1128,8 +1128,8 @@ "max": null }, { - "metric": "error_counter_deferred_transmissions", - "label": "Management1", + "metric": "error_counter_internal_mac_transmit_errors", + "label": "Ethernet2", "value": 0, "unit": "c", "warn": null, @@ -1138,8 +1138,8 @@ "max": null }, { - "metric": "packet_counter_discard_out", - "label": "Ethernet1", + "metric": "error_counter_internal_mac_receive_errors", + "label": "Ethernet2", "value": 0, "unit": "c", "warn": null, @@ -1148,8 +1148,8 @@ "max": null }, { - "metric": "error_counter_late_collisions", - "label": "Ethernet1", + "metric": "packet_counter_unicast_out", + "label": "Ethernet3", "value": 0, "unit": "c", "warn": null, @@ -1158,9 +1158,9 @@ "max": null }, { - "metric": "error_counter_excessive_collisions", + "metric": "packet_counter_multicast_out", "label": "Ethernet1", - "value": 0, + "value": 237534, "unit": "c", "warn": null, "crit": null, @@ -1168,8 +1168,8 @@ "max": null }, { - "metric": "error_counter_SQETest_errors", - "label": "Ethernet2", + "metric": "error_counter_single_collision_frames", + "label": "Ethernet1", "value": 0, "unit": "c", "warn": null, @@ -1178,8 +1178,8 @@ "max": null }, { - "metric": "error_counter_dot3HCStatsFCSErrors", - "label": "Ethernet1", + "metric": "packet_counter_broadcast_in", + "label": "Ethernet3", "value": 0, "unit": "c", "warn": null, @@ -1188,8 +1188,8 @@ "max": null }, { - "metric": "error_counter_CRCAlign_errors", - "label": "Ethernet1", + "metric": "packet_counter_broadcast_out", + "label": "Management1", "value": 0, "unit": "c", "warn": null, @@ -1199,7 +1199,7 @@ }, { "metric": "interface_admin_status", - "label": "Management1", + "label": "Ethernet1", "value": 1, "unit": "", "warn": null, @@ -1212,7 +1212,7 @@ "messages": [ { "status": 0, - "message": "[{\"ifIndex\":\"1\",\"ifDescr\":\"Ethernet1\",\"ifType\":\"ethernetCsmacd\",\"ifName\":\"Ethernet1\",\"ifAlias\":\"\",\"ifPhysAddress\":\"50:00:00:03:00:01\",\"ifAdminStatus\":\"up\",\"ifOperStatus\":\"up\"},{\"ifIndex\":\"2\",\"ifDescr\":\"Ethernet2\",\"ifType\":\"ethernetCsmacd\",\"ifName\":\"Ethernet2\",\"ifAlias\":\"\",\"ifPhysAddress\":\"50:00:00:03:00:02\",\"ifAdminStatus\":\"up\",\"ifOperStatus\":\"up\"},{\"ifIndex\":\"3\",\"ifDescr\":\"Ethernet3\",\"ifType\":\"ethernetCsmacd\",\"ifName\":\"Ethernet3\",\"ifAlias\":\"\",\"ifPhysAddress\":\"50:00:00:03:00:03\",\"ifAdminStatus\":\"up\",\"ifOperStatus\":\"up\"},{\"ifIndex\":\"999001\",\"ifDescr\":\"Management1\",\"ifType\":\"ethernetCsmacd\",\"ifName\":\"Management1\",\"ifAlias\":\"\",\"ifPhysAddress\":\"50:00:00:03:00:00\",\"ifAdminStatus\":\"up\",\"ifOperStatus\":\"up\"}]" + "message": "[{\"ifIndex\":\"1\",\"ifDescr\":\"Ethernet1\",\"ifType\":\"ethernetCsmacd\",\"ifName\":\"Ethernet1\",\"ifAlias\":\"\",\"ifPhysAddress\":\"50:00:00:03:00:01\",\"ifAdminStatus\":\"up\",\"ifOperStatus\":\"up\",\"subType\":\"\"},{\"ifIndex\":\"2\",\"ifDescr\":\"Ethernet2\",\"ifType\":\"ethernetCsmacd\",\"ifName\":\"Ethernet2\",\"ifAlias\":\"\",\"ifPhysAddress\":\"50:00:00:03:00:02\",\"ifAdminStatus\":\"up\",\"ifOperStatus\":\"up\",\"subType\":\"\"},{\"ifIndex\":\"3\",\"ifDescr\":\"Ethernet3\",\"ifType\":\"ethernetCsmacd\",\"ifName\":\"Ethernet3\",\"ifAlias\":\"\",\"ifPhysAddress\":\"50:00:00:03:00:03\",\"ifAdminStatus\":\"up\",\"ifOperStatus\":\"up\",\"subType\":\"\"},{\"ifIndex\":\"999001\",\"ifDescr\":\"Management1\",\"ifType\":\"ethernetCsmacd\",\"ifName\":\"Management1\",\"ifAlias\":\"\",\"ifPhysAddress\":\"50:00:00:03:00:00\",\"ifAdminStatus\":\"up\",\"ifOperStatus\":\"up\",\"subType\":\"\"}]" } ] }, diff --git a/test/testdata/devices/comware/VSR1000/test_data.json b/test/testdata/devices/comware/VSR1000/test_data.json index 9a4f6a6..16ce7fb 100644 --- a/test/testdata/devices/comware/VSR1000/test_data.json +++ b/test/testdata/devices/comware/VSR1000/test_data.json @@ -18,18 +18,18 @@ "status_code": 0, "performance_data": [ { - "metric": "traffic_counter_out", - "label": "NULL0", + "metric": "packet_counter_multicast_out", + "label": "GigabitEthernet6/0", "value": 0, - "unit": "B", + "unit": "c", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "packet_counter_discard_out", - "label": "GigabitEthernet1/0", + "metric": "packet_counter_multicast_in", + "label": "GigabitEthernet3/0", "value": 0, "unit": "c", "warn": null, @@ -38,8 +38,8 @@ "max": null }, { - "metric": "packet_counter_multicast_out", - "label": "GigabitEthernet2/0", + "metric": "error_counter_single_collision_frames", + "label": "GigabitEthernet5/0", "value": 0, "unit": "c", "warn": null, @@ -48,8 +48,8 @@ "max": null }, { - "metric": "packet_counter_broadcast_in", - "label": "GigabitEthernet4/0", + "metric": "error_counter_internal_mac_receive_errors", + "label": "GigabitEthernet5/0", "value": 0, "unit": "c", "warn": null, @@ -58,8 +58,8 @@ "max": null }, { - "metric": "error_counter_alignment_errors", - "label": "GigabitEthernet4/0", + "metric": "error_counter_carrier_sense_errors", + "label": "GigabitEthernet1/0", "value": 0, "unit": "c", "warn": null, @@ -68,17 +68,17 @@ "max": null }, { - "metric": "error_counter_carrier_sense_errors", - "label": "GigabitEthernet4/0", - "value": 0, - "unit": "c", + "metric": "interface_oper_status", + "label": "GigabitEthernet3/0", + "value": 1, + "unit": "", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "error_counter_frame_too_longs", + "metric": "error_counter_SQETest_errors", "label": "GigabitEthernet4/0", "value": 0, "unit": "c", @@ -88,8 +88,8 @@ "max": null }, { - "metric": "error_counter_single_collision_frames", - "label": "GigabitEthernet8/0", + "metric": "error_counter_FCSErrors", + "label": "GigabitEthernet5/0", "value": 0, "unit": "c", "warn": null, @@ -98,8 +98,8 @@ "max": null }, { - "metric": "error_counter_single_collision_frames", - "label": "GigabitEthernet1/0", + "metric": "error_counter_alignment_errors", + "label": "GigabitEthernet8/0", "value": 0, "unit": "c", "warn": null, @@ -108,8 +108,8 @@ "max": null }, { - "metric": "packet_counter_discard_out", - "label": "GigabitEthernet2/0", + "metric": "error_counter_internal_mac_transmit_errors", + "label": "GigabitEthernet8/0", "value": 0, "unit": "c", "warn": null, @@ -118,17 +118,17 @@ "max": null }, { - "metric": "traffic_counter_out", + "metric": "error_counter_late_collisions", "label": "GigabitEthernet2/0", "value": 0, - "unit": "B", + "unit": "c", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "error_counter_in", + "metric": "error_counter_SQETest_errors", "label": "GigabitEthernet3/0", "value": 0, "unit": "c", @@ -138,17 +138,7 @@ "max": null }, { - "metric": "traffic_counter_out", - "label": "GigabitEthernet4/0", - "value": 0, - "unit": "B", - "warn": null, - "crit": null, - "min": null, - "max": null - }, - { - "metric": "packet_counter_discard_out", + "metric": "packet_counter_broadcast_in", "label": "GigabitEthernet5/0", "value": 0, "unit": "c", @@ -158,8 +148,8 @@ "max": null }, { - "metric": "error_counter_out", - "label": "GigabitEthernet6/0", + "metric": "error_counter_in", + "label": "GigabitEthernet1/0", "value": 0, "unit": "c", "warn": null, @@ -168,28 +158,28 @@ "max": null }, { - "metric": "packet_counter_multicast_in", - "label": "GigabitEthernet2/0", - "value": 0, - "unit": "c", + "metric": "interface_admin_status", + "label": "GigabitEthernet5/0", + "value": 1, + "unit": "", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "traffic_counter_in", - "label": "GigabitEthernet4/0", + "metric": "error_counter_multiple_collision_frames", + "label": "GigabitEthernet8/0", "value": 0, - "unit": "B", + "unit": "c", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "packet_counter_multicast_in", - "label": "GigabitEthernet4/0", + "metric": "packet_counter_unicast_in", + "label": "GigabitEthernet1/0", "value": 0, "unit": "c", "warn": null, @@ -198,8 +188,8 @@ "max": null }, { - "metric": "error_counter_late_collisions", - "label": "GigabitEthernet4/0", + "metric": "error_counter_single_collision_frames", + "label": "GigabitEthernet7/0", "value": 0, "unit": "c", "warn": null, @@ -208,18 +198,18 @@ "max": null }, { - "metric": "error_counter_in", - "label": "GigabitEthernet5/0", - "value": 0, - "unit": "c", + "metric": "interface_oper_status", + "label": "GigabitEthernet8/0", + "value": 1, + "unit": "", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "packet_counter_discard_in", - "label": "GigabitEthernet8/0", + "metric": "error_counter_multiple_collision_frames", + "label": "GigabitEthernet2/0", "value": 0, "unit": "c", "warn": null, @@ -228,8 +218,8 @@ "max": null }, { - "metric": "packet_counter_discard_in", - "label": "GigabitEthernet1/0", + "metric": "error_counter_deferred_transmissions", + "label": "GigabitEthernet2/0", "value": 0, "unit": "c", "warn": null, @@ -238,8 +228,8 @@ "max": null }, { - "metric": "packet_counter_broadcast_out", - "label": "GigabitEthernet1/0", + "metric": "packet_counter_unicast_in", + "label": "GigabitEthernet3/0", "value": 0, "unit": "c", "warn": null, @@ -248,7 +238,7 @@ "max": null }, { - "metric": "error_counter_SQETest_errors", + "metric": "packet_counter_multicast_out", "label": "GigabitEthernet3/0", "value": 0, "unit": "c", @@ -258,7 +248,7 @@ "max": null }, { - "metric": "error_counter_internal_mac_receive_errors", + "metric": "error_counter_excessive_collisions", "label": "GigabitEthernet3/0", "value": 0, "unit": "c", @@ -268,8 +258,8 @@ "max": null }, { - "metric": "interface_admin_status", - "label": "GigabitEthernet4/0", + "metric": "interface_oper_status", + "label": "GigabitEthernet1/0", "value": 1, "unit": "", "warn": null, @@ -278,18 +268,18 @@ "max": null }, { - "metric": "error_counter_FCSErrors", - "label": "GigabitEthernet5/0", - "value": 0, - "unit": "c", + "metric": "interface_maxspeed_in", + "label": "GigabitEthernet2/0", + "value": 1000000000, + "unit": "B", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "packet_counter_broadcast_out", - "label": "GigabitEthernet6/0", + "metric": "error_counter_single_collision_frames", + "label": "GigabitEthernet2/0", "value": 0, "unit": "c", "warn": null, @@ -298,28 +288,18 @@ "max": null }, { - "metric": "interface_maxspeed_out", - "label": "GigabitEthernet8/0", - "value": 1000000000, - "unit": "B", - "warn": null, - "crit": null, - "min": null, - "max": null - }, - { - "metric": "interface_maxspeed_out", - "label": "GigabitEthernet3/0", - "value": 1000000000, - "unit": "B", + "metric": "error_counter_FCSErrors", + "label": "GigabitEthernet1/0", + "value": 0, + "unit": "c", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "error_counter_deferred_transmissions", - "label": "GigabitEthernet5/0", + "metric": "error_counter_SQETest_errors", + "label": "GigabitEthernet6/0", "value": 0, "unit": "c", "warn": null, @@ -328,7 +308,7 @@ "max": null }, { - "metric": "error_counter_frame_too_longs", + "metric": "packet_counter_discard_out", "label": "GigabitEthernet7/0", "value": 0, "unit": "c", @@ -338,8 +318,8 @@ "max": null }, { - "metric": "interface_oper_status", - "label": "GigabitEthernet2/0", + "metric": "interface_admin_status", + "label": "InLoopBack0", "value": 1, "unit": "", "warn": null, @@ -348,8 +328,8 @@ "max": null }, { - "metric": "error_counter_deferred_transmissions", - "label": "GigabitEthernet2/0", + "metric": "packet_counter_discard_in", + "label": "Register-Tunnel0", "value": 0, "unit": "c", "warn": null, @@ -358,9 +338,9 @@ "max": null }, { - "metric": "error_counter_in", - "label": "GigabitEthernet8/0", - "value": 185, + "metric": "packet_counter_broadcast_in", + "label": "GigabitEthernet2/0", + "value": 0, "unit": "c", "warn": null, "crit": null, @@ -368,8 +348,8 @@ "max": null }, { - "metric": "packet_counter_discard_out", - "label": "GigabitEthernet3/0", + "metric": "packet_counter_multicast_in", + "label": "GigabitEthernet1/0", "value": 0, "unit": "c", "warn": null, @@ -378,8 +358,8 @@ "max": null }, { - "metric": "error_counter_FCSErrors", - "label": "GigabitEthernet4/0", + "metric": "packet_counter_discard_in", + "label": "GigabitEthernet2/0", "value": 0, "unit": "c", "warn": null, @@ -388,8 +368,18 @@ "max": null }, { - "metric": "packet_counter_discard_out", - "label": "GigabitEthernet7/0", + "metric": "interface_admin_status", + "label": "GigabitEthernet2/0", + "value": 1, + "unit": "", + "warn": null, + "crit": null, + "min": null, + "max": null + }, + { + "metric": "error_counter_carrier_sense_errors", + "label": "GigabitEthernet6/0", "value": 0, "unit": "c", "warn": null, @@ -398,9 +388,9 @@ "max": null }, { - "metric": "traffic_counter_in", + "metric": "interface_maxspeed_out", "label": "GigabitEthernet7/0", - "value": 0, + "value": 1000000000, "unit": "B", "warn": null, "crit": null, @@ -408,8 +398,8 @@ "max": null }, { - "metric": "error_counter_frame_too_longs", - "label": "GigabitEthernet8/0", + "metric": "packet_counter_discard_in", + "label": "GigabitEthernet3/0", "value": 0, "unit": "c", "warn": null, @@ -419,7 +409,7 @@ }, { "metric": "interface_admin_status", - "label": "InLoopBack0", + "label": "GigabitEthernet6/0", "value": 1, "unit": "", "warn": null, @@ -428,28 +418,28 @@ "max": null }, { - "metric": "interface_admin_status", - "label": "GigabitEthernet1/0", - "value": 1, - "unit": "", + "metric": "packet_counter_unicast_in", + "label": "GigabitEthernet6/0", + "value": 0, + "unit": "c", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "interface_maxspeed_out", - "label": "GigabitEthernet1/0", - "value": 1000000000, - "unit": "B", + "metric": "packet_counter_broadcast_in", + "label": "GigabitEthernet8/0", + "value": 0, + "unit": "c", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "packet_counter_broadcast_out", - "label": "GigabitEthernet2/0", + "metric": "error_counter_multiple_collision_frames", + "label": "GigabitEthernet3/0", "value": 0, "unit": "c", "warn": null, @@ -458,8 +448,8 @@ "max": null }, { - "metric": "packet_counter_broadcast_out", - "label": "GigabitEthernet5/0", + "metric": "packet_counter_discard_out", + "label": "GigabitEthernet4/0", "value": 0, "unit": "c", "warn": null, @@ -468,8 +458,8 @@ "max": null }, { - "metric": "packet_counter_unicast_in", - "label": "GigabitEthernet6/0", + "metric": "error_counter_FCSErrors", + "label": "GigabitEthernet7/0", "value": 0, "unit": "c", "warn": null, @@ -478,18 +468,18 @@ "max": null }, { - "metric": "interface_admin_status", - "label": "GigabitEthernet2/0", - "value": 1, - "unit": "", + "metric": "error_counter_internal_mac_receive_errors", + "label": "GigabitEthernet3/0", + "value": 0, + "unit": "c", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "error_counter_frame_too_longs", - "label": "GigabitEthernet2/0", + "metric": "error_counter_dot3HCStatsFCSErrors", + "label": "GigabitEthernet3/0", "value": 0, "unit": "c", "warn": null, @@ -498,18 +488,18 @@ "max": null }, { - "metric": "interface_maxspeed_in", - "label": "GigabitEthernet7/0", - "value": 1000000000, - "unit": "B", + "metric": "packet_counter_broadcast_out", + "label": "GigabitEthernet6/0", + "value": 0, + "unit": "c", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "packet_counter_unicast_in", - "label": "GigabitEthernet1/0", + "metric": "error_counter_FCSErrors", + "label": "GigabitEthernet6/0", "value": 0, "unit": "c", "warn": null, @@ -518,18 +508,18 @@ "max": null }, { - "metric": "error_counter_deferred_transmissions", - "label": "GigabitEthernet3/0", + "metric": "traffic_counter_out", + "label": "GigabitEthernet1/0", "value": 0, - "unit": "c", + "unit": "B", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "packet_counter_unicast_out", - "label": "GigabitEthernet5/0", + "metric": "error_counter_in", + "label": "GigabitEthernet3/0", "value": 0, "unit": "c", "warn": null, @@ -538,8 +528,8 @@ "max": null }, { - "metric": "packet_counter_multicast_in", - "label": "GigabitEthernet5/0", + "metric": "error_counter_FCSErrors", + "label": "GigabitEthernet3/0", "value": 0, "unit": "c", "warn": null, @@ -548,18 +538,18 @@ "max": null }, { - "metric": "error_counter_late_collisions", - "label": "GigabitEthernet8/0", - "value": 0, - "unit": "c", + "metric": "interface_maxspeed_in", + "label": "GigabitEthernet7/0", + "value": 1000000000, + "unit": "B", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "error_counter_out", - "label": "GigabitEthernet1/0", + "metric": "error_counter_frame_too_longs", + "label": "GigabitEthernet8/0", "value": 0, "unit": "c", "warn": null, @@ -568,20 +558,20 @@ "max": null }, { - "metric": "error_counter_internal_mac_transmit_errors", - "label": "GigabitEthernet3/0", + "metric": "interface_maxspeed_out", + "label": "Register-Tunnel0", "value": 0, - "unit": "c", + "unit": "B", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "interface_maxspeed_out", - "label": "GigabitEthernet6/0", - "value": 1000000000, - "unit": "B", + "metric": "error_counter_carrier_sense_errors", + "label": "GigabitEthernet4/0", + "value": 0, + "unit": "c", "warn": null, "crit": null, "min": null, @@ -589,7 +579,7 @@ }, { "metric": "packet_counter_unicast_in", - "label": "GigabitEthernet7/0", + "label": "GigabitEthernet5/0", "value": 0, "unit": "c", "warn": null, @@ -598,8 +588,8 @@ "max": null }, { - "metric": "packet_counter_discard_out", - "label": "GigabitEthernet8/0", + "metric": "packet_counter_discard_in", + "label": "GigabitEthernet6/0", "value": 0, "unit": "c", "warn": null, @@ -608,17 +598,17 @@ "max": null }, { - "metric": "packet_counter_discard_out", - "label": "Register-Tunnel0", - "value": 0, - "unit": "c", + "metric": "interface_maxspeed_in", + "label": "GigabitEthernet6/0", + "value": 1000000000, + "unit": "B", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "packet_counter_unicast_out", + "metric": "error_counter_dot3HCStatsFCSErrors", "label": "GigabitEthernet2/0", "value": 0, "unit": "c", @@ -628,7 +618,17 @@ "max": null }, { - "metric": "error_counter_out", + "metric": "traffic_counter_out", + "label": "GigabitEthernet3/0", + "value": 0, + "unit": "B", + "warn": null, + "crit": null, + "min": null, + "max": null + }, + { + "metric": "packet_counter_unicast_out", "label": "GigabitEthernet3/0", "value": 0, "unit": "c", @@ -638,20 +638,20 @@ "max": null }, { - "metric": "interface_maxspeed_out", - "label": "GigabitEthernet5/0", - "value": 1000000000, - "unit": "B", + "metric": "error_counter_FCSErrors", + "label": "GigabitEthernet8/0", + "value": 0, + "unit": "c", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "interface_oper_status", - "label": "GigabitEthernet6/0", - "value": 1, - "unit": "", + "metric": "error_counter_deferred_transmissions", + "label": "GigabitEthernet8/0", + "value": 0, + "unit": "c", "warn": null, "crit": null, "min": null, @@ -659,7 +659,7 @@ }, { "metric": "packet_counter_unicast_out", - "label": "GigabitEthernet6/0", + "label": "GigabitEthernet1/0", "value": 0, "unit": "c", "warn": null, @@ -668,8 +668,8 @@ "max": null }, { - "metric": "packet_counter_multicast_in", - "label": "GigabitEthernet3/0", + "metric": "error_counter_internal_mac_transmit_errors", + "label": "GigabitEthernet2/0", "value": 0, "unit": "c", "warn": null, @@ -678,27 +678,27 @@ "max": null }, { - "metric": "interface_oper_status", - "label": "GigabitEthernet5/0", - "value": 1, - "unit": "", + "metric": "interface_maxspeed_in", + "label": "GigabitEthernet3/0", + "value": 1000000000, + "unit": "B", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "packet_counter_multicast_out", - "label": "GigabitEthernet7/0", + "metric": "traffic_counter_out", + "label": "GigabitEthernet6/0", "value": 0, - "unit": "c", + "unit": "B", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "error_counter_single_collision_frames", + "metric": "packet_counter_unicast_in", "label": "GigabitEthernet7/0", "value": 0, "unit": "c", @@ -708,18 +708,18 @@ "max": null }, { - "metric": "traffic_counter_in", + "metric": "interface_admin_status", "label": "GigabitEthernet1/0", - "value": 0, - "unit": "B", + "value": 1, + "unit": "", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "error_counter_multiple_collision_frames", - "label": "GigabitEthernet2/0", + "metric": "error_counter_in", + "label": "GigabitEthernet5/0", "value": 0, "unit": "c", "warn": null, @@ -728,8 +728,8 @@ "max": null }, { - "metric": "error_counter_SQETest_errors", - "label": "GigabitEthernet4/0", + "metric": "error_counter_deferred_transmissions", + "label": "GigabitEthernet3/0", "value": 0, "unit": "c", "warn": null, @@ -738,18 +738,18 @@ "max": null }, { - "metric": "error_counter_frame_too_longs", - "label": "GigabitEthernet6/0", - "value": 0, - "unit": "c", + "metric": "interface_maxspeed_in", + "label": "NULL0", + "value": 1000000000, + "unit": "B", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "packet_counter_discard_in", - "label": "GigabitEthernet3/0", + "metric": "error_counter_SQETest_errors", + "label": "GigabitEthernet7/0", "value": 0, "unit": "c", "warn": null, @@ -758,10 +758,10 @@ "max": null }, { - "metric": "packet_counter_discard_out", - "label": "GigabitEthernet4/0", + "metric": "traffic_counter_in", + "label": "InLoopBack0", "value": 0, - "unit": "c", + "unit": "B", "warn": null, "crit": null, "min": null, @@ -769,7 +769,7 @@ }, { "metric": "interface_oper_status", - "label": "GigabitEthernet3/0", + "label": "GigabitEthernet2/0", "value": 1, "unit": "", "warn": null, @@ -779,7 +779,7 @@ }, { "metric": "packet_counter_multicast_out", - "label": "GigabitEthernet5/0", + "label": "GigabitEthernet4/0", "value": 0, "unit": "c", "warn": null, @@ -788,9 +788,9 @@ "max": null }, { - "metric": "packet_counter_multicast_in", - "label": "GigabitEthernet8/0", - "value": 27, + "metric": "packet_counter_discard_out", + "label": "GigabitEthernet6/0", + "value": 0, "unit": "c", "warn": null, "crit": null, @@ -798,8 +798,8 @@ "max": null }, { - "metric": "packet_counter_multicast_out", - "label": "GigabitEthernet1/0", + "metric": "error_counter_in", + "label": "GigabitEthernet2/0", "value": 0, "unit": "c", "warn": null, @@ -808,8 +808,8 @@ "max": null }, { - "metric": "packet_counter_discard_in", - "label": "GigabitEthernet5/0", + "metric": "packet_counter_multicast_in", + "label": "GigabitEthernet7/0", "value": 0, "unit": "c", "warn": null, @@ -818,8 +818,8 @@ "max": null }, { - "metric": "error_counter_SQETest_errors", - "label": "GigabitEthernet6/0", + "metric": "packet_counter_discard_in", + "label": "GigabitEthernet1/0", "value": 0, "unit": "c", "warn": null, @@ -828,18 +828,18 @@ "max": null }, { - "metric": "error_counter_deferred_transmissions", - "label": "GigabitEthernet7/0", - "value": 0, - "unit": "c", + "metric": "interface_admin_status", + "label": "GigabitEthernet8/0", + "value": 1, + "unit": "", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "error_counter_out", - "label": "GigabitEthernet8/0", + "metric": "packet_counter_broadcast_in", + "label": "GigabitEthernet1/0", "value": 0, "unit": "c", "warn": null, @@ -848,8 +848,8 @@ "max": null }, { - "metric": "packet_counter_multicast_in", - "label": "GigabitEthernet1/0", + "metric": "error_counter_carrier_sense_errors", + "label": "GigabitEthernet2/0", "value": 0, "unit": "c", "warn": null, @@ -858,18 +858,28 @@ "max": null }, { - "metric": "error_counter_internal_mac_receive_errors", - "label": "GigabitEthernet2/0", + "metric": "traffic_counter_out", + "label": "GigabitEthernet7/0", "value": 0, - "unit": "c", + "unit": "B", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "packet_counter_multicast_in", - "label": "GigabitEthernet6/0", + "metric": "traffic_counter_out", + "label": "GigabitEthernet8/0", + "value": 1315474, + "unit": "B", + "warn": null, + "crit": null, + "min": null, + "max": null + }, + { + "metric": "error_counter_carrier_sense_errors", + "label": "GigabitEthernet3/0", "value": 0, "unit": "c", "warn": null, @@ -878,8 +888,8 @@ "max": null }, { - "metric": "packet_counter_broadcast_in", - "label": "GigabitEthernet6/0", + "metric": "packet_counter_multicast_out", + "label": "GigabitEthernet5/0", "value": 0, "unit": "c", "warn": null, @@ -888,7 +898,7 @@ "max": null }, { - "metric": "error_counter_internal_mac_receive_errors", + "metric": "error_counter_multiple_collision_frames", "label": "GigabitEthernet6/0", "value": 0, "unit": "c", @@ -898,8 +908,8 @@ "max": null }, { - "metric": "error_counter_SQETest_errors", - "label": "GigabitEthernet8/0", + "metric": "packet_counter_discard_in", + "label": "NULL0", "value": 0, "unit": "c", "warn": null, @@ -909,7 +919,7 @@ }, { "metric": "error_counter_out", - "label": "GigabitEthernet4/0", + "label": "GigabitEthernet1/0", "value": 0, "unit": "c", "warn": null, @@ -918,8 +928,8 @@ "max": null }, { - "metric": "error_counter_excessive_collisions", - "label": "GigabitEthernet4/0", + "metric": "packet_counter_multicast_out", + "label": "GigabitEthernet7/0", "value": 0, "unit": "c", "warn": null, @@ -928,9 +938,9 @@ "max": null }, { - "metric": "error_counter_carrier_sense_errors", - "label": "GigabitEthernet1/0", - "value": 0, + "metric": "error_counter_in", + "label": "GigabitEthernet8/0", + "value": 185, "unit": "c", "warn": null, "crit": null, @@ -938,8 +948,8 @@ "max": null }, { - "metric": "error_counter_SQETest_errors", - "label": "GigabitEthernet2/0", + "metric": "packet_counter_multicast_out", + "label": "GigabitEthernet8/0", "value": 0, "unit": "c", "warn": null, @@ -948,8 +958,8 @@ "max": null }, { - "metric": "error_counter_frame_too_longs", - "label": "GigabitEthernet3/0", + "metric": "error_counter_out", + "label": "GigabitEthernet2/0", "value": 0, "unit": "c", "warn": null, @@ -958,7 +968,7 @@ "max": null }, { - "metric": "error_counter_late_collisions", + "metric": "packet_counter_unicast_out", "label": "GigabitEthernet5/0", "value": 0, "unit": "c", @@ -968,27 +978,27 @@ "max": null }, { - "metric": "error_counter_carrier_sense_errors", - "label": "GigabitEthernet3/0", + "metric": "traffic_counter_in", + "label": "GigabitEthernet6/0", "value": 0, - "unit": "c", + "unit": "B", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "interface_admin_status", - "label": "GigabitEthernet8/0", - "value": 1, - "unit": "", + "metric": "packet_counter_broadcast_out", + "label": "GigabitEthernet3/0", + "value": 0, + "unit": "c", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "error_counter_dot3HCStatsFCSErrors", + "metric": "error_counter_in", "label": "GigabitEthernet4/0", "value": 0, "unit": "c", @@ -998,8 +1008,8 @@ "max": null }, { - "metric": "error_counter_alignment_errors", - "label": "GigabitEthernet5/0", + "metric": "error_counter_out", + "label": "GigabitEthernet4/0", "value": 0, "unit": "c", "warn": null, @@ -1008,7 +1018,7 @@ "max": null }, { - "metric": "error_counter_internal_mac_receive_errors", + "metric": "error_counter_SQETest_errors", "label": "GigabitEthernet5/0", "value": 0, "unit": "c", @@ -1018,38 +1028,48 @@ "max": null }, { - "metric": "interface_oper_status", - "label": "GigabitEthernet8/0", - "value": 1, - "unit": "", + "metric": "error_counter_SQETest_errors", + "label": "GigabitEthernet1/0", + "value": 0, + "unit": "c", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "traffic_counter_out", - "label": "GigabitEthernet8/0", - "value": 1315474, - "unit": "B", + "metric": "error_counter_late_collisions", + "label": "GigabitEthernet1/0", + "value": 0, + "unit": "c", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "interface_oper_status", - "label": "Register-Tunnel0", - "value": 1, - "unit": "", + "metric": "error_counter_internal_mac_receive_errors", + "label": "GigabitEthernet2/0", + "value": 0, + "unit": "c", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "error_counter_in", - "label": "GigabitEthernet1/0", + "metric": "interface_maxspeed_in", + "label": "GigabitEthernet4/0", + "value": 1000000000, + "unit": "B", + "warn": null, + "crit": null, + "min": null, + "max": null + }, + { + "metric": "error_counter_single_collision_frames", + "label": "GigabitEthernet4/0", "value": 0, "unit": "c", "warn": null, @@ -1058,27 +1078,27 @@ "max": null }, { - "metric": "error_counter_FCSErrors", - "label": "GigabitEthernet2/0", + "metric": "traffic_counter_in", + "label": "NULL0", "value": 0, - "unit": "c", + "unit": "B", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "error_counter_multiple_collision_frames", + "metric": "interface_admin_status", "label": "GigabitEthernet4/0", - "value": 0, - "unit": "c", + "value": 1, + "unit": "", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "error_counter_deferred_transmissions", + "metric": "error_counter_internal_mac_receive_errors", "label": "GigabitEthernet4/0", "value": 0, "unit": "c", @@ -1089,7 +1109,7 @@ }, { "metric": "packet_counter_discard_in", - "label": "GigabitEthernet7/0", + "label": "GigabitEthernet5/0", "value": 0, "unit": "c", "warn": null, @@ -1098,18 +1118,18 @@ "max": null }, { - "metric": "error_counter_internal_mac_transmit_errors", + "metric": "interface_admin_status", "label": "GigabitEthernet7/0", - "value": 0, - "unit": "c", + "value": 1, + "unit": "", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "error_counter_internal_mac_transmit_errors", - "label": "GigabitEthernet1/0", + "metric": "error_counter_multiple_collision_frames", + "label": "GigabitEthernet7/0", "value": 0, "unit": "c", "warn": null, @@ -1118,18 +1138,18 @@ "max": null }, { - "metric": "interface_admin_status", - "label": "GigabitEthernet5/0", - "value": 1, - "unit": "", + "metric": "error_counter_alignment_errors", + "label": "GigabitEthernet1/0", + "value": 0, + "unit": "c", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "error_counter_single_collision_frames", - "label": "GigabitEthernet6/0", + "metric": "error_counter_internal_mac_transmit_errors", + "label": "GigabitEthernet3/0", "value": 0, "unit": "c", "warn": null, @@ -1138,8 +1158,8 @@ "max": null }, { - "metric": "error_counter_dot3HCStatsFCSErrors", - "label": "GigabitEthernet6/0", + "metric": "error_counter_frame_too_longs", + "label": "GigabitEthernet3/0", "value": 0, "unit": "c", "warn": null, @@ -1148,8 +1168,8 @@ "max": null }, { - "metric": "error_counter_deferred_transmissions", - "label": "GigabitEthernet8/0", + "metric": "error_counter_out", + "label": "GigabitEthernet5/0", "value": 0, "unit": "c", "warn": null, @@ -1158,8 +1178,8 @@ "max": null }, { - "metric": "error_counter_excessive_collisions", - "label": "GigabitEthernet8/0", + "metric": "error_counter_frame_too_longs", + "label": "GigabitEthernet5/0", "value": 0, "unit": "c", "warn": null, @@ -1168,7 +1188,7 @@ "max": null }, { - "metric": "error_counter_internal_mac_transmit_errors", + "metric": "packet_counter_broadcast_in", "label": "GigabitEthernet6/0", "value": 0, "unit": "c", @@ -1178,8 +1198,8 @@ "max": null }, { - "metric": "packet_counter_multicast_out", - "label": "GigabitEthernet8/0", + "metric": "packet_counter_unicast_out", + "label": "GigabitEthernet4/0", "value": 0, "unit": "c", "warn": null, @@ -1188,8 +1208,8 @@ "max": null }, { - "metric": "packet_counter_broadcast_in", - "label": "GigabitEthernet8/0", + "metric": "error_counter_deferred_transmissions", + "label": "GigabitEthernet4/0", "value": 0, "unit": "c", "warn": null, @@ -1198,8 +1218,8 @@ "max": null }, { - "metric": "packet_counter_broadcast_in", - "label": "GigabitEthernet1/0", + "metric": "error_counter_excessive_collisions", + "label": "GigabitEthernet4/0", "value": 0, "unit": "c", "warn": null, @@ -1208,8 +1228,8 @@ "max": null }, { - "metric": "error_counter_FCSErrors", - "label": "GigabitEthernet7/0", + "metric": "error_counter_frame_too_longs", + "label": "GigabitEthernet1/0", "value": 0, "unit": "c", "warn": null, @@ -1218,8 +1238,8 @@ "max": null }, { - "metric": "packet_counter_discard_in", - "label": "GigabitEthernet4/0", + "metric": "error_counter_late_collisions", + "label": "GigabitEthernet6/0", "value": 0, "unit": "c", "warn": null, @@ -1228,17 +1248,17 @@ "max": null }, { - "metric": "error_counter_multiple_collision_frames", - "label": "GigabitEthernet5/0", + "metric": "traffic_counter_out", + "label": "InLoopBack0", "value": 0, - "unit": "c", + "unit": "B", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "error_counter_frame_too_longs", + "metric": "error_counter_multiple_collision_frames", "label": "GigabitEthernet5/0", "value": 0, "unit": "c", @@ -1248,8 +1268,8 @@ "max": null }, { - "metric": "error_counter_alignment_errors", - "label": "GigabitEthernet2/0", + "metric": "error_counter_deferred_transmissions", + "label": "GigabitEthernet6/0", "value": 0, "unit": "c", "warn": null, @@ -1258,18 +1278,18 @@ "max": null }, { - "metric": "packet_counter_broadcast_in", - "label": "GigabitEthernet3/0", + "metric": "traffic_counter_out", + "label": "NULL0", "value": 0, - "unit": "c", + "unit": "B", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "error_counter_excessive_collisions", - "label": "GigabitEthernet5/0", + "metric": "error_counter_alignment_errors", + "label": "GigabitEthernet2/0", "value": 0, "unit": "c", "warn": null, @@ -1278,8 +1298,8 @@ "max": null }, { - "metric": "error_counter_dot3HCStatsFCSErrors", - "label": "GigabitEthernet5/0", + "metric": "packet_counter_unicast_in", + "label": "GigabitEthernet4/0", "value": 0, "unit": "c", "warn": null, @@ -1288,18 +1308,18 @@ "max": null }, { - "metric": "traffic_counter_in", - "label": "GigabitEthernet8/0", - "value": 693224, - "unit": "B", + "metric": "packet_counter_broadcast_out", + "label": "GigabitEthernet4/0", + "value": 0, + "unit": "c", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "error_counter_excessive_collisions", - "label": "GigabitEthernet1/0", + "metric": "packet_counter_multicast_out", + "label": "GigabitEthernet2/0", "value": 0, "unit": "c", "warn": null, @@ -1308,7 +1328,7 @@ "max": null }, { - "metric": "error_counter_alignment_errors", + "metric": "error_counter_in", "label": "GigabitEthernet6/0", "value": 0, "unit": "c", @@ -1318,7 +1338,7 @@ "max": null }, { - "metric": "error_counter_carrier_sense_errors", + "metric": "packet_counter_discard_in", "label": "GigabitEthernet8/0", "value": 0, "unit": "c", @@ -1328,8 +1348,8 @@ "max": null }, { - "metric": "interface_maxspeed_in", - "label": "GigabitEthernet3/0", + "metric": "interface_maxspeed_out", + "label": "GigabitEthernet8/0", "value": 1000000000, "unit": "B", "warn": null, @@ -1338,9 +1358,9 @@ "max": null }, { - "metric": "packet_counter_unicast_out", - "label": "GigabitEthernet8/0", - "value": 7288, + "metric": "error_counter_excessive_collisions", + "label": "GigabitEthernet1/0", + "value": 0, "unit": "c", "warn": null, "crit": null, @@ -1348,8 +1368,8 @@ "max": null }, { - "metric": "error_counter_excessive_collisions", - "label": "GigabitEthernet6/0", + "metric": "error_counter_internal_mac_transmit_errors", + "label": "GigabitEthernet1/0", "value": 0, "unit": "c", "warn": null, @@ -1358,18 +1378,18 @@ "max": null }, { - "metric": "interface_oper_status", - "label": "InLoopBack0", - "value": 1, - "unit": "", + "metric": "error_counter_dot3HCStatsFCSErrors", + "label": "GigabitEthernet1/0", + "value": 0, + "unit": "c", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "packet_counter_broadcast_in", - "label": "GigabitEthernet2/0", + "metric": "error_counter_single_collision_frames", + "label": "GigabitEthernet8/0", "value": 0, "unit": "c", "warn": null, @@ -1378,28 +1398,28 @@ "max": null }, { - "metric": "error_counter_excessive_collisions", - "label": "GigabitEthernet2/0", - "value": 0, - "unit": "c", + "metric": "interface_admin_status", + "label": "NULL0", + "value": 1, + "unit": "", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "error_counter_dot3HCStatsFCSErrors", - "label": "GigabitEthernet2/0", - "value": 0, - "unit": "c", + "metric": "interface_maxspeed_out", + "label": "NULL0", + "value": 1000000000, + "unit": "B", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "packet_counter_unicast_in", - "label": "GigabitEthernet3/0", + "metric": "error_counter_deferred_transmissions", + "label": "GigabitEthernet1/0", "value": 0, "unit": "c", "warn": null, @@ -1408,7 +1428,7 @@ "max": null }, { - "metric": "error_counter_late_collisions", + "metric": "error_counter_excessive_collisions", "label": "GigabitEthernet6/0", "value": 0, "unit": "c", @@ -1418,7 +1438,7 @@ "max": null }, { - "metric": "error_counter_multiple_collision_frames", + "metric": "error_counter_alignment_errors", "label": "GigabitEthernet7/0", "value": 0, "unit": "c", @@ -1428,17 +1448,17 @@ "max": null }, { - "metric": "error_counter_internal_mac_receive_errors", - "label": "GigabitEthernet1/0", + "metric": "interface_maxspeed_out", + "label": "InLoopBack0", "value": 0, - "unit": "c", + "unit": "B", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "error_counter_FCSErrors", + "metric": "error_counter_late_collisions", "label": "GigabitEthernet3/0", "value": 0, "unit": "c", @@ -1448,10 +1468,10 @@ "max": null }, { - "metric": "error_counter_single_collision_frames", - "label": "GigabitEthernet4/0", - "value": 0, - "unit": "c", + "metric": "interface_oper_status", + "label": "GigabitEthernet7/0", + "value": 1, + "unit": "", "warn": null, "crit": null, "min": null, @@ -1468,7 +1488,17 @@ "max": null }, { - "metric": "error_counter_internal_mac_receive_errors", + "metric": "packet_counter_broadcast_out", + "label": "GigabitEthernet5/0", + "value": 0, + "unit": "c", + "warn": null, + "crit": null, + "min": null, + "max": null + }, + { + "metric": "error_counter_in", "label": "GigabitEthernet7/0", "value": 0, "unit": "c", @@ -1478,8 +1508,8 @@ "max": null }, { - "metric": "error_counter_internal_mac_transmit_errors", - "label": "GigabitEthernet8/0", + "metric": "error_counter_out", + "label": "GigabitEthernet7/0", "value": 0, "unit": "c", "warn": null, @@ -1488,17 +1518,17 @@ "max": null }, { - "metric": "interface_maxspeed_in", - "label": "GigabitEthernet1/0", - "value": 1000000000, - "unit": "B", + "metric": "packet_counter_unicast_in", + "label": "GigabitEthernet8/0", + "value": 7255, + "unit": "c", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "packet_counter_unicast_out", + "metric": "error_counter_out", "label": "GigabitEthernet3/0", "value": 0, "unit": "c", @@ -1508,10 +1538,10 @@ "max": null }, { - "metric": "error_counter_internal_mac_transmit_errors", + "metric": "traffic_counter_out", "label": "GigabitEthernet5/0", "value": 0, - "unit": "c", + "unit": "B", "warn": null, "crit": null, "min": null, @@ -1519,7 +1549,7 @@ }, { "metric": "packet_counter_multicast_in", - "label": "GigabitEthernet7/0", + "label": "GigabitEthernet5/0", "value": 0, "unit": "c", "warn": null, @@ -1528,8 +1558,18 @@ "max": null }, { - "metric": "interface_maxspeed_out", - "label": "NULL0", + "metric": "error_counter_frame_too_longs", + "label": "GigabitEthernet4/0", + "value": 0, + "unit": "c", + "warn": null, + "crit": null, + "min": null, + "max": null + }, + { + "metric": "interface_maxspeed_in", + "label": "GigabitEthernet5/0", "value": 1000000000, "unit": "B", "warn": null, @@ -1538,8 +1578,8 @@ "max": null }, { - "metric": "error_counter_alignment_errors", - "label": "GigabitEthernet3/0", + "metric": "error_counter_single_collision_frames", + "label": "GigabitEthernet6/0", "value": 0, "unit": "c", "warn": null, @@ -1548,19 +1588,9 @@ "max": null }, { - "metric": "interface_oper_status", - "label": "GigabitEthernet4/0", - "value": 1, - "unit": "", - "warn": null, - "crit": null, - "min": null, - "max": null - }, - { - "metric": "packet_counter_unicast_out", - "label": "GigabitEthernet1/0", - "value": 0, + "metric": "packet_counter_broadcast_out", + "label": "GigabitEthernet8/0", + "value": 5, "unit": "c", "warn": null, "crit": null, @@ -1568,18 +1598,8 @@ "max": null }, { - "metric": "traffic_counter_in", - "label": "GigabitEthernet5/0", - "value": 0, - "unit": "B", - "warn": null, - "crit": null, - "min": null, - "max": null - }, - { - "metric": "error_counter_carrier_sense_errors", - "label": "GigabitEthernet5/0", + "metric": "error_counter_excessive_collisions", + "label": "GigabitEthernet8/0", "value": 0, "unit": "c", "warn": null, @@ -1588,9 +1608,9 @@ "max": null }, { - "metric": "traffic_counter_in", - "label": "GigabitEthernet6/0", - "value": 0, + "metric": "interface_maxspeed_in", + "label": "GigabitEthernet1/0", + "value": 1000000000, "unit": "B", "warn": null, "crit": null, @@ -1598,8 +1618,8 @@ "max": null }, { - "metric": "packet_counter_multicast_out", - "label": "GigabitEthernet3/0", + "metric": "packet_counter_broadcast_in", + "label": "GigabitEthernet4/0", "value": 0, "unit": "c", "warn": null, @@ -1609,7 +1629,7 @@ }, { "metric": "error_counter_multiple_collision_frames", - "label": "GigabitEthernet3/0", + "label": "GigabitEthernet4/0", "value": 0, "unit": "c", "warn": null, @@ -1617,19 +1637,9 @@ "min": null, "max": null }, - { - "metric": "packet_counter_unicast_in", - "label": "GigabitEthernet8/0", - "value": 7255, - "unit": "c", - "warn": null, - "crit": null, - "min": null, - "max": null - }, { "metric": "error_counter_FCSErrors", - "label": "GigabitEthernet8/0", + "label": "GigabitEthernet4/0", "value": 0, "unit": "c", "warn": null, @@ -1639,7 +1649,7 @@ }, { "metric": "packet_counter_discard_in", - "label": "NULL0", + "label": "GigabitEthernet7/0", "value": 0, "unit": "c", "warn": null, @@ -1648,8 +1658,8 @@ "max": null }, { - "metric": "packet_counter_discard_out", - "label": "NULL0", + "metric": "error_counter_late_collisions", + "label": "GigabitEthernet8/0", "value": 0, "unit": "c", "warn": null, @@ -1658,8 +1668,8 @@ "max": null }, { - "metric": "error_counter_dot3HCStatsFCSErrors", - "label": "GigabitEthernet1/0", + "metric": "packet_counter_multicast_in", + "label": "GigabitEthernet2/0", "value": 0, "unit": "c", "warn": null, @@ -1668,29 +1678,29 @@ "max": null }, { - "metric": "packet_counter_multicast_out", + "metric": "traffic_counter_in", "label": "GigabitEthernet4/0", "value": 0, - "unit": "c", + "unit": "B", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "error_counter_alignment_errors", - "label": "GigabitEthernet8/0", - "value": 0, - "unit": "c", + "metric": "interface_maxspeed_out", + "label": "GigabitEthernet4/0", + "value": 1000000000, + "unit": "B", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "error_counter_internal_mac_receive_errors", + "metric": "error_counter_out", "label": "GigabitEthernet8/0", - "value": 185, + "value": 0, "unit": "c", "warn": null, "crit": null, @@ -1698,8 +1708,8 @@ "max": null }, { - "metric": "packet_counter_unicast_in", - "label": "GigabitEthernet4/0", + "metric": "error_counter_single_collision_frames", + "label": "GigabitEthernet3/0", "value": 0, "unit": "c", "warn": null, @@ -1708,7 +1718,7 @@ "max": null }, { - "metric": "error_counter_multiple_collision_frames", + "metric": "error_counter_frame_too_longs", "label": "GigabitEthernet6/0", "value": 0, "unit": "c", @@ -1718,10 +1728,10 @@ "max": null }, { - "metric": "traffic_counter_in", - "label": "NULL0", + "metric": "packet_counter_discard_out", + "label": "Register-Tunnel0", "value": 0, - "unit": "B", + "unit": "c", "warn": null, "crit": null, "min": null, @@ -1729,7 +1739,7 @@ }, { "metric": "packet_counter_discard_in", - "label": "GigabitEthernet6/0", + "label": "GigabitEthernet4/0", "value": 0, "unit": "c", "warn": null, @@ -1738,39 +1748,39 @@ "max": null }, { - "metric": "error_counter_out", - "label": "GigabitEthernet7/0", + "metric": "traffic_counter_out", + "label": "GigabitEthernet4/0", "value": 0, - "unit": "c", + "unit": "B", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "interface_oper_status", - "label": "NULL0", - "value": 1, - "unit": "", + "metric": "error_counter_late_collisions", + "label": "GigabitEthernet4/0", + "value": 0, + "unit": "c", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "interface_oper_status", - "label": "GigabitEthernet1/0", - "value": 1, - "unit": "", + "metric": "error_counter_dot3HCStatsFCSErrors", + "label": "GigabitEthernet8/0", + "value": 0, + "unit": "c", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "interface_maxspeed_out", - "label": "GigabitEthernet2/0", - "value": 1000000000, + "metric": "traffic_counter_in", + "label": "Register-Tunnel0", + "value": 0, "unit": "B", "warn": null, "crit": null, @@ -1778,47 +1788,37 @@ "max": null }, { - "metric": "interface_admin_status", + "metric": "error_counter_alignment_errors", "label": "GigabitEthernet3/0", - "value": 1, - "unit": "", - "warn": null, - "crit": null, - "min": null, - "max": null - }, - { - "metric": "traffic_counter_out", - "label": "InLoopBack0", "value": 0, - "unit": "B", + "unit": "c", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "interface_maxspeed_out", - "label": "InLoopBack0", + "metric": "error_counter_dot3HCStatsFCSErrors", + "label": "GigabitEthernet6/0", "value": 0, - "unit": "B", + "unit": "c", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "traffic_counter_out", - "label": "GigabitEthernet1/0", + "metric": "error_counter_internal_mac_transmit_errors", + "label": "GigabitEthernet7/0", "value": 0, - "unit": "B", + "unit": "c", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "packet_counter_discard_in", + "metric": "packet_counter_discard_out", "label": "GigabitEthernet2/0", "value": 0, "unit": "c", @@ -1828,7 +1828,7 @@ "max": null }, { - "metric": "error_counter_excessive_collisions", + "metric": "packet_counter_discard_out", "label": "GigabitEthernet3/0", "value": 0, "unit": "c", @@ -1838,8 +1838,8 @@ "max": null }, { - "metric": "error_counter_single_collision_frames", - "label": "GigabitEthernet5/0", + "metric": "packet_counter_unicast_out", + "label": "GigabitEthernet7/0", "value": 0, "unit": "c", "warn": null, @@ -1848,7 +1848,7 @@ "max": null }, { - "metric": "error_counter_late_collisions", + "metric": "error_counter_internal_mac_receive_errors", "label": "GigabitEthernet7/0", "value": 0, "unit": "c", @@ -1859,7 +1859,7 @@ }, { "metric": "interface_maxspeed_in", - "label": "Register-Tunnel0", + "label": "InLoopBack0", "value": 0, "unit": "B", "warn": null, @@ -1868,17 +1868,17 @@ "max": null }, { - "metric": "packet_counter_broadcast_out", + "metric": "interface_admin_status", "label": "GigabitEthernet3/0", - "value": 0, - "unit": "c", + "value": 1, + "unit": "", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "packet_counter_unicast_out", + "metric": "error_counter_alignment_errors", "label": "GigabitEthernet4/0", "value": 0, "unit": "c", @@ -1888,17 +1888,7 @@ "max": null }, { - "metric": "packet_counter_unicast_in", - "label": "GigabitEthernet5/0", - "value": 0, - "unit": "c", - "warn": null, - "crit": null, - "min": null, - "max": null - }, - { - "metric": "packet_counter_discard_out", + "metric": "packet_counter_unicast_out", "label": "GigabitEthernet6/0", "value": 0, "unit": "c", @@ -1908,9 +1898,9 @@ "max": null }, { - "metric": "traffic_counter_out", - "label": "GigabitEthernet7/0", - "value": 0, + "metric": "interface_maxspeed_out", + "label": "GigabitEthernet3/0", + "value": 1000000000, "unit": "B", "warn": null, "crit": null, @@ -1918,18 +1908,18 @@ "max": null }, { - "metric": "interface_maxspeed_out", - "label": "Register-Tunnel0", + "metric": "error_counter_internal_mac_transmit_errors", + "label": "GigabitEthernet5/0", "value": 0, - "unit": "B", + "unit": "c", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "error_counter_late_collisions", - "label": "GigabitEthernet2/0", + "metric": "error_counter_carrier_sense_errors", + "label": "GigabitEthernet5/0", "value": 0, "unit": "c", "warn": null, @@ -1938,9 +1928,9 @@ "max": null }, { - "metric": "interface_maxspeed_out", - "label": "GigabitEthernet4/0", - "value": 1000000000, + "metric": "interface_maxspeed_in", + "label": "Register-Tunnel0", + "value": 0, "unit": "B", "warn": null, "crit": null, @@ -1948,8 +1938,8 @@ "max": null }, { - "metric": "traffic_counter_out", - "label": "GigabitEthernet5/0", + "metric": "traffic_counter_in", + "label": "GigabitEthernet1/0", "value": 0, "unit": "B", "warn": null, @@ -1958,29 +1948,29 @@ "max": null }, { - "metric": "interface_admin_status", - "label": "GigabitEthernet6/0", - "value": 1, - "unit": "", + "metric": "packet_counter_unicast_in", + "label": "GigabitEthernet2/0", + "value": 0, + "unit": "c", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "interface_maxspeed_in", - "label": "GigabitEthernet8/0", - "value": 1000000000, - "unit": "B", + "metric": "error_counter_frame_too_longs", + "label": "GigabitEthernet2/0", + "value": 0, + "unit": "c", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "packet_counter_broadcast_out", + "metric": "error_counter_carrier_sense_errors", "label": "GigabitEthernet8/0", - "value": 5, + "value": 0, "unit": "c", "warn": null, "crit": null, @@ -1989,7 +1979,7 @@ }, { "metric": "packet_counter_discard_in", - "label": "Register-Tunnel0", + "label": "InLoopBack0", "value": 0, "unit": "c", "warn": null, @@ -1998,18 +1988,18 @@ "max": null }, { - "metric": "error_counter_late_collisions", - "label": "GigabitEthernet1/0", - "value": 0, - "unit": "c", + "metric": "interface_oper_status", + "label": "Register-Tunnel0", + "value": 1, + "unit": "", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "error_counter_internal_mac_receive_errors", - "label": "GigabitEthernet4/0", + "metric": "packet_counter_unicast_out", + "label": "GigabitEthernet2/0", "value": 0, "unit": "c", "warn": null, @@ -2018,8 +2008,8 @@ "max": null }, { - "metric": "packet_counter_discard_out", - "label": "InLoopBack0", + "metric": "error_counter_excessive_collisions", + "label": "GigabitEthernet2/0", "value": 0, "unit": "c", "warn": null, @@ -2028,8 +2018,8 @@ "max": null }, { - "metric": "error_counter_deferred_transmissions", - "label": "GigabitEthernet1/0", + "metric": "packet_counter_multicast_in", + "label": "GigabitEthernet6/0", "value": 0, "unit": "c", "warn": null, @@ -2038,7 +2028,7 @@ "max": null }, { - "metric": "packet_counter_broadcast_in", + "metric": "error_counter_dot3HCStatsFCSErrors", "label": "GigabitEthernet5/0", "value": 0, "unit": "c", @@ -2048,8 +2038,8 @@ "max": null }, { - "metric": "error_counter_in", - "label": "GigabitEthernet2/0", + "metric": "error_counter_deferred_transmissions", + "label": "GigabitEthernet7/0", "value": 0, "unit": "c", "warn": null, @@ -2058,37 +2048,37 @@ "max": null }, { - "metric": "packet_counter_unicast_in", - "label": "GigabitEthernet2/0", + "metric": "traffic_counter_out", + "label": "Register-Tunnel0", "value": 0, - "unit": "c", + "unit": "B", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "error_counter_carrier_sense_errors", - "label": "GigabitEthernet2/0", - "value": 0, - "unit": "c", + "metric": "interface_maxspeed_out", + "label": "GigabitEthernet5/0", + "value": 1000000000, + "unit": "B", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "interface_maxspeed_in", - "label": "GigabitEthernet6/0", - "value": 1000000000, - "unit": "B", + "metric": "error_counter_deferred_transmissions", + "label": "GigabitEthernet5/0", + "value": 0, + "unit": "c", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "error_counter_in", + "metric": "packet_counter_broadcast_out", "label": "GigabitEthernet7/0", "value": 0, "unit": "c", @@ -2098,18 +2088,18 @@ "max": null }, { - "metric": "traffic_counter_in", - "label": "InLoopBack0", - "value": 0, - "unit": "B", + "metric": "packet_counter_unicast_out", + "label": "GigabitEthernet8/0", + "value": 7288, + "unit": "c", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "interface_admin_status", - "label": "Register-Tunnel0", + "metric": "interface_oper_status", + "label": "NULL0", "value": 1, "unit": "", "warn": null, @@ -2118,8 +2108,8 @@ "max": null }, { - "metric": "packet_counter_broadcast_out", - "label": "GigabitEthernet4/0", + "metric": "packet_counter_discard_out", + "label": "GigabitEthernet5/0", "value": 0, "unit": "c", "warn": null, @@ -2128,38 +2118,28 @@ "max": null }, { - "metric": "interface_maxspeed_in", - "label": "GigabitEthernet4/0", - "value": 1000000000, - "unit": "B", - "warn": null, - "crit": null, - "min": null, - "max": null - }, - { - "metric": "interface_admin_status", - "label": "GigabitEthernet7/0", - "value": 1, - "unit": "", + "metric": "error_counter_alignment_errors", + "label": "GigabitEthernet6/0", + "value": 0, + "unit": "c", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "interface_oper_status", - "label": "GigabitEthernet7/0", - "value": 1, - "unit": "", + "metric": "error_counter_internal_mac_receive_errors", + "label": "GigabitEthernet6/0", + "value": 0, + "unit": "c", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "packet_counter_broadcast_out", - "label": "GigabitEthernet7/0", + "metric": "packet_counter_multicast_in", + "label": "GigabitEthernet4/0", "value": 0, "unit": "c", "warn": null, @@ -2168,8 +2148,8 @@ "max": null }, { - "metric": "interface_admin_status", - "label": "NULL0", + "metric": "interface_oper_status", + "label": "GigabitEthernet5/0", "value": 1, "unit": "", "warn": null, @@ -2178,7 +2158,7 @@ "max": null }, { - "metric": "error_counter_alignment_errors", + "metric": "packet_counter_broadcast_out", "label": "GigabitEthernet1/0", "value": 0, "unit": "c", @@ -2188,38 +2168,38 @@ "max": null }, { - "metric": "error_counter_internal_mac_transmit_errors", - "label": "GigabitEthernet4/0", - "value": 0, - "unit": "c", + "metric": "interface_maxspeed_out", + "label": "GigabitEthernet2/0", + "value": 1000000000, + "unit": "B", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "traffic_counter_out", - "label": "GigabitEthernet6/0", + "metric": "packet_counter_broadcast_in", + "label": "GigabitEthernet3/0", "value": 0, - "unit": "B", + "unit": "c", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "error_counter_dot3HCStatsFCSErrors", - "label": "GigabitEthernet8/0", - "value": 0, - "unit": "c", + "metric": "interface_oper_status", + "label": "GigabitEthernet6/0", + "value": 1, + "unit": "", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "error_counter_FCSErrors", - "label": "GigabitEthernet1/0", + "metric": "packet_counter_broadcast_in", + "label": "GigabitEthernet7/0", "value": 0, "unit": "c", "warn": null, @@ -2228,8 +2208,8 @@ "max": null }, { - "metric": "error_counter_out", - "label": "GigabitEthernet2/0", + "metric": "error_counter_dot3HCStatsFCSErrors", + "label": "GigabitEthernet7/0", "value": 0, "unit": "c", "warn": null, @@ -2238,8 +2218,8 @@ "max": null }, { - "metric": "traffic_counter_out", - "label": "GigabitEthernet3/0", + "metric": "traffic_counter_in", + "label": "GigabitEthernet2/0", "value": 0, "unit": "B", "warn": null, @@ -2248,18 +2228,18 @@ "max": null }, { - "metric": "interface_maxspeed_in", - "label": "NULL0", - "value": 1000000000, - "unit": "B", + "metric": "error_counter_alignment_errors", + "label": "GigabitEthernet5/0", + "value": 0, + "unit": "c", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "error_counter_dot3HCStatsFCSErrors", - "label": "GigabitEthernet3/0", + "metric": "error_counter_out", + "label": "GigabitEthernet6/0", "value": 0, "unit": "c", "warn": null, @@ -2268,8 +2248,8 @@ "max": null }, { - "metric": "error_counter_FCSErrors", - "label": "GigabitEthernet6/0", + "metric": "packet_counter_discard_out", + "label": "GigabitEthernet1/0", "value": 0, "unit": "c", "warn": null, @@ -2278,8 +2258,8 @@ "max": null }, { - "metric": "error_counter_deferred_transmissions", - "label": "GigabitEthernet6/0", + "metric": "error_counter_internal_mac_receive_errors", + "label": "GigabitEthernet1/0", "value": 0, "unit": "c", "warn": null, @@ -2288,7 +2268,7 @@ "max": null }, { - "metric": "error_counter_alignment_errors", + "metric": "error_counter_excessive_collisions", "label": "GigabitEthernet7/0", "value": 0, "unit": "c", @@ -2298,8 +2278,8 @@ "max": null }, { - "metric": "interface_maxspeed_in", - "label": "InLoopBack0", + "metric": "traffic_counter_in", + "label": "GigabitEthernet3/0", "value": 0, "unit": "B", "warn": null, @@ -2308,17 +2288,17 @@ "max": null }, { - "metric": "traffic_counter_out", - "label": "Register-Tunnel0", + "metric": "error_counter_internal_mac_transmit_errors", + "label": "GigabitEthernet6/0", "value": 0, - "unit": "B", + "unit": "c", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "error_counter_multiple_collision_frames", + "metric": "error_counter_single_collision_frames", "label": "GigabitEthernet1/0", "value": 0, "unit": "c", @@ -2328,9 +2308,9 @@ "max": null }, { - "metric": "interface_maxspeed_in", - "label": "GigabitEthernet2/0", - "value": 1000000000, + "metric": "traffic_counter_in", + "label": "GigabitEthernet8/0", + "value": 693224, "unit": "B", "warn": null, "crit": null, @@ -2338,28 +2318,28 @@ "max": null }, { - "metric": "interface_maxspeed_in", - "label": "GigabitEthernet5/0", - "value": 1000000000, - "unit": "B", + "metric": "error_counter_internal_mac_receive_errors", + "label": "GigabitEthernet8/0", + "value": 185, + "unit": "c", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "interface_maxspeed_out", - "label": "GigabitEthernet7/0", - "value": 1000000000, - "unit": "B", + "metric": "packet_counter_discard_out", + "label": "NULL0", + "value": 0, + "unit": "c", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "error_counter_excessive_collisions", - "label": "GigabitEthernet7/0", + "metric": "error_counter_FCSErrors", + "label": "GigabitEthernet2/0", "value": 0, "unit": "c", "warn": null, @@ -2368,18 +2348,18 @@ "max": null }, { - "metric": "traffic_counter_in", - "label": "Register-Tunnel0", + "metric": "packet_counter_discard_out", + "label": "InLoopBack0", "value": 0, - "unit": "B", + "unit": "c", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "error_counter_single_collision_frames", - "label": "GigabitEthernet2/0", + "metric": "error_counter_frame_too_longs", + "label": "GigabitEthernet7/0", "value": 0, "unit": "c", "warn": null, @@ -2388,8 +2368,8 @@ "max": null }, { - "metric": "error_counter_single_collision_frames", - "label": "GigabitEthernet3/0", + "metric": "packet_counter_multicast_out", + "label": "GigabitEthernet1/0", "value": 0, "unit": "c", "warn": null, @@ -2398,38 +2378,48 @@ "max": null }, { - "metric": "error_counter_in", - "label": "GigabitEthernet6/0", + "metric": "traffic_counter_in", + "label": "GigabitEthernet7/0", "value": 0, - "unit": "c", + "unit": "B", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "error_counter_dot3HCStatsFCSErrors", - "label": "GigabitEthernet7/0", - "value": 0, - "unit": "c", + "metric": "interface_admin_status", + "label": "Register-Tunnel0", + "value": 1, + "unit": "", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "error_counter_multiple_collision_frames", - "label": "GigabitEthernet8/0", + "metric": "traffic_counter_in", + "label": "GigabitEthernet5/0", "value": 0, - "unit": "c", + "unit": "B", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "packet_counter_discard_in", - "label": "InLoopBack0", + "metric": "interface_maxspeed_out", + "label": "GigabitEthernet6/0", + "value": 1000000000, + "unit": "B", + "warn": null, + "crit": null, + "min": null, + "max": null + }, + { + "metric": "error_counter_SQETest_errors", + "label": "GigabitEthernet8/0", "value": 0, "unit": "c", "warn": null, @@ -2438,7 +2428,7 @@ "max": null }, { - "metric": "error_counter_in", + "metric": "error_counter_dot3HCStatsFCSErrors", "label": "GigabitEthernet4/0", "value": 0, "unit": "c", @@ -2448,30 +2438,30 @@ "max": null }, { - "metric": "packet_counter_multicast_out", - "label": "GigabitEthernet6/0", - "value": 0, - "unit": "c", + "metric": "interface_maxspeed_in", + "label": "GigabitEthernet8/0", + "value": 1000000000, + "unit": "B", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "error_counter_carrier_sense_errors", - "label": "GigabitEthernet6/0", - "value": 0, - "unit": "c", + "metric": "interface_maxspeed_out", + "label": "GigabitEthernet1/0", + "value": 1000000000, + "unit": "B", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "packet_counter_unicast_out", - "label": "GigabitEthernet7/0", + "metric": "traffic_counter_out", + "label": "GigabitEthernet2/0", "value": 0, - "unit": "c", + "unit": "B", "warn": null, "crit": null, "min": null, @@ -2479,7 +2469,7 @@ }, { "metric": "error_counter_SQETest_errors", - "label": "GigabitEthernet7/0", + "label": "GigabitEthernet2/0", "value": 0, "unit": "c", "warn": null, @@ -2488,19 +2478,19 @@ "max": null }, { - "metric": "traffic_counter_in", - "label": "GigabitEthernet3/0", + "metric": "error_counter_excessive_collisions", + "label": "GigabitEthernet5/0", "value": 0, - "unit": "B", + "unit": "c", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "error_counter_SQETest_errors", - "label": "GigabitEthernet5/0", - "value": 0, + "metric": "packet_counter_multicast_in", + "label": "GigabitEthernet8/0", + "value": 27, "unit": "c", "warn": null, "crit": null, @@ -2508,17 +2498,17 @@ "max": null }, { - "metric": "error_counter_SQETest_errors", - "label": "GigabitEthernet1/0", - "value": 0, - "unit": "c", + "metric": "interface_oper_status", + "label": "InLoopBack0", + "value": 1, + "unit": "", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "error_counter_frame_too_longs", + "metric": "error_counter_multiple_collision_frames", "label": "GigabitEthernet1/0", "value": 0, "unit": "c", @@ -2528,10 +2518,10 @@ "max": null }, { - "metric": "traffic_counter_in", + "metric": "packet_counter_broadcast_out", "label": "GigabitEthernet2/0", "value": 0, - "unit": "B", + "unit": "c", "warn": null, "crit": null, "min": null, @@ -2539,7 +2529,7 @@ }, { "metric": "error_counter_internal_mac_transmit_errors", - "label": "GigabitEthernet2/0", + "label": "GigabitEthernet4/0", "value": 0, "unit": "c", "warn": null, @@ -2548,8 +2538,8 @@ "max": null }, { - "metric": "error_counter_late_collisions", - "label": "GigabitEthernet3/0", + "metric": "packet_counter_discard_out", + "label": "GigabitEthernet8/0", "value": 0, "unit": "c", "warn": null, @@ -2558,7 +2548,17 @@ "max": null }, { - "metric": "error_counter_out", + "metric": "interface_oper_status", + "label": "GigabitEthernet4/0", + "value": 1, + "unit": "", + "warn": null, + "crit": null, + "min": null, + "max": null + }, + { + "metric": "error_counter_late_collisions", "label": "GigabitEthernet5/0", "value": 0, "unit": "c", @@ -2568,7 +2568,7 @@ "max": null }, { - "metric": "packet_counter_broadcast_in", + "metric": "error_counter_late_collisions", "label": "GigabitEthernet7/0", "value": 0, "unit": "c", @@ -2582,7 +2582,7 @@ "messages": [ { "status": 0, - "message": "[{\"ifIndex\":\"17\",\"ifDescr\":\"GigabitEthernet1/0\",\"ifType\":\"ethernetCsmacd\",\"ifName\":\"GigabitEthernet1/0\",\"ifAlias\":\"GigabitEthernet1/0 Interface\",\"ifPhysAddress\":\"52:54:00:A0:CA:01\",\"ifAdminStatus\":\"up\",\"ifOperStatus\":\"up\"},{\"ifIndex\":\"33\",\"ifDescr\":\"GigabitEthernet2/0\",\"ifType\":\"ethernetCsmacd\",\"ifName\":\"GigabitEthernet2/0\",\"ifAlias\":\"GigabitEthernet2/0 Interface\",\"ifPhysAddress\":\"52:54:00:D1:2D:02\",\"ifAdminStatus\":\"up\",\"ifOperStatus\":\"up\"},{\"ifIndex\":\"49\",\"ifDescr\":\"GigabitEthernet3/0\",\"ifType\":\"ethernetCsmacd\",\"ifName\":\"GigabitEthernet3/0\",\"ifAlias\":\"GigabitEthernet3/0 Interface\",\"ifPhysAddress\":\"52:54:00:FC:26:03\",\"ifAdminStatus\":\"up\",\"ifOperStatus\":\"up\"},{\"ifIndex\":\"65\",\"ifDescr\":\"GigabitEthernet4/0\",\"ifType\":\"ethernetCsmacd\",\"ifName\":\"GigabitEthernet4/0\",\"ifAlias\":\"GigabitEthernet4/0 Interface\",\"ifPhysAddress\":\"52:54:00:CB:2A:04\",\"ifAdminStatus\":\"up\",\"ifOperStatus\":\"up\"},{\"ifIndex\":\"81\",\"ifDescr\":\"GigabitEthernet5/0\",\"ifType\":\"ethernetCsmacd\",\"ifName\":\"GigabitEthernet5/0\",\"ifAlias\":\"GigabitEthernet5/0 Interface\",\"ifPhysAddress\":\"52:54:00:EA:66:05\",\"ifAdminStatus\":\"up\",\"ifOperStatus\":\"up\"},{\"ifIndex\":\"97\",\"ifDescr\":\"GigabitEthernet6/0\",\"ifType\":\"ethernetCsmacd\",\"ifName\":\"GigabitEthernet6/0\",\"ifAlias\":\"GigabitEthernet6/0 Interface\",\"ifPhysAddress\":\"52:54:00:30:75:06\",\"ifAdminStatus\":\"up\",\"ifOperStatus\":\"up\"},{\"ifIndex\":\"113\",\"ifDescr\":\"GigabitEthernet7/0\",\"ifType\":\"ethernetCsmacd\",\"ifName\":\"GigabitEthernet7/0\",\"ifAlias\":\"GigabitEthernet7/0 Interface\",\"ifPhysAddress\":\"52:54:00:77:9D:07\",\"ifAdminStatus\":\"up\",\"ifOperStatus\":\"up\"},{\"ifIndex\":\"129\",\"ifDescr\":\"GigabitEthernet8/0\",\"ifType\":\"ethernetCsmacd\",\"ifName\":\"GigabitEthernet8/0\",\"ifAlias\":\"GigabitEthernet8/0 Interface\",\"ifPhysAddress\":\"52:54:00:BB:FC:00\",\"ifAdminStatus\":\"up\",\"ifOperStatus\":\"up\"},{\"ifIndex\":\"401\",\"ifDescr\":\"NULL0\",\"ifType\":\"other\",\"ifName\":\"NULL0\",\"ifAlias\":\"NULL0 Interface\",\"ifPhysAddress\":\"00:00:00:00:00:00\",\"ifAdminStatus\":\"up\",\"ifOperStatus\":\"up\"},{\"ifIndex\":\"402\",\"ifDescr\":\"InLoopBack0\",\"ifType\":\"softwareLoopback\",\"ifName\":\"InLoopBack0\",\"ifAlias\":\"InLoopBack0 Interface\",\"ifPhysAddress\":\"00:00:00:00:00:00\",\"ifAdminStatus\":\"up\",\"ifOperStatus\":\"up\"},{\"ifIndex\":\"403\",\"ifDescr\":\"Register-Tunnel0\",\"ifType\":\"other\",\"ifName\":\"Register-Tunnel0\",\"ifAlias\":\"Register-Tunnel0 Interface\",\"ifPhysAddress\":\"00:00:00:00:00:00\",\"ifAdminStatus\":\"up\",\"ifOperStatus\":\"up\"}]" + "message": "[{\"ifIndex\":\"17\",\"ifDescr\":\"GigabitEthernet1/0\",\"ifType\":\"ethernetCsmacd\",\"ifName\":\"GigabitEthernet1/0\",\"ifAlias\":\"GigabitEthernet1/0 Interface\",\"ifPhysAddress\":\"52:54:00:A0:CA:01\",\"ifAdminStatus\":\"up\",\"ifOperStatus\":\"up\",\"subType\":\"\"},{\"ifIndex\":\"33\",\"ifDescr\":\"GigabitEthernet2/0\",\"ifType\":\"ethernetCsmacd\",\"ifName\":\"GigabitEthernet2/0\",\"ifAlias\":\"GigabitEthernet2/0 Interface\",\"ifPhysAddress\":\"52:54:00:D1:2D:02\",\"ifAdminStatus\":\"up\",\"ifOperStatus\":\"up\",\"subType\":\"\"},{\"ifIndex\":\"49\",\"ifDescr\":\"GigabitEthernet3/0\",\"ifType\":\"ethernetCsmacd\",\"ifName\":\"GigabitEthernet3/0\",\"ifAlias\":\"GigabitEthernet3/0 Interface\",\"ifPhysAddress\":\"52:54:00:FC:26:03\",\"ifAdminStatus\":\"up\",\"ifOperStatus\":\"up\",\"subType\":\"\"},{\"ifIndex\":\"65\",\"ifDescr\":\"GigabitEthernet4/0\",\"ifType\":\"ethernetCsmacd\",\"ifName\":\"GigabitEthernet4/0\",\"ifAlias\":\"GigabitEthernet4/0 Interface\",\"ifPhysAddress\":\"52:54:00:CB:2A:04\",\"ifAdminStatus\":\"up\",\"ifOperStatus\":\"up\",\"subType\":\"\"},{\"ifIndex\":\"81\",\"ifDescr\":\"GigabitEthernet5/0\",\"ifType\":\"ethernetCsmacd\",\"ifName\":\"GigabitEthernet5/0\",\"ifAlias\":\"GigabitEthernet5/0 Interface\",\"ifPhysAddress\":\"52:54:00:EA:66:05\",\"ifAdminStatus\":\"up\",\"ifOperStatus\":\"up\",\"subType\":\"\"},{\"ifIndex\":\"97\",\"ifDescr\":\"GigabitEthernet6/0\",\"ifType\":\"ethernetCsmacd\",\"ifName\":\"GigabitEthernet6/0\",\"ifAlias\":\"GigabitEthernet6/0 Interface\",\"ifPhysAddress\":\"52:54:00:30:75:06\",\"ifAdminStatus\":\"up\",\"ifOperStatus\":\"up\",\"subType\":\"\"},{\"ifIndex\":\"113\",\"ifDescr\":\"GigabitEthernet7/0\",\"ifType\":\"ethernetCsmacd\",\"ifName\":\"GigabitEthernet7/0\",\"ifAlias\":\"GigabitEthernet7/0 Interface\",\"ifPhysAddress\":\"52:54:00:77:9D:07\",\"ifAdminStatus\":\"up\",\"ifOperStatus\":\"up\",\"subType\":\"\"},{\"ifIndex\":\"129\",\"ifDescr\":\"GigabitEthernet8/0\",\"ifType\":\"ethernetCsmacd\",\"ifName\":\"GigabitEthernet8/0\",\"ifAlias\":\"GigabitEthernet8/0 Interface\",\"ifPhysAddress\":\"52:54:00:BB:FC:00\",\"ifAdminStatus\":\"up\",\"ifOperStatus\":\"up\",\"subType\":\"\"},{\"ifIndex\":\"401\",\"ifDescr\":\"NULL0\",\"ifType\":\"other\",\"ifName\":\"NULL0\",\"ifAlias\":\"NULL0 Interface\",\"ifPhysAddress\":\"00:00:00:00:00:00\",\"ifAdminStatus\":\"up\",\"ifOperStatus\":\"up\",\"subType\":\"\"},{\"ifIndex\":\"402\",\"ifDescr\":\"InLoopBack0\",\"ifType\":\"softwareLoopback\",\"ifName\":\"InLoopBack0\",\"ifAlias\":\"InLoopBack0 Interface\",\"ifPhysAddress\":\"00:00:00:00:00:00\",\"ifAdminStatus\":\"up\",\"ifOperStatus\":\"up\",\"subType\":\"\"},{\"ifIndex\":\"403\",\"ifDescr\":\"Register-Tunnel0\",\"ifType\":\"other\",\"ifName\":\"Register-Tunnel0\",\"ifAlias\":\"Register-Tunnel0 Interface\",\"ifPhysAddress\":\"00:00:00:00:00:00\",\"ifAdminStatus\":\"up\",\"ifOperStatus\":\"up\",\"subType\":\"\"}]" } ] }, diff --git a/test/testdata/devices/ios/7206VXR/test_data.json b/test/testdata/devices/ios/7206VXR/test_data.json index dac77df..300f61c 100644 --- a/test/testdata/devices/ios/7206VXR/test_data.json +++ b/test/testdata/devices/ios/7206VXR/test_data.json @@ -18,47 +18,37 @@ "status_code": 0, "performance_data": [ { - "metric": "error_counter_excessive_collisions", - "label": "FastEthernet0/0", - "value": 0, - "unit": "c", - "warn": null, - "crit": null, - "min": null, - "max": null - }, - { - "metric": "packet_counter_unicast_out", + "metric": "interface_oper_status", "label": "VoIP-Null0", - "value": 0, - "unit": "c", + "value": 1, + "unit": "", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "traffic_counter_out", - "label": "VoIP-Null0", - "value": 0, - "unit": "B", + "metric": "interface_oper_status", + "label": "Null0", + "value": 1, + "unit": "", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "error_counter_in", + "metric": "interface_maxspeed_in", "label": "Null0", - "value": 0, - "unit": "c", + "value": 10000000000, + "unit": "B", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "error_counter_in", + "metric": "error_counter_deferred_transmissions", "label": "FastEthernet0/0", "value": 0, "unit": "c", @@ -68,27 +58,17 @@ "max": null }, { - "metric": "traffic_counter_in", + "metric": "error_counter_internal_mac_receive_errors", "label": "FastEthernet0/0", - "value": 7040724, - "unit": "B", - "warn": null, - "crit": null, - "min": null, - "max": null - }, - { - "metric": "traffic_counter_in", - "label": "VoIP-Null0", "value": 0, - "unit": "B", + "unit": "c", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "packet_counter_broadcast_out", + "metric": "packet_counter_discard_out", "label": "VoIP-Null0", "value": 0, "unit": "c", @@ -98,27 +78,17 @@ "max": null }, { - "metric": "interface_maxspeed_out", - "label": "VoIP-Null0", - "value": 10000000000, - "unit": "B", - "warn": null, - "crit": null, - "min": null, - "max": null - }, - { - "metric": "interface_admin_status", + "metric": "traffic_counter_in", "label": "Null0", - "value": 1, - "unit": "", + "value": 0, + "unit": "B", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "interface_maxspeed_in", + "metric": "interface_maxspeed_out", "label": "Null0", "value": 10000000000, "unit": "B", @@ -128,17 +98,17 @@ "max": null }, { - "metric": "packet_counter_broadcast_out", + "metric": "interface_maxspeed_out", "label": "FastEthernet0/0", - "value": 2, - "unit": "c", + "value": 100000000, + "unit": "B", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "error_counter_late_collisions", + "metric": "error_counter_carrier_sense_errors", "label": "FastEthernet0/0", "value": 0, "unit": "c", @@ -148,7 +118,7 @@ "max": null }, { - "metric": "packet_counter_unicast_in", + "metric": "error_counter_out", "label": "VoIP-Null0", "value": 0, "unit": "c", @@ -158,17 +128,7 @@ "max": null }, { - "metric": "traffic_counter_out", - "label": "FastEthernet0/0", - "value": 3399486, - "unit": "B", - "warn": null, - "crit": null, - "min": null, - "max": null - }, - { - "metric": "error_counter_out", + "metric": "packet_counter_unicast_out", "label": "VoIP-Null0", "value": 0, "unit": "c", @@ -188,7 +148,7 @@ "max": null }, { - "metric": "packet_counter_unicast_in", + "metric": "packet_counter_unicast_out", "label": "Null0", "value": 0, "unit": "c", @@ -198,18 +158,18 @@ "max": null }, { - "metric": "interface_admin_status", - "label": "VoIP-Null0", - "value": 1, - "unit": "", + "metric": "error_counter_alignment_errors", + "label": "FastEthernet0/0", + "value": 0, + "unit": "c", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "packet_counter_multicast_out", - "label": "VoIP-Null0", + "metric": "error_counter_late_collisions", + "label": "FastEthernet0/0", "value": 0, "unit": "c", "warn": null, @@ -218,19 +178,19 @@ "max": null }, { - "metric": "interface_maxspeed_in", - "label": "VoIP-Null0", - "value": 10000000000, - "unit": "B", + "metric": "error_counter_internal_mac_transmit_errors", + "label": "FastEthernet0/0", + "value": 0, + "unit": "c", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "packet_counter_multicast_in", + "metric": "packet_counter_broadcast_out", "label": "FastEthernet0/0", - "value": 19554, + "value": 2, "unit": "c", "warn": null, "crit": null, @@ -238,8 +198,8 @@ "max": null }, { - "metric": "error_counter_carrier_sense_errors", - "label": "FastEthernet0/0", + "metric": "packet_counter_discard_out", + "label": "Null0", "value": 0, "unit": "c", "warn": null, @@ -248,17 +208,17 @@ "max": null }, { - "metric": "packet_counter_multicast_out", - "label": "Null0", - "value": 0, - "unit": "c", + "metric": "interface_maxspeed_in", + "label": "FastEthernet0/0", + "value": 100000000, + "unit": "B", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "error_counter_out", + "metric": "error_counter_single_collision_frames", "label": "FastEthernet0/0", "value": 0, "unit": "c", @@ -268,9 +228,9 @@ "max": null }, { - "metric": "traffic_counter_in", - "label": "Null0", - "value": 0, + "metric": "traffic_counter_out", + "label": "FastEthernet0/0", + "value": 3399486, "unit": "B", "warn": null, "crit": null, @@ -278,7 +238,7 @@ "max": null }, { - "metric": "interface_admin_status", + "metric": "interface_oper_status", "label": "FastEthernet0/0", "value": 1, "unit": "", @@ -288,20 +248,20 @@ "max": null }, { - "metric": "traffic_counter_out", - "label": "Null0", - "value": 0, - "unit": "B", + "metric": "packet_counter_unicast_in", + "label": "FastEthernet0/0", + "value": 9091, + "unit": "c", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "error_counter_frame_too_longs", + "metric": "interface_admin_status", "label": "FastEthernet0/0", - "value": 0, - "unit": "c", + "value": 1, + "unit": "", "warn": null, "crit": null, "min": null, @@ -318,9 +278,9 @@ "max": null }, { - "metric": "packet_counter_broadcast_out", - "label": "Null0", - "value": 0, + "metric": "packet_counter_multicast_out", + "label": "FastEthernet0/0", + "value": 4854, "unit": "c", "warn": null, "crit": null, @@ -328,9 +288,9 @@ "max": null }, { - "metric": "interface_maxspeed_in", - "label": "FastEthernet0/0", - "value": 100000000, + "metric": "traffic_counter_in", + "label": "VoIP-Null0", + "value": 0, "unit": "B", "warn": null, "crit": null, @@ -338,9 +298,9 @@ "max": null }, { - "metric": "interface_maxspeed_out", - "label": "FastEthernet0/0", - "value": 100000000, + "metric": "traffic_counter_out", + "label": "VoIP-Null0", + "value": 0, "unit": "B", "warn": null, "crit": null, @@ -348,17 +308,27 @@ "max": null }, { - "metric": "interface_oper_status", + "metric": "packet_counter_multicast_in", + "label": "VoIP-Null0", + "value": 0, + "unit": "c", + "warn": null, + "crit": null, + "min": null, + "max": null + }, + { + "metric": "error_counter_SQETest_errors", "label": "FastEthernet0/0", - "value": 1, - "unit": "", + "value": 0, + "unit": "c", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "interface_oper_status", + "metric": "interface_admin_status", "label": "Null0", "value": 1, "unit": "", @@ -368,8 +338,8 @@ "max": null }, { - "metric": "packet_counter_multicast_in", - "label": "VoIP-Null0", + "metric": "error_counter_FCSErrors", + "label": "FastEthernet0/0", "value": 0, "unit": "c", "warn": null, @@ -378,7 +348,7 @@ "max": null }, { - "metric": "error_counter_FCSErrors", + "metric": "error_counter_multiple_collision_frames", "label": "FastEthernet0/0", "value": 0, "unit": "c", @@ -388,7 +358,7 @@ "max": null }, { - "metric": "error_counter_internal_mac_receive_errors", + "metric": "error_counter_excessive_collisions", "label": "FastEthernet0/0", "value": 0, "unit": "c", @@ -398,9 +368,9 @@ "max": null }, { - "metric": "packet_counter_broadcast_in", + "metric": "error_counter_frame_too_longs", "label": "FastEthernet0/0", - "value": 23653, + "value": 0, "unit": "c", "warn": null, "crit": null, @@ -408,8 +378,8 @@ "max": null }, { - "metric": "error_counter_multiple_collision_frames", - "label": "FastEthernet0/0", + "metric": "packet_counter_unicast_in", + "label": "Null0", "value": 0, "unit": "c", "warn": null, @@ -418,7 +388,17 @@ "max": null }, { - "metric": "error_counter_internal_mac_transmit_errors", + "metric": "packet_counter_broadcast_out", + "label": "Null0", + "value": 0, + "unit": "c", + "warn": null, + "crit": null, + "min": null, + "max": null + }, + { + "metric": "error_counter_in", "label": "FastEthernet0/0", "value": 0, "unit": "c", @@ -428,7 +408,7 @@ "max": null }, { - "metric": "interface_oper_status", + "metric": "interface_admin_status", "label": "VoIP-Null0", "value": 1, "unit": "", @@ -438,7 +418,7 @@ "max": null }, { - "metric": "packet_counter_discard_out", + "metric": "packet_counter_discard_in", "label": "FastEthernet0/0", "value": 0, "unit": "c", @@ -448,9 +428,9 @@ "max": null }, { - "metric": "packet_counter_unicast_in", - "label": "FastEthernet0/0", - "value": 9091, + "metric": "packet_counter_broadcast_in", + "label": "VoIP-Null0", + "value": 0, "unit": "c", "warn": null, "crit": null, @@ -458,8 +438,8 @@ "max": null }, { - "metric": "error_counter_deferred_transmissions", - "label": "FastEthernet0/0", + "metric": "packet_counter_multicast_in", + "label": "Null0", "value": 0, "unit": "c", "warn": null, @@ -468,8 +448,8 @@ "max": null }, { - "metric": "packet_counter_broadcast_in", - "label": "VoIP-Null0", + "metric": "packet_counter_multicast_out", + "label": "Null0", "value": 0, "unit": "c", "warn": null, @@ -478,9 +458,9 @@ "max": null }, { - "metric": "packet_counter_multicast_out", - "label": "FastEthernet0/0", - "value": 4854, + "metric": "packet_counter_unicast_in", + "label": "VoIP-Null0", + "value": 0, "unit": "c", "warn": null, "crit": null, @@ -488,8 +468,8 @@ "max": null }, { - "metric": "error_counter_alignment_errors", - "label": "FastEthernet0/0", + "metric": "packet_counter_broadcast_out", + "label": "VoIP-Null0", "value": 0, "unit": "c", "warn": null, @@ -498,17 +478,17 @@ "max": null }, { - "metric": "packet_counter_discard_in", + "metric": "interface_maxspeed_out", "label": "VoIP-Null0", - "value": 0, - "unit": "c", + "value": 10000000000, + "unit": "B", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "packet_counter_multicast_in", + "metric": "packet_counter_broadcast_in", "label": "Null0", "value": 0, "unit": "c", @@ -518,7 +498,7 @@ "max": null }, { - "metric": "packet_counter_discard_out", + "metric": "packet_counter_multicast_out", "label": "VoIP-Null0", "value": 0, "unit": "c", @@ -528,9 +508,9 @@ "max": null }, { - "metric": "interface_maxspeed_out", - "label": "Null0", - "value": 10000000000, + "metric": "traffic_counter_in", + "label": "FastEthernet0/0", + "value": 7040724, "unit": "B", "warn": null, "crit": null, @@ -548,8 +528,18 @@ "max": null }, { - "metric": "error_counter_SQETest_errors", - "label": "FastEthernet0/0", + "metric": "interface_maxspeed_in", + "label": "VoIP-Null0", + "value": 10000000000, + "unit": "B", + "warn": null, + "crit": null, + "min": null, + "max": null + }, + { + "metric": "error_counter_in", + "label": "Null0", "value": 0, "unit": "c", "warn": null, @@ -569,7 +559,7 @@ }, { "metric": "packet_counter_discard_out", - "label": "Null0", + "label": "FastEthernet0/0", "value": 0, "unit": "c", "warn": null, @@ -578,9 +568,9 @@ "max": null }, { - "metric": "packet_counter_unicast_out", - "label": "Null0", - "value": 0, + "metric": "packet_counter_multicast_in", + "label": "FastEthernet0/0", + "value": 19554, "unit": "c", "warn": null, "crit": null, @@ -589,8 +579,8 @@ }, { "metric": "packet_counter_broadcast_in", - "label": "Null0", - "value": 0, + "label": "FastEthernet0/0", + "value": 23653, "unit": "c", "warn": null, "crit": null, @@ -599,7 +589,7 @@ }, { "metric": "packet_counter_discard_in", - "label": "FastEthernet0/0", + "label": "VoIP-Null0", "value": 0, "unit": "c", "warn": null, @@ -608,7 +598,17 @@ "max": null }, { - "metric": "error_counter_single_collision_frames", + "metric": "traffic_counter_out", + "label": "Null0", + "value": 0, + "unit": "B", + "warn": null, + "crit": null, + "min": null, + "max": null + }, + { + "metric": "error_counter_out", "label": "FastEthernet0/0", "value": 0, "unit": "c", @@ -622,7 +622,7 @@ "messages": [ { "status": 0, - "message": "[{\"ifIndex\":\"1\",\"ifDescr\":\"FastEthernet0/0\",\"ifType\":\"ethernetCsmacd\",\"ifName\":\"Fa0/0\",\"ifAlias\":\"\",\"ifPhysAddress\":\"CA:01:16:E4:00:00\",\"ifAdminStatus\":\"up\",\"ifOperStatus\":\"up\"},{\"ifIndex\":\"2\",\"ifDescr\":\"VoIP-Null0\",\"ifType\":\"other\",\"ifName\":\"Vo0\",\"ifAlias\":\"\",\"ifPhysAddress\":\"\",\"ifAdminStatus\":\"up\",\"ifOperStatus\":\"up\"},{\"ifIndex\":\"3\",\"ifDescr\":\"Null0\",\"ifType\":\"other\",\"ifName\":\"Nu0\",\"ifAlias\":\"\",\"ifPhysAddress\":\"\",\"ifAdminStatus\":\"up\",\"ifOperStatus\":\"up\"}]" + "message": "[{\"ifIndex\":\"1\",\"ifDescr\":\"FastEthernet0/0\",\"ifType\":\"ethernetCsmacd\",\"ifName\":\"Fa0/0\",\"ifAlias\":\"\",\"ifPhysAddress\":\"CA:01:16:E4:00:00\",\"ifAdminStatus\":\"up\",\"ifOperStatus\":\"up\",\"subType\":\"\"},{\"ifIndex\":\"2\",\"ifDescr\":\"VoIP-Null0\",\"ifType\":\"other\",\"ifName\":\"Vo0\",\"ifAlias\":\"\",\"ifPhysAddress\":\"\",\"ifAdminStatus\":\"up\",\"ifOperStatus\":\"up\",\"subType\":\"\"},{\"ifIndex\":\"3\",\"ifDescr\":\"Null0\",\"ifType\":\"other\",\"ifName\":\"Nu0\",\"ifAlias\":\"\",\"ifPhysAddress\":\"\",\"ifAdminStatus\":\"up\",\"ifOperStatus\":\"up\",\"subType\":\"\"}]" } ] }, diff --git a/test/testdata/devices/routeros/CHR_1/test_data.json b/test/testdata/devices/routeros/CHR_1/test_data.json index 870d5d7..291e00c 100644 --- a/test/testdata/devices/routeros/CHR_1/test_data.json +++ b/test/testdata/devices/routeros/CHR_1/test_data.json @@ -18,10 +18,10 @@ "status_code": 0, "performance_data": [ { - "metric": "interface_maxspeed_in", - "label": "ether2", - "value": 1000000000, - "unit": "B", + "metric": "packet_counter_unicast_in", + "label": "ether21", + "value": 0, + "unit": "c", "warn": null, "crit": null, "min": null, @@ -29,7 +29,7 @@ }, { "metric": "interface_admin_status", - "label": "ether11", + "label": "ether28", "value": 1, "unit": "", "warn": null, @@ -38,38 +38,38 @@ "max": null }, { - "metric": "traffic_counter_in", - "label": "ether29", + "metric": "packet_counter_multicast_out", + "label": "ether32", "value": 0, - "unit": "B", + "unit": "c", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "interface_maxspeed_in", - "label": "ether24", - "value": 1000000000, - "unit": "B", + "metric": "error_counter_out", + "label": "ether15", + "value": 0, + "unit": "c", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "interface_oper_status", - "label": "ether2", - "value": 1, - "unit": "", + "metric": "interface_maxspeed_out", + "label": "ether19", + "value": 1000000000, + "unit": "B", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "packet_counter_multicast_in", - "label": "ether6", + "metric": "packet_counter_unicast_in", + "label": "ether25", "value": 0, "unit": "c", "warn": null, @@ -78,10 +78,10 @@ "max": null }, { - "metric": "interface_admin_status", - "label": "ether8", - "value": 1, - "unit": "", + "metric": "packet_counter_broadcast_in", + "label": "ether32", + "value": 0, + "unit": "c", "warn": null, "crit": null, "min": null, @@ -89,7 +89,7 @@ }, { "metric": "interface_admin_status", - "label": "ether17", + "label": "ether18", "value": 1, "unit": "", "warn": null, @@ -98,9 +98,9 @@ "max": null }, { - "metric": "packet_counter_unicast_out", - "label": "ether20", - "value": 549, + "metric": "packet_counter_unicast_in", + "label": "ether19", + "value": 0, "unit": "c", "warn": null, "crit": null, @@ -108,69 +108,69 @@ "max": null }, { - "metric": "traffic_counter_in", - "label": "ether8", + "metric": "error_counter_in", + "label": "ether22", "value": 0, - "unit": "B", + "unit": "c", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "packet_counter_discard_out", - "label": "ether13", - "value": 0, - "unit": "c", + "metric": "interface_admin_status", + "label": "ether22", + "value": 1, + "unit": "", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "packet_counter_broadcast_in", - "label": "ether16", - "value": 0, - "unit": "c", + "metric": "interface_maxspeed_in", + "label": "ether1", + "value": 1000000000, + "unit": "B", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "interface_maxspeed_out", - "label": "ether21", - "value": 1000000000, - "unit": "B", + "metric": "packet_counter_unicast_out", + "label": "ether1", + "value": 13374, + "unit": "c", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "traffic_counter_in", - "label": "ether23", + "metric": "packet_counter_multicast_in", + "label": "ether6", "value": 0, - "unit": "B", + "unit": "c", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "packet_counter_discard_in", - "label": "ether1", - "value": 0, - "unit": "c", + "metric": "interface_oper_status", + "label": "ether17", + "value": 1, + "unit": "", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "packet_counter_multicast_out", - "label": "ether7", - "value": 0, + "metric": "packet_counter_unicast_out", + "label": "ether2", + "value": 549, "unit": "c", "warn": null, "crit": null, @@ -178,18 +178,18 @@ "max": null }, { - "metric": "packet_counter_broadcast_out", - "label": "ether17", + "metric": "traffic_counter_in", + "label": "ether16", "value": 0, - "unit": "c", + "unit": "B", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "error_counter_in", - "label": "ether21", + "metric": "packet_counter_multicast_in", + "label": "ether20", "value": 0, "unit": "c", "warn": null, @@ -198,8 +198,8 @@ "max": null }, { - "metric": "packet_counter_unicast_in", - "label": "ether31", + "metric": "error_counter_out", + "label": "ether22", "value": 0, "unit": "c", "warn": null, @@ -208,9 +208,9 @@ "max": null }, { - "metric": "interface_maxspeed_in", - "label": "ether32", - "value": 1000000000, + "metric": "traffic_counter_out", + "label": "ether26", + "value": 61488, "unit": "B", "warn": null, "crit": null, @@ -218,10 +218,10 @@ "max": null }, { - "metric": "error_counter_in", - "label": "ether16", - "value": 0, - "unit": "c", + "metric": "interface_oper_status", + "label": "ether1", + "value": 1, + "unit": "", "warn": null, "crit": null, "min": null, @@ -229,7 +229,7 @@ }, { "metric": "error_counter_in", - "label": "ether12", + "label": "ether4", "value": 0, "unit": "c", "warn": null, @@ -238,29 +238,29 @@ "max": null }, { - "metric": "error_counter_in", - "label": "ether20", - "value": 0, - "unit": "c", + "metric": "interface_oper_status", + "label": "ether4", + "value": 1, + "unit": "", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "traffic_counter_in", - "label": "ether1", - "value": 1348329, - "unit": "B", + "metric": "error_counter_out", + "label": "ether14", + "value": 0, + "unit": "c", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "traffic_counter_in", - "label": "ether7", - "value": 0, + "metric": "interface_maxspeed_in", + "label": "ether15", + "value": 1000000000, "unit": "B", "warn": null, "crit": null, @@ -268,8 +268,8 @@ "max": null }, { - "metric": "error_counter_in", - "label": "ether9", + "metric": "error_counter_out", + "label": "ether32", "value": 0, "unit": "c", "warn": null, @@ -279,7 +279,7 @@ }, { "metric": "interface_admin_status", - "label": "ether10", + "label": "ether2", "value": 1, "unit": "", "warn": null, @@ -288,8 +288,8 @@ "max": null }, { - "metric": "interface_maxspeed_out", - "label": "ether13", + "metric": "interface_maxspeed_in", + "label": "ether7", "value": 1000000000, "unit": "B", "warn": null, @@ -298,8 +298,8 @@ "max": null }, { - "metric": "packet_counter_multicast_out", - "label": "ether15", + "metric": "error_counter_out", + "label": "ether9", "value": 0, "unit": "c", "warn": null, @@ -308,18 +308,18 @@ "max": null }, { - "metric": "traffic_counter_out", - "label": "ether10", - "value": 61488, - "unit": "B", + "metric": "error_counter_out", + "label": "ether13", + "value": 0, + "unit": "c", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "error_counter_in", - "label": "ether14", + "metric": "error_counter_out", + "label": "ether4", "value": 0, "unit": "c", "warn": null, @@ -328,8 +328,8 @@ "max": null }, { - "metric": "packet_counter_broadcast_out", - "label": "ether22", + "metric": "packet_counter_discard_out", + "label": "ether13", "value": 0, "unit": "c", "warn": null, @@ -339,7 +339,7 @@ }, { "metric": "packet_counter_broadcast_out", - "label": "ether30", + "label": "ether19", "value": 0, "unit": "c", "warn": null, @@ -348,8 +348,8 @@ "max": null }, { - "metric": "packet_counter_discard_out", - "label": "ether32", + "metric": "packet_counter_unicast_in", + "label": "ether22", "value": 0, "unit": "c", "warn": null, @@ -358,8 +358,8 @@ "max": null }, { - "metric": "packet_counter_multicast_in", - "label": "ether5", + "metric": "packet_counter_discard_out", + "label": "ether30", "value": 0, "unit": "c", "warn": null, @@ -368,9 +368,9 @@ "max": null }, { - "metric": "traffic_counter_out", - "label": "ether1", - "value": 3121399, + "metric": "traffic_counter_in", + "label": "ether9", + "value": 0, "unit": "B", "warn": null, "crit": null, @@ -378,60 +378,60 @@ "max": null }, { - "metric": "interface_oper_status", - "label": "ether4", - "value": 1, - "unit": "", + "metric": "packet_counter_multicast_in", + "label": "ether13", + "value": 0, + "unit": "c", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "interface_maxspeed_in", - "label": "ether13", - "value": 1000000000, - "unit": "B", + "metric": "packet_counter_multicast_out", + "label": "ether15", + "value": 0, + "unit": "c", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "interface_maxspeed_in", - "label": "ether17", - "value": 1000000000, - "unit": "B", + "metric": "error_counter_out", + "label": "ether16", + "value": 0, + "unit": "c", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "traffic_counter_out", - "label": "ether14", - "value": 61152, - "unit": "B", + "metric": "packet_counter_unicast_in", + "label": "ether30", + "value": 0, + "unit": "c", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "error_counter_in", - "label": "ether24", - "value": 0, - "unit": "c", + "metric": "interface_maxspeed_out", + "label": "ether27", + "value": 1000000000, + "unit": "B", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "packet_counter_unicast_in", - "label": "ether25", - "value": 0, - "unit": "c", + "metric": "interface_oper_status", + "label": "ether16", + "value": 1, + "unit": "", "warn": null, "crit": null, "min": null, @@ -439,7 +439,7 @@ }, { "metric": "packet_counter_multicast_out", - "label": "ether1", + "label": "ether25", "value": 0, "unit": "c", "warn": null, @@ -448,9 +448,9 @@ "max": null }, { - "metric": "packet_counter_multicast_in", - "label": "ether28", - "value": 0, + "metric": "packet_counter_unicast_out", + "label": "ether26", + "value": 549, "unit": "c", "warn": null, "crit": null, @@ -458,18 +458,18 @@ "max": null }, { - "metric": "packet_counter_multicast_out", - "label": "ether2", - "value": 0, - "unit": "c", + "metric": "interface_maxspeed_in", + "label": "ether32", + "value": 1000000000, + "unit": "B", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "packet_counter_discard_in", - "label": "ether8", + "metric": "packet_counter_discard_out", + "label": "ether3", "value": 0, "unit": "c", "warn": null, @@ -478,8 +478,8 @@ "max": null }, { - "metric": "error_counter_in", - "label": "ether10", + "metric": "packet_counter_broadcast_out", + "label": "ether21", "value": 0, "unit": "c", "warn": null, @@ -488,10 +488,10 @@ "max": null }, { - "metric": "packet_counter_broadcast_out", - "label": "ether14", - "value": 0, - "unit": "c", + "metric": "traffic_counter_out", + "label": "ether23", + "value": 61152, + "unit": "B", "warn": null, "crit": null, "min": null, @@ -508,8 +508,18 @@ "max": null }, { - "metric": "packet_counter_broadcast_in", - "label": "ether25", + "metric": "traffic_counter_out", + "label": "ether28", + "value": 61152, + "unit": "B", + "warn": null, + "crit": null, + "min": null, + "max": null + }, + { + "metric": "packet_counter_multicast_in", + "label": "ether28", "value": 0, "unit": "c", "warn": null, @@ -518,38 +528,38 @@ "max": null }, { - "metric": "interface_maxspeed_out", - "label": "ether18", - "value": 1000000000, - "unit": "B", + "metric": "packet_counter_unicast_in", + "label": "ether32", + "value": 0, + "unit": "c", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "interface_oper_status", - "label": "ether21", - "value": 1, - "unit": "", + "metric": "traffic_counter_out", + "label": "ether2", + "value": 60939, + "unit": "B", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "packet_counter_broadcast_out", - "label": "ether9", - "value": 0, - "unit": "c", + "metric": "interface_maxspeed_in", + "label": "ether2", + "value": 1000000000, + "unit": "B", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "packet_counter_broadcast_out", - "label": "ether10", + "metric": "packet_counter_multicast_in", + "label": "ether7", "value": 0, "unit": "c", "warn": null, @@ -558,8 +568,8 @@ "max": null }, { - "metric": "interface_oper_status", - "label": "ether22", + "metric": "interface_admin_status", + "label": "ether21", "value": 1, "unit": "", "warn": null, @@ -568,9 +578,9 @@ "max": null }, { - "metric": "interface_maxspeed_in", - "label": "ether28", - "value": 1000000000, + "metric": "traffic_counter_in", + "label": "ether25", + "value": 0, "unit": "B", "warn": null, "crit": null, @@ -578,9 +588,9 @@ "max": null }, { - "metric": "packet_counter_unicast_out", - "label": "ether30", - "value": 546, + "metric": "packet_counter_multicast_in", + "label": "ether25", + "value": 0, "unit": "c", "warn": null, "crit": null, @@ -588,40 +598,40 @@ "max": null }, { - "metric": "traffic_counter_out", - "label": "ether2", - "value": 60939, - "unit": "B", + "metric": "packet_counter_unicast_out", + "label": "ether28", + "value": 546, + "unit": "c", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "interface_maxspeed_in", - "label": "ether3", - "value": 1000000000, - "unit": "B", + "metric": "packet_counter_broadcast_out", + "label": "ether2", + "value": 0, + "unit": "c", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "interface_oper_status", - "label": "ether10", - "value": 1, - "unit": "", + "metric": "traffic_counter_in", + "label": "ether5", + "value": 0, + "unit": "B", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "traffic_counter_out", - "label": "ether17", - "value": 61152, - "unit": "B", + "metric": "error_counter_in", + "label": "ether8", + "value": 0, + "unit": "c", "warn": null, "crit": null, "min": null, @@ -629,7 +639,7 @@ }, { "metric": "interface_admin_status", - "label": "ether23", + "label": "ether11", "value": 1, "unit": "", "warn": null, @@ -638,8 +648,8 @@ "max": null }, { - "metric": "packet_counter_broadcast_in", - "label": "ether23", + "metric": "error_counter_out", + "label": "ether12", "value": 0, "unit": "c", "warn": null, @@ -648,49 +658,49 @@ "max": null }, { - "metric": "interface_maxspeed_out", - "label": "ether23", - "value": 1000000000, - "unit": "B", + "metric": "packet_counter_multicast_out", + "label": "ether18", + "value": 0, + "unit": "c", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "interface_maxspeed_in", - "label": "ether29", - "value": 1000000000, - "unit": "B", + "metric": "interface_admin_status", + "label": "ether19", + "value": 1, + "unit": "", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "interface_maxspeed_out", - "label": "ether9", - "value": 1000000000, - "unit": "B", + "metric": "packet_counter_broadcast_out", + "label": "ether31", + "value": 0, + "unit": "c", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "interface_admin_status", - "label": "ether13", - "value": 1, - "unit": "", + "metric": "error_counter_in", + "label": "ether14", + "value": 0, + "unit": "c", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "packet_counter_unicast_out", - "label": "ether18", - "value": 549, + "metric": "error_counter_in", + "label": "ether25", + "value": 0, "unit": "c", "warn": null, "crit": null, @@ -698,19 +708,19 @@ "max": null }, { - "metric": "interface_admin_status", - "label": "ether22", - "value": 1, - "unit": "", + "metric": "packet_counter_unicast_out", + "label": "ether31", + "value": 549, + "unit": "c", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "error_counter_out", - "label": "ether28", - "value": 0, + "metric": "packet_counter_unicast_out", + "label": "ether7", + "value": 546, "unit": "c", "warn": null, "crit": null, @@ -718,8 +728,8 @@ "max": null }, { - "metric": "error_counter_out", - "label": "ether4", + "metric": "packet_counter_multicast_out", + "label": "ether17", "value": 0, "unit": "c", "warn": null, @@ -728,7 +738,7 @@ "max": null }, { - "metric": "packet_counter_broadcast_out", + "metric": "packet_counter_unicast_in", "label": "ether5", "value": 0, "unit": "c", @@ -738,18 +748,18 @@ "max": null }, { - "metric": "packet_counter_discard_in", - "label": "ether7", - "value": 0, - "unit": "c", + "metric": "interface_maxspeed_out", + "label": "ether15", + "value": 1000000000, + "unit": "B", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "packet_counter_broadcast_out", - "label": "ether21", + "metric": "error_counter_out", + "label": "ether17", "value": 0, "unit": "c", "warn": null, @@ -758,9 +768,9 @@ "max": null }, { - "metric": "interface_maxspeed_in", - "label": "ether21", - "value": 1000000000, + "metric": "traffic_counter_in", + "label": "ether3", + "value": 0, "unit": "B", "warn": null, "crit": null, @@ -768,18 +778,18 @@ "max": null }, { - "metric": "interface_maxspeed_out", - "label": "ether28", - "value": 1000000000, - "unit": "B", + "metric": "interface_admin_status", + "label": "ether9", + "value": 1, + "unit": "", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "packet_counter_broadcast_out", - "label": "ether1", + "metric": "packet_counter_multicast_in", + "label": "ether12", "value": 0, "unit": "c", "warn": null, @@ -789,7 +799,7 @@ }, { "metric": "packet_counter_broadcast_out", - "label": "ether4", + "label": "ether14", "value": 0, "unit": "c", "warn": null, @@ -798,19 +808,29 @@ "max": null }, { - "metric": "packet_counter_unicast_out", - "label": "ether12", - "value": 549, - "unit": "c", + "metric": "traffic_counter_out", + "label": "ether5", + "value": 60606, + "unit": "B", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "traffic_counter_in", - "label": "ether24", + "metric": "packet_counter_broadcast_out", + "label": "ether8", "value": 0, + "unit": "c", + "warn": null, + "crit": null, + "min": null, + "max": null + }, + { + "metric": "interface_maxspeed_out", + "label": "ether8", + "value": 1000000000, "unit": "B", "warn": null, "crit": null, @@ -818,8 +838,8 @@ "max": null }, { - "metric": "packet_counter_discard_out", - "label": "ether26", + "metric": "packet_counter_broadcast_out", + "label": "ether11", "value": 0, "unit": "c", "warn": null, @@ -828,30 +848,30 @@ "max": null }, { - "metric": "interface_admin_status", - "label": "ether3", - "value": 1, - "unit": "", + "metric": "interface_maxspeed_in", + "label": "ether19", + "value": 1000000000, + "unit": "B", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "interface_maxspeed_out", - "label": "ether3", - "value": 1000000000, - "unit": "B", + "metric": "packet_counter_broadcast_out", + "label": "ether7", + "value": 0, + "unit": "c", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "interface_maxspeed_in", - "label": "ether6", - "value": 1000000000, - "unit": "B", + "metric": "packet_counter_discard_in", + "label": "ether10", + "value": 0, + "unit": "c", "warn": null, "crit": null, "min": null, @@ -859,7 +879,7 @@ }, { "metric": "interface_oper_status", - "label": "ether9", + "label": "ether31", "value": 1, "unit": "", "warn": null, @@ -868,18 +888,18 @@ "max": null }, { - "metric": "traffic_counter_in", - "label": "ether10", + "metric": "error_counter_out", + "label": "ether1", "value": 0, - "unit": "B", + "unit": "c", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "packet_counter_multicast_out", - "label": "ether13", + "metric": "packet_counter_discard_out", + "label": "ether2", "value": 0, "unit": "c", "warn": null, @@ -888,50 +908,50 @@ "max": null }, { - "metric": "packet_counter_unicast_in", - "label": "ether17", - "value": 0, - "unit": "c", + "metric": "traffic_counter_out", + "label": "ether9", + "value": 60606, + "unit": "B", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "packet_counter_discard_out", + "metric": "interface_maxspeed_out", "label": "ether9", - "value": 0, - "unit": "c", + "value": 1000000000, + "unit": "B", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "packet_counter_discard_out", - "label": "ether16", - "value": 0, - "unit": "c", + "metric": "interface_maxspeed_out", + "label": "ether25", + "value": 1000000000, + "unit": "B", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "error_counter_out", - "label": "ether30", - "value": 0, - "unit": "c", + "metric": "interface_maxspeed_out", + "label": "ether28", + "value": 1000000000, + "unit": "B", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "traffic_counter_in", - "label": "ether30", + "metric": "packet_counter_multicast_in", + "label": "ether2", "value": 0, - "unit": "B", + "unit": "c", "warn": null, "crit": null, "min": null, @@ -939,7 +959,7 @@ }, { "metric": "packet_counter_multicast_out", - "label": "ether32", + "label": "ether3", "value": 0, "unit": "c", "warn": null, @@ -948,9 +968,9 @@ "max": null }, { - "metric": "packet_counter_discard_out", - "label": "ether2", - "value": 0, + "metric": "packet_counter_unicast_out", + "label": "ether8", + "value": 546, "unit": "c", "warn": null, "crit": null, @@ -958,9 +978,9 @@ "max": null }, { - "metric": "interface_maxspeed_out", - "label": "ether2", - "value": 1000000000, + "metric": "traffic_counter_in", + "label": "ether11", + "value": 0, "unit": "B", "warn": null, "crit": null, @@ -968,18 +988,18 @@ "max": null }, { - "metric": "packet_counter_unicast_in", - "label": "ether16", - "value": 0, - "unit": "c", + "metric": "interface_maxspeed_in", + "label": "ether13", + "value": 1000000000, + "unit": "B", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "packet_counter_discard_in", - "label": "ether3", + "metric": "packet_counter_unicast_in", + "label": "ether29", "value": 0, "unit": "c", "warn": null, @@ -988,8 +1008,8 @@ "max": null }, { - "metric": "packet_counter_discard_in", - "label": "ether31", + "metric": "packet_counter_unicast_in", + "label": "ether17", "value": 0, "unit": "c", "warn": null, @@ -998,8 +1018,8 @@ "max": null }, { - "metric": "packet_counter_discard_out", - "label": "ether6", + "metric": "packet_counter_multicast_out", + "label": "ether30", "value": 0, "unit": "c", "warn": null, @@ -1008,8 +1028,8 @@ "max": null }, { - "metric": "packet_counter_broadcast_in", - "label": "ether14", + "metric": "packet_counter_unicast_in", + "label": "ether20", "value": 0, "unit": "c", "warn": null, @@ -1018,18 +1038,18 @@ "max": null }, { - "metric": "interface_maxspeed_out", - "label": "ether19", - "value": 1000000000, - "unit": "B", + "metric": "error_counter_out", + "label": "ether23", + "value": 0, + "unit": "c", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "packet_counter_broadcast_in", - "label": "ether24", + "metric": "packet_counter_multicast_out", + "label": "ether23", "value": 0, "unit": "c", "warn": null, @@ -1038,38 +1058,38 @@ "max": null }, { - "metric": "interface_maxspeed_out", - "label": "ether32", - "value": 1000000000, - "unit": "B", + "metric": "error_counter_out", + "label": "ether29", + "value": 0, + "unit": "c", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "interface_maxspeed_in", + "metric": "packet_counter_broadcast_out", "label": "ether1", - "value": 1000000000, - "unit": "B", + "value": 0, + "unit": "c", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "packet_counter_broadcast_in", + "metric": "interface_oper_status", "label": "ether8", - "value": 0, - "unit": "c", + "value": 1, + "unit": "", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "packet_counter_unicast_in", - "label": "ether8", + "metric": "packet_counter_broadcast_in", + "label": "ether12", "value": 0, "unit": "c", "warn": null, @@ -1079,7 +1099,7 @@ }, { "metric": "interface_maxspeed_out", - "label": "ether12", + "label": "ether14", "value": 1000000000, "unit": "B", "warn": null, @@ -1088,19 +1108,19 @@ "max": null }, { - "metric": "interface_maxspeed_out", - "label": "ether16", - "value": 1000000000, - "unit": "B", + "metric": "error_counter_in", + "label": "ether2", + "value": 0, + "unit": "c", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "packet_counter_unicast_out", - "label": "ether23", - "value": 546, + "metric": "packet_counter_broadcast_out", + "label": "ether10", + "value": 0, "unit": "c", "warn": null, "crit": null, @@ -1109,7 +1129,7 @@ }, { "metric": "packet_counter_broadcast_in", - "label": "ether26", + "label": "ether29", "value": 0, "unit": "c", "warn": null, @@ -1118,8 +1138,8 @@ "max": null }, { - "metric": "error_counter_in", - "label": "ether31", + "metric": "packet_counter_multicast_out", + "label": "ether6", "value": 0, "unit": "c", "warn": null, @@ -1128,8 +1148,8 @@ "max": null }, { - "metric": "error_counter_in", - "label": "ether13", + "metric": "packet_counter_unicast_in", + "label": "ether7", "value": 0, "unit": "c", "warn": null, @@ -1138,8 +1158,8 @@ "max": null }, { - "metric": "packet_counter_discard_out", - "label": "ether19", + "metric": "error_counter_in", + "label": "ether9", "value": 0, "unit": "c", "warn": null, @@ -1148,19 +1168,19 @@ "max": null }, { - "metric": "interface_admin_status", - "label": "ether19", - "value": 1, - "unit": "", + "metric": "traffic_counter_in", + "label": "ether6", + "value": 0, + "unit": "B", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "packet_counter_unicast_out", - "label": "ether21", - "value": 549, + "metric": "packet_counter_multicast_in", + "label": "ether10", + "value": 0, "unit": "c", "warn": null, "crit": null, @@ -1168,9 +1188,9 @@ "max": null }, { - "metric": "traffic_counter_out", + "metric": "interface_maxspeed_in", "label": "ether22", - "value": 61152, + "value": 1000000000, "unit": "B", "warn": null, "crit": null, @@ -1178,8 +1198,8 @@ "max": null }, { - "metric": "packet_counter_unicast_in", - "label": "ether23", + "metric": "error_counter_out", + "label": "ether26", "value": 0, "unit": "c", "warn": null, @@ -1188,20 +1208,20 @@ "max": null }, { - "metric": "interface_oper_status", - "label": "ether26", - "value": 1, - "unit": "", + "metric": "packet_counter_unicast_out", + "label": "ether20", + "value": 549, + "unit": "c", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "traffic_counter_out", - "label": "ether27", - "value": 61152, - "unit": "B", + "metric": "interface_admin_status", + "label": "ether29", + "value": 1, + "unit": "", "warn": null, "crit": null, "min": null, @@ -1209,7 +1229,7 @@ }, { "metric": "packet_counter_multicast_out", - "label": "ether28", + "label": "ether29", "value": 0, "unit": "c", "warn": null, @@ -1218,28 +1238,28 @@ "max": null }, { - "metric": "interface_oper_status", - "label": "ether30", - "value": 1, - "unit": "", + "metric": "interface_maxspeed_out", + "label": "ether21", + "value": 1000000000, + "unit": "B", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "packet_counter_unicast_out", - "label": "ether9", - "value": 546, - "unit": "c", + "metric": "traffic_counter_in", + "label": "ether1", + "value": 1348329, + "unit": "B", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "error_counter_in", - "label": "ether22", + "metric": "packet_counter_multicast_out", + "label": "ether11", "value": 0, "unit": "c", "warn": null, @@ -1248,8 +1268,8 @@ "max": null }, { - "metric": "packet_counter_broadcast_out", - "label": "ether3", + "metric": "packet_counter_discard_out", + "label": "ether21", "value": 0, "unit": "c", "warn": null, @@ -1258,10 +1278,10 @@ "max": null }, { - "metric": "traffic_counter_out", - "label": "ether7", - "value": 60606, - "unit": "B", + "metric": "packet_counter_unicast_out", + "label": "ether25", + "value": 546, + "unit": "c", "warn": null, "crit": null, "min": null, @@ -1269,7 +1289,7 @@ }, { "metric": "traffic_counter_in", - "label": "ether25", + "label": "ether7", "value": 0, "unit": "B", "warn": null, @@ -1278,8 +1298,8 @@ "max": null }, { - "metric": "error_counter_in", - "label": "ether2", + "metric": "packet_counter_multicast_out", + "label": "ether8", "value": 0, "unit": "c", "warn": null, @@ -1288,9 +1308,9 @@ "max": null }, { - "metric": "packet_counter_unicast_out", - "label": "ether14", - "value": 546, + "metric": "error_counter_in", + "label": "ether26", + "value": 0, "unit": "c", "warn": null, "crit": null, @@ -1298,10 +1318,10 @@ "max": null }, { - "metric": "traffic_counter_out", - "label": "ether15", - "value": 61488, - "unit": "B", + "metric": "packet_counter_multicast_in", + "label": "ether26", + "value": 0, + "unit": "c", "warn": null, "crit": null, "min": null, @@ -1309,7 +1329,7 @@ }, { "metric": "packet_counter_discard_out", - "label": "ether24", + "label": "ether15", "value": 0, "unit": "c", "warn": null, @@ -1318,7 +1338,7 @@ "max": null }, { - "metric": "error_counter_out", + "metric": "packet_counter_broadcast_out", "label": "ether25", "value": 0, "unit": "c", @@ -1327,9 +1347,19 @@ "min": null, "max": null }, + { + "metric": "packet_counter_unicast_in", + "label": "ether23", + "value": 0, + "unit": "c", + "warn": null, + "crit": null, + "min": null, + "max": null + }, { "metric": "interface_maxspeed_in", - "label": "ether26", + "label": "ether29", "value": 1000000000, "unit": "B", "warn": null, @@ -1338,10 +1368,10 @@ "max": null }, { - "metric": "interface_oper_status", - "label": "ether31", - "value": 1, - "unit": "", + "metric": "interface_maxspeed_out", + "label": "ether29", + "value": 1000000000, + "unit": "B", "warn": null, "crit": null, "min": null, @@ -1349,7 +1379,7 @@ }, { "metric": "traffic_counter_in", - "label": "ether14", + "label": "ether31", "value": 0, "unit": "B", "warn": null, @@ -1358,8 +1388,8 @@ "max": null }, { - "metric": "packet_counter_multicast_in", - "label": "ether14", + "metric": "packet_counter_multicast_out", + "label": "ether1", "value": 0, "unit": "c", "warn": null, @@ -1369,7 +1399,7 @@ }, { "metric": "packet_counter_discard_out", - "label": "ether18", + "label": "ether4", "value": 0, "unit": "c", "warn": null, @@ -1378,9 +1408,9 @@ "max": null }, { - "metric": "traffic_counter_in", - "label": "ether18", - "value": 0, + "metric": "interface_maxspeed_in", + "label": "ether14", + "value": 1000000000, "unit": "B", "warn": null, "crit": null, @@ -1388,9 +1418,9 @@ "max": null }, { - "metric": "packet_counter_unicast_out", - "label": "ether8", - "value": 546, + "metric": "packet_counter_multicast_out", + "label": "ether20", + "value": 0, "unit": "c", "warn": null, "crit": null, @@ -1398,8 +1428,8 @@ "max": null }, { - "metric": "packet_counter_discard_in", - "label": "ether22", + "metric": "packet_counter_broadcast_in", + "label": "ether20", "value": 0, "unit": "c", "warn": null, @@ -1408,8 +1438,8 @@ "max": null }, { - "metric": "interface_maxspeed_out", - "label": "ether25", + "metric": "interface_maxspeed_in", + "label": "ether31", "value": 1000000000, "unit": "B", "warn": null, @@ -1418,9 +1448,9 @@ "max": null }, { - "metric": "packet_counter_broadcast_in", - "label": "ether11", - "value": 0, + "metric": "packet_counter_unicast_in", + "label": "ether1", + "value": 12788, "unit": "c", "warn": null, "crit": null, @@ -1428,8 +1458,8 @@ "max": null }, { - "metric": "packet_counter_multicast_in", - "label": "ether22", + "metric": "packet_counter_multicast_out", + "label": "ether16", "value": 0, "unit": "c", "warn": null, @@ -1438,9 +1468,9 @@ "max": null }, { - "metric": "packet_counter_broadcast_out", - "label": "ether23", - "value": 0, + "metric": "packet_counter_unicast_out", + "label": "ether32", + "value": 549, "unit": "c", "warn": null, "crit": null, @@ -1448,8 +1478,8 @@ "max": null }, { - "metric": "error_counter_out", - "label": "ether29", + "metric": "error_counter_in", + "label": "ether20", "value": 0, "unit": "c", "warn": null, @@ -1458,39 +1488,39 @@ "max": null }, { - "metric": "interface_maxspeed_out", - "label": "ether29", - "value": 1000000000, - "unit": "B", + "metric": "packet_counter_unicast_in", + "label": "ether31", + "value": 0, + "unit": "c", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "error_counter_out", - "label": "ether3", - "value": 0, - "unit": "c", + "metric": "interface_oper_status", + "label": "ether5", + "value": 1, + "unit": "", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "traffic_counter_in", - "label": "ether6", - "value": 0, - "unit": "B", + "metric": "interface_oper_status", + "label": "ether10", + "value": 1, + "unit": "", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "packet_counter_unicast_out", - "label": "ether11", - "value": 546, + "metric": "packet_counter_discard_out", + "label": "ether20", + "value": 0, "unit": "c", "warn": null, "crit": null, @@ -1499,7 +1529,7 @@ }, { "metric": "packet_counter_unicast_out", - "label": "ether27", + "label": "ether29", "value": 546, "unit": "c", "warn": null, @@ -1509,17 +1539,7 @@ }, { "metric": "traffic_counter_out", - "label": "ether31", - "value": 61488, - "unit": "B", - "warn": null, - "crit": null, - "min": null, - "max": null - }, - { - "metric": "traffic_counter_out", - "label": "ether4", + "label": "ether3", "value": 60939, "unit": "B", "warn": null, @@ -1528,18 +1548,8 @@ "max": null }, { - "metric": "packet_counter_discard_out", - "label": "ether10", - "value": 0, - "unit": "c", - "warn": null, - "crit": null, - "min": null, - "max": null - }, - { - "metric": "packet_counter_multicast_out", - "label": "ether21", + "metric": "packet_counter_discard_in", + "label": "ether4", "value": 0, "unit": "c", "warn": null, @@ -1548,18 +1558,8 @@ "max": null }, { - "metric": "traffic_counter_in", - "label": "ether11", - "value": 0, - "unit": "B", - "warn": null, - "crit": null, - "min": null, - "max": null - }, - { - "metric": "packet_counter_broadcast_in", - "label": "ether15", + "metric": "packet_counter_unicast_in", + "label": "ether6", "value": 0, "unit": "c", "warn": null, @@ -1569,7 +1569,7 @@ }, { "metric": "packet_counter_discard_in", - "label": "ether28", + "label": "ether9", "value": 0, "unit": "c", "warn": null, @@ -1578,18 +1578,8 @@ "max": null }, { - "metric": "interface_oper_status", - "label": "ether28", - "value": 1, - "unit": "", - "warn": null, - "crit": null, - "min": null, - "max": null - }, - { - "metric": "packet_counter_broadcast_in", - "label": "ether29", + "metric": "packet_counter_discard_out", + "label": "ether14", "value": 0, "unit": "c", "warn": null, @@ -1598,19 +1588,19 @@ "max": null }, { - "metric": "packet_counter_multicast_in", - "label": "ether1", - "value": 0, - "unit": "c", + "metric": "interface_oper_status", + "label": "ether15", + "value": 1, + "unit": "", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "traffic_counter_out", - "label": "ether12", - "value": 61488, + "metric": "traffic_counter_in", + "label": "ether24", + "value": 0, "unit": "B", "warn": null, "crit": null, @@ -1618,8 +1608,8 @@ "max": null }, { - "metric": "error_counter_in", - "label": "ether15", + "metric": "packet_counter_discard_in", + "label": "ether30", "value": 0, "unit": "c", "warn": null, @@ -1628,9 +1618,9 @@ "max": null }, { - "metric": "traffic_counter_out", - "label": "ether30", - "value": 61152, + "metric": "interface_maxspeed_in", + "label": "ether11", + "value": 1000000000, "unit": "B", "warn": null, "crit": null, @@ -1639,7 +1629,7 @@ }, { "metric": "packet_counter_multicast_in", - "label": "ether9", + "label": "ether14", "value": 0, "unit": "c", "warn": null, @@ -1658,18 +1648,18 @@ "max": null }, { - "metric": "packet_counter_broadcast_out", - "label": "ether20", - "value": 0, - "unit": "c", + "metric": "interface_oper_status", + "label": "ether21", + "value": 1, + "unit": "", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "error_counter_in", - "label": "ether29", + "metric": "packet_counter_broadcast_out", + "label": "ether26", "value": 0, "unit": "c", "warn": null, @@ -1678,9 +1668,9 @@ "max": null }, { - "metric": "traffic_counter_out", - "label": "ether32", - "value": 61488, + "metric": "interface_maxspeed_out", + "label": "ether7", + "value": 1000000000, "unit": "B", "warn": null, "crit": null, @@ -1688,20 +1678,20 @@ "max": null }, { - "metric": "packet_counter_broadcast_in", - "label": "ether5", - "value": 0, - "unit": "c", + "metric": "traffic_counter_out", + "label": "ether11", + "value": 61152, + "unit": "B", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "traffic_counter_out", - "label": "ether8", - "value": 60606, - "unit": "B", + "metric": "interface_admin_status", + "label": "ether15", + "value": 1, + "unit": "", "warn": null, "crit": null, "min": null, @@ -1709,7 +1699,7 @@ }, { "metric": "packet_counter_multicast_in", - "label": "ether16", + "label": "ether15", "value": 0, "unit": "c", "warn": null, @@ -1718,19 +1708,9 @@ "max": null }, { - "metric": "interface_maxspeed_in", - "label": "ether10", - "value": 1000000000, - "unit": "B", - "warn": null, - "crit": null, - "min": null, - "max": null - }, - { - "metric": "traffic_counter_out", - "label": "ether16", - "value": 61488, + "metric": "traffic_counter_in", + "label": "ether20", + "value": 0, "unit": "B", "warn": null, "crit": null, @@ -1738,8 +1718,8 @@ "max": null }, { - "metric": "packet_counter_broadcast_out", - "label": "ether16", + "metric": "packet_counter_broadcast_in", + "label": "ether24", "value": 0, "unit": "c", "warn": null, @@ -1748,8 +1728,8 @@ "max": null }, { - "metric": "packet_counter_multicast_in", - "label": "ether32", + "metric": "packet_counter_discard_out", + "label": "ether25", "value": 0, "unit": "c", "warn": null, @@ -1758,38 +1738,28 @@ "max": null }, { - "metric": "interface_admin_status", - "label": "ether29", - "value": 1, - "unit": "", - "warn": null, - "crit": null, - "min": null, - "max": null - }, - { - "metric": "packet_counter_unicast_in", - "label": "ether22", + "metric": "traffic_counter_in", + "label": "ether26", "value": 0, - "unit": "c", + "unit": "B", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "interface_oper_status", - "label": "ether1", - "value": 1, - "unit": "", + "metric": "interface_maxspeed_in", + "label": "ether26", + "value": 1000000000, + "unit": "B", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "packet_counter_unicast_in", - "label": "ether7", + "metric": "packet_counter_broadcast_in", + "label": "ether28", "value": 0, "unit": "c", "warn": null, @@ -1799,7 +1769,7 @@ }, { "metric": "traffic_counter_in", - "label": "ether9", + "label": "ether29", "value": 0, "unit": "B", "warn": null, @@ -1808,18 +1778,18 @@ "max": null }, { - "metric": "packet_counter_broadcast_in", - "label": "ether28", + "metric": "traffic_counter_in", + "label": "ether2", "value": 0, - "unit": "c", + "unit": "B", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "packet_counter_broadcast_in", - "label": "ether3", + "metric": "error_counter_in", + "label": "ether15", "value": 0, "unit": "c", "warn": null, @@ -1828,28 +1798,28 @@ "max": null }, { - "metric": "packet_counter_multicast_out", - "label": "ether9", - "value": 0, - "unit": "c", + "metric": "traffic_counter_out", + "label": "ether15", + "value": 61488, + "unit": "B", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "interface_oper_status", - "label": "ether14", - "value": 1, - "unit": "", + "metric": "traffic_counter_out", + "label": "ether18", + "value": 61488, + "unit": "B", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "packet_counter_discard_in", - "label": "ether13", + "metric": "packet_counter_multicast_out", + "label": "ether21", "value": 0, "unit": "c", "warn": null, @@ -1858,10 +1828,10 @@ "max": null }, { - "metric": "interface_oper_status", - "label": "ether16", - "value": 1, - "unit": "", + "metric": "packet_counter_discard_out", + "label": "ether29", + "value": 0, + "unit": "c", "warn": null, "crit": null, "min": null, @@ -1869,8 +1839,8 @@ }, { "metric": "traffic_counter_out", - "label": "ether21", - "value": 61488, + "label": "ether30", + "value": 61152, "unit": "B", "warn": null, "crit": null, @@ -1878,8 +1848,8 @@ "max": null }, { - "metric": "error_counter_out", - "label": "ether26", + "metric": "packet_counter_broadcast_in", + "label": "ether14", "value": 0, "unit": "c", "warn": null, @@ -1888,30 +1858,30 @@ "max": null }, { - "metric": "interface_admin_status", - "label": "ether30", - "value": 1, - "unit": "", + "metric": "error_counter_out", + "label": "ether20", + "value": 0, + "unit": "c", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "traffic_counter_in", - "label": "ether3", + "metric": "packet_counter_multicast_out", + "label": "ether24", "value": 0, - "unit": "B", + "unit": "c", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "interface_maxspeed_in", - "label": "ether8", - "value": 1000000000, - "unit": "B", + "metric": "packet_counter_multicast_in", + "label": "ether5", + "value": 0, + "unit": "c", "warn": null, "crit": null, "min": null, @@ -1919,7 +1889,7 @@ }, { "metric": "packet_counter_discard_in", - "label": "ether10", + "label": "ether7", "value": 0, "unit": "c", "warn": null, @@ -1928,9 +1898,9 @@ "max": null }, { - "metric": "packet_counter_unicast_out", - "label": "ether16", - "value": 549, + "metric": "packet_counter_discard_out", + "label": "ether9", + "value": 0, "unit": "c", "warn": null, "crit": null, @@ -1938,28 +1908,28 @@ "max": null }, { - "metric": "packet_counter_discard_in", - "label": "ether2", + "metric": "traffic_counter_in", + "label": "ether10", "value": 0, - "unit": "c", + "unit": "B", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "interface_admin_status", - "label": "ether4", - "value": 1, - "unit": "", + "metric": "traffic_counter_in", + "label": "ether18", + "value": 0, + "unit": "B", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "error_counter_in", - "label": "ether6", + "metric": "packet_counter_discard_out", + "label": "ether26", "value": 0, "unit": "c", "warn": null, @@ -1968,8 +1938,8 @@ "max": null }, { - "metric": "packet_counter_broadcast_out", - "label": "ether12", + "metric": "packet_counter_multicast_out", + "label": "ether28", "value": 0, "unit": "c", "warn": null, @@ -1979,7 +1949,7 @@ }, { "metric": "packet_counter_discard_in", - "label": "ether21", + "label": "ether1", "value": 0, "unit": "c", "warn": null, @@ -1988,28 +1958,28 @@ "max": null }, { - "metric": "error_counter_out", - "label": "ether22", + "metric": "traffic_counter_in", + "label": "ether8", "value": 0, - "unit": "c", + "unit": "B", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "interface_maxspeed_in", - "label": "ether22", - "value": 1000000000, - "unit": "B", + "metric": "error_counter_in", + "label": "ether11", + "value": 0, + "unit": "c", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "interface_admin_status", - "label": "ether26", + "metric": "interface_oper_status", + "label": "ether14", "value": 1, "unit": "", "warn": null, @@ -2018,9 +1988,9 @@ "max": null }, { - "metric": "packet_counter_unicast_in", - "label": "ether1", - "value": 12788, + "metric": "packet_counter_unicast_out", + "label": "ether27", + "value": 546, "unit": "c", "warn": null, "crit": null, @@ -2028,38 +1998,38 @@ "max": null }, { - "metric": "traffic_counter_in", - "label": "ether5", + "metric": "packet_counter_discard_in", + "label": "ether28", "value": 0, - "unit": "B", + "unit": "c", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "interface_oper_status", - "label": "ether6", - "value": 1, - "unit": "", + "metric": "traffic_counter_in", + "label": "ether30", + "value": 0, + "unit": "B", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "interface_oper_status", - "label": "ether27", - "value": 1, - "unit": "", + "metric": "error_counter_out", + "label": "ether3", + "value": 0, + "unit": "c", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "error_counter_out", - "label": "ether7", + "metric": "packet_counter_discard_in", + "label": "ether8", "value": 0, "unit": "c", "warn": null, @@ -2068,8 +2038,8 @@ "max": null }, { - "metric": "interface_admin_status", - "label": "ether7", + "metric": "interface_oper_status", + "label": "ether11", "value": 1, "unit": "", "warn": null, @@ -2078,8 +2048,8 @@ "max": null }, { - "metric": "packet_counter_multicast_out", - "label": "ether20", + "metric": "packet_counter_broadcast_in", + "label": "ether13", "value": 0, "unit": "c", "warn": null, @@ -2088,8 +2058,8 @@ "max": null }, { - "metric": "error_counter_out", - "label": "ether21", + "metric": "packet_counter_unicast_in", + "label": "ether15", "value": 0, "unit": "c", "warn": null, @@ -2098,19 +2068,19 @@ "max": null }, { - "metric": "traffic_counter_out", - "label": "ether23", - "value": 61152, - "unit": "B", + "metric": "packet_counter_unicast_out", + "label": "ether22", + "value": 546, + "unit": "c", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "packet_counter_multicast_out", + "metric": "packet_counter_unicast_out", "label": "ether24", - "value": 0, + "value": 546, "unit": "c", "warn": null, "crit": null, @@ -2118,8 +2088,8 @@ "max": null }, { - "metric": "packet_counter_discard_in", - "label": "ether9", + "metric": "packet_counter_multicast_in", + "label": "ether3", "value": 0, "unit": "c", "warn": null, @@ -2128,18 +2098,18 @@ "max": null }, { - "metric": "interface_maxspeed_in", - "label": "ether9", - "value": 1000000000, - "unit": "B", + "metric": "interface_admin_status", + "label": "ether14", + "value": 1, + "unit": "", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "packet_counter_discard_out", - "label": "ether28", + "metric": "error_counter_in", + "label": "ether18", "value": 0, "unit": "c", "warn": null, @@ -2148,18 +2118,8 @@ "max": null }, { - "metric": "traffic_counter_out", - "label": "ether3", - "value": 60939, - "unit": "B", - "warn": null, - "crit": null, - "min": null, - "max": null - }, - { - "metric": "error_counter_in", - "label": "ether19", + "metric": "packet_counter_broadcast_out", + "label": "ether24", "value": 0, "unit": "c", "warn": null, @@ -2168,7 +2128,7 @@ "max": null }, { - "metric": "packet_counter_discard_in", + "metric": "packet_counter_multicast_in", "label": "ether30", "value": 0, "unit": "c", @@ -2178,18 +2138,18 @@ "max": null }, { - "metric": "interface_maxspeed_in", - "label": "ether5", - "value": 1000000000, - "unit": "B", + "metric": "error_counter_out", + "label": "ether31", + "value": 0, + "unit": "c", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "packet_counter_broadcast_in", - "label": "ether9", + "metric": "error_counter_out", + "label": "ether7", "value": 0, "unit": "c", "warn": null, @@ -2198,38 +2158,38 @@ "max": null }, { - "metric": "interface_oper_status", - "label": "ether11", - "value": 1, - "unit": "", + "metric": "traffic_counter_out", + "label": "ether6", + "value": 60606, + "unit": "B", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "packet_counter_unicast_in", - "label": "ether13", - "value": 0, - "unit": "c", + "metric": "interface_maxspeed_in", + "label": "ether17", + "value": 1000000000, + "unit": "B", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "traffic_counter_in", - "label": "ether17", + "metric": "packet_counter_discard_out", + "label": "ether24", "value": 0, - "unit": "B", + "unit": "c", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "error_counter_in", - "label": "ether26", + "metric": "packet_counter_unicast_in", + "label": "ether16", "value": 0, "unit": "c", "warn": null, @@ -2238,38 +2198,38 @@ "max": null }, { - "metric": "packet_counter_multicast_in", - "label": "ether13", - "value": 0, - "unit": "c", + "metric": "interface_maxspeed_in", + "label": "ether20", + "value": 1000000000, + "unit": "B", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "packet_counter_multicast_in", - "label": "ether24", - "value": 0, - "unit": "c", + "metric": "interface_maxspeed_in", + "label": "ether3", + "value": 1000000000, + "unit": "B", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "packet_counter_unicast_out", - "label": "ether26", - "value": 549, - "unit": "c", + "metric": "interface_oper_status", + "label": "ether7", + "value": 1, + "unit": "", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "packet_counter_broadcast_out", - "label": "ether27", + "metric": "packet_counter_discard_in", + "label": "ether23", "value": 0, "unit": "c", "warn": null, @@ -2278,28 +2238,28 @@ "max": null }, { - "metric": "traffic_counter_in", - "label": "ether28", + "metric": "error_counter_out", + "label": "ether24", "value": 0, - "unit": "B", + "unit": "c", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "interface_oper_status", - "label": "ether12", - "value": 1, - "unit": "", + "metric": "packet_counter_multicast_in", + "label": "ether31", + "value": 0, + "unit": "c", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "packet_counter_broadcast_in", - "label": "ether27", + "metric": "packet_counter_discard_in", + "label": "ether13", "value": 0, "unit": "c", "warn": null, @@ -2308,9 +2268,9 @@ "max": null }, { - "metric": "error_counter_in", - "label": "ether32", - "value": 0, + "metric": "packet_counter_unicast_out", + "label": "ether14", + "value": 546, "unit": "c", "warn": null, "crit": null, @@ -2318,10 +2278,10 @@ "max": null }, { - "metric": "packet_counter_discard_in", - "label": "ether5", - "value": 0, - "unit": "c", + "metric": "interface_maxspeed_in", + "label": "ether25", + "value": 1000000000, + "unit": "B", "warn": null, "crit": null, "min": null, @@ -2339,7 +2299,7 @@ }, { "metric": "interface_maxspeed_out", - "label": "ether6", + "label": "ether23", "value": 1000000000, "unit": "B", "warn": null, @@ -2348,8 +2308,8 @@ "max": null }, { - "metric": "packet_counter_multicast_in", - "label": "ether17", + "metric": "error_counter_in", + "label": "ether32", "value": 0, "unit": "c", "warn": null, @@ -2358,49 +2318,49 @@ "max": null }, { - "metric": "packet_counter_unicast_out", - "label": "ether7", - "value": 546, - "unit": "c", + "metric": "traffic_counter_out", + "label": "ether32", + "value": 61488, + "unit": "B", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "interface_maxspeed_out", - "label": "ether7", - "value": 1000000000, - "unit": "B", + "metric": "packet_counter_multicast_out", + "label": "ether2", + "value": 0, + "unit": "c", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "traffic_counter_out", - "label": "ether9", - "value": 60606, - "unit": "B", + "metric": "packet_counter_broadcast_out", + "label": "ether3", + "value": 0, + "unit": "c", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "interface_oper_status", - "label": "ether29", - "value": 1, - "unit": "", + "metric": "traffic_counter_in", + "label": "ether4", + "value": 0, + "unit": "B", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "error_counter_in", - "label": "ether1", - "value": 1158, + "metric": "packet_counter_unicast_out", + "label": "ether4", + "value": 549, "unit": "c", "warn": null, "crit": null, @@ -2409,7 +2369,7 @@ }, { "metric": "packet_counter_unicast_in", - "label": "ether9", + "label": "ether14", "value": 0, "unit": "c", "warn": null, @@ -2419,7 +2379,7 @@ }, { "metric": "packet_counter_broadcast_out", - "label": "ether11", + "label": "ether16", "value": 0, "unit": "c", "warn": null, @@ -2428,20 +2388,10 @@ "max": null }, { - "metric": "interface_maxspeed_out", - "label": "ether20", - "value": 1000000000, - "unit": "B", - "warn": null, - "crit": null, - "min": null, - "max": null - }, - { - "metric": "interface_maxspeed_in", - "label": "ether31", - "value": 1000000000, - "unit": "B", + "metric": "error_counter_in", + "label": "ether30", + "value": 0, + "unit": "c", "warn": null, "crit": null, "min": null, @@ -2449,7 +2399,7 @@ }, { "metric": "packet_counter_broadcast_out", - "label": "ether6", + "label": "ether30", "value": 0, "unit": "c", "warn": null, @@ -2459,7 +2409,7 @@ }, { "metric": "traffic_counter_out", - "label": "ether18", + "label": "ether31", "value": 61488, "unit": "B", "warn": null, @@ -2468,28 +2418,18 @@ "max": null }, { - "metric": "packet_counter_unicast_in", - "label": "ether5", - "value": 0, - "unit": "c", - "warn": null, - "crit": null, - "min": null, - "max": null - }, - { - "metric": "error_counter_out", - "label": "ether14", - "value": 0, - "unit": "c", + "metric": "traffic_counter_out", + "label": "ether16", + "value": 61488, + "unit": "B", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "error_counter_out", - "label": "ether23", + "metric": "packet_counter_unicast_in", + "label": "ether18", "value": 0, "unit": "c", "warn": null, @@ -2498,28 +2438,28 @@ "max": null }, { - "metric": "packet_counter_unicast_in", - "label": "ether26", - "value": 0, - "unit": "c", + "metric": "interface_maxspeed_in", + "label": "ether21", + "value": 1000000000, + "unit": "B", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "error_counter_in", - "label": "ether8", - "value": 0, - "unit": "c", + "metric": "interface_oper_status", + "label": "ether28", + "value": 1, + "unit": "", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "packet_counter_multicast_in", - "label": "ether11", + "metric": "packet_counter_discard_out", + "label": "ether7", "value": 0, "unit": "c", "warn": null, @@ -2528,9 +2468,9 @@ "max": null }, { - "metric": "traffic_counter_out", - "label": "ether24", - "value": 61152, + "metric": "interface_maxspeed_out", + "label": "ether11", + "value": 1000000000, "unit": "B", "warn": null, "crit": null, @@ -2538,8 +2478,8 @@ "max": null }, { - "metric": "packet_counter_unicast_in", - "label": "ether28", + "metric": "packet_counter_discard_out", + "label": "ether19", "value": 0, "unit": "c", "warn": null, @@ -2548,29 +2488,29 @@ "max": null }, { - "metric": "interface_admin_status", - "label": "ether6", - "value": 1, - "unit": "", + "metric": "packet_counter_broadcast_out", + "label": "ether23", + "value": 0, + "unit": "c", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "packet_counter_multicast_in", - "label": "ether7", + "metric": "traffic_counter_in", + "label": "ether32", "value": 0, - "unit": "c", + "unit": "B", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "packet_counter_multicast_out", - "label": "ether10", - "value": 0, + "metric": "packet_counter_unicast_out", + "label": "ether15", + "value": 549, "unit": "c", "warn": null, "crit": null, @@ -2578,28 +2518,28 @@ "max": null }, { - "metric": "interface_maxspeed_in", - "label": "ether14", - "value": 1000000000, - "unit": "B", + "metric": "packet_counter_broadcast_in", + "label": "ether15", + "value": 0, + "unit": "c", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "interface_maxspeed_in", - "label": "ether25", - "value": 1000000000, - "unit": "B", + "metric": "packet_counter_multicast_in", + "label": "ether19", + "value": 0, + "unit": "c", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "error_counter_out", - "label": "ether17", + "metric": "packet_counter_broadcast_in", + "label": "ether19", "value": 0, "unit": "c", "warn": null, @@ -2608,8 +2548,8 @@ "max": null }, { - "metric": "interface_oper_status", - "label": "ether23", + "metric": "interface_admin_status", + "label": "ether24", "value": 1, "unit": "", "warn": null, @@ -2618,9 +2558,9 @@ "max": null }, { - "metric": "traffic_counter_in", - "label": "ether13", - "value": 0, + "metric": "interface_maxspeed_out", + "label": "ether1", + "value": 1000000000, "unit": "B", "warn": null, "crit": null, @@ -2628,10 +2568,10 @@ "max": null }, { - "metric": "packet_counter_multicast_in", - "label": "ether18", - "value": 0, - "unit": "c", + "metric": "interface_maxspeed_in", + "label": "ether5", + "value": 1000000000, + "unit": "B", "warn": null, "crit": null, "min": null, @@ -2639,7 +2579,7 @@ }, { "metric": "packet_counter_discard_out", - "label": "ether21", + "label": "ether8", "value": 0, "unit": "c", "warn": null, @@ -2648,8 +2588,8 @@ "max": null }, { - "metric": "packet_counter_broadcast_in", - "label": "ether21", + "metric": "error_counter_out", + "label": "ether2", "value": 0, "unit": "c", "warn": null, @@ -2658,18 +2598,18 @@ "max": null }, { - "metric": "error_counter_in", - "label": "ether25", + "metric": "traffic_counter_in", + "label": "ether13", "value": 0, - "unit": "c", + "unit": "B", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "error_counter_in", - "label": "ether28", + "metric": "packet_counter_broadcast_in", + "label": "ether16", "value": 0, "unit": "c", "warn": null, @@ -2678,19 +2618,9 @@ "max": null }, { - "metric": "packet_counter_discard_out", - "label": "ether30", + "metric": "traffic_counter_in", + "label": "ether17", "value": 0, - "unit": "c", - "warn": null, - "crit": null, - "min": null, - "max": null - }, - { - "metric": "interface_maxspeed_out", - "label": "ether5", - "value": 1000000000, "unit": "B", "warn": null, "crit": null, @@ -2698,8 +2628,8 @@ "max": null }, { - "metric": "packet_counter_discard_out", - "label": "ether8", + "metric": "packet_counter_broadcast_in", + "label": "ether26", "value": 0, "unit": "c", "warn": null, @@ -2709,7 +2639,7 @@ }, { "metric": "packet_counter_multicast_in", - "label": "ether8", + "label": "ether27", "value": 0, "unit": "c", "warn": null, @@ -2719,7 +2649,7 @@ }, { "metric": "interface_maxspeed_out", - "label": "ether10", + "label": "ether13", "value": 1000000000, "unit": "B", "warn": null, @@ -2728,8 +2658,8 @@ "max": null }, { - "metric": "packet_counter_unicast_in", - "label": "ether14", + "metric": "packet_counter_broadcast_out", + "label": "ether27", "value": 0, "unit": "c", "warn": null, @@ -2738,8 +2668,8 @@ "max": null }, { - "metric": "error_counter_out", - "label": "ether15", + "metric": "packet_counter_broadcast_in", + "label": "ether3", "value": 0, "unit": "c", "warn": null, @@ -2748,38 +2678,38 @@ "max": null }, { - "metric": "interface_oper_status", - "label": "ether25", - "value": 1, - "unit": "", + "metric": "interface_maxspeed_out", + "label": "ether2", + "value": 1000000000, + "unit": "B", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "interface_maxspeed_out", - "label": "ether4", - "value": 1000000000, - "unit": "B", + "metric": "packet_counter_broadcast_in", + "label": "ether9", + "value": 0, + "unit": "c", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "traffic_counter_in", - "label": "ether27", + "metric": "error_counter_in", + "label": "ether10", "value": 0, - "unit": "B", + "unit": "c", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "error_counter_in", - "label": "ether4", + "metric": "packet_counter_unicast_in", + "label": "ether11", "value": 0, "unit": "c", "warn": null, @@ -2788,28 +2718,28 @@ "max": null }, { - "metric": "traffic_counter_out", - "label": "ether5", - "value": 60606, - "unit": "B", + "metric": "interface_oper_status", + "label": "ether12", + "value": 1, + "unit": "", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "traffic_counter_in", + "metric": "interface_admin_status", "label": "ether16", - "value": 0, - "unit": "B", + "value": 1, + "unit": "", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "packet_counter_discard_out", - "label": "ether17", + "metric": "packet_counter_discard_in", + "label": "ether27", "value": 0, "unit": "c", "warn": null, @@ -2818,8 +2748,8 @@ "max": null }, { - "metric": "packet_counter_discard_in", - "label": "ether19", + "metric": "packet_counter_discard_out", + "label": "ether1", "value": 0, "unit": "c", "warn": null, @@ -2828,10 +2758,10 @@ "max": null }, { - "metric": "interface_maxspeed_out", - "label": "ether27", - "value": 1000000000, - "unit": "B", + "metric": "packet_counter_broadcast_out", + "label": "ether13", + "value": 0, + "unit": "c", "warn": null, "crit": null, "min": null, @@ -2839,8 +2769,8 @@ }, { "metric": "packet_counter_unicast_out", - "label": "ether15", - "value": 549, + "label": "ether17", + "value": 546, "unit": "c", "warn": null, "crit": null, @@ -2848,19 +2778,19 @@ "max": null }, { - "metric": "interface_oper_status", - "label": "ether19", - "value": 1, - "unit": "", + "metric": "packet_counter_broadcast_in", + "label": "ether18", + "value": 0, + "unit": "c", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "packet_counter_multicast_out", + "metric": "packet_counter_unicast_out", "label": "ether23", - "value": 0, + "value": 546, "unit": "c", "warn": null, "crit": null, @@ -2868,17 +2798,17 @@ "max": null }, { - "metric": "packet_counter_unicast_out", - "label": "ether24", - "value": 546, - "unit": "c", + "metric": "interface_maxspeed_out", + "label": "ether3", + "value": 1000000000, + "unit": "B", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "packet_counter_discard_in", + "metric": "packet_counter_broadcast_out", "label": "ether4", "value": 0, "unit": "c", @@ -2888,18 +2818,18 @@ "max": null }, { - "metric": "interface_admin_status", - "label": "ether24", - "value": 1, - "unit": "", + "metric": "packet_counter_unicast_in", + "label": "ether10", + "value": 0, + "unit": "c", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "packet_counter_broadcast_in", - "label": "ether30", + "metric": "packet_counter_discard_in", + "label": "ether17", "value": 0, "unit": "c", "warn": null, @@ -2908,8 +2838,8 @@ "max": null }, { - "metric": "error_counter_out", - "label": "ether5", + "metric": "packet_counter_discard_in", + "label": "ether20", "value": 0, "unit": "c", "warn": null, @@ -2918,18 +2848,18 @@ "max": null }, { - "metric": "interface_admin_status", - "label": "ether12", - "value": 1, - "unit": "", + "metric": "interface_maxspeed_out", + "label": "ether24", + "value": 1000000000, + "unit": "B", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "packet_counter_multicast_out", - "label": "ether12", + "metric": "error_counter_in", + "label": "ether31", "value": 0, "unit": "c", "warn": null, @@ -2938,10 +2868,10 @@ "max": null }, { - "metric": "packet_counter_broadcast_out", - "label": "ether13", - "value": 0, - "unit": "c", + "metric": "traffic_counter_out", + "label": "ether14", + "value": 61152, + "unit": "B", "warn": null, "crit": null, "min": null, @@ -2958,8 +2888,8 @@ "max": null }, { - "metric": "packet_counter_discard_in", - "label": "ether26", + "metric": "packet_counter_broadcast_in", + "label": "ether1", "value": 0, "unit": "c", "warn": null, @@ -2968,38 +2898,38 @@ "max": null }, { - "metric": "error_counter_out", - "label": "ether9", - "value": 0, - "unit": "c", + "metric": "interface_maxspeed_out", + "label": "ether5", + "value": 1000000000, + "unit": "B", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "packet_counter_unicast_in", - "label": "ether11", - "value": 0, - "unit": "c", + "metric": "interface_maxspeed_in", + "label": "ether8", + "value": 1000000000, + "unit": "B", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "error_counter_out", - "label": "ether12", - "value": 0, - "unit": "c", + "metric": "interface_maxspeed_in", + "label": "ether10", + "value": 1000000000, + "unit": "B", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "packet_counter_unicast_in", - "label": "ether4", + "metric": "error_counter_in", + "label": "ether21", "value": 0, "unit": "c", "warn": null, @@ -3008,9 +2938,9 @@ "max": null }, { - "metric": "traffic_counter_out", - "label": "ether6", - "value": 60606, + "metric": "traffic_counter_in", + "label": "ether12", + "value": 0, "unit": "B", "warn": null, "crit": null, @@ -3018,18 +2948,18 @@ "max": null }, { - "metric": "interface_maxspeed_out", - "label": "ether11", - "value": 1000000000, - "unit": "B", + "metric": "packet_counter_unicast_out", + "label": "ether12", + "value": 549, + "unit": "c", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "packet_counter_unicast_in", - "label": "ether30", + "metric": "packet_counter_broadcast_out", + "label": "ether15", "value": 0, "unit": "c", "warn": null, @@ -3038,8 +2968,8 @@ "max": null }, { - "metric": "packet_counter_unicast_in", - "label": "ether2", + "metric": "error_counter_in", + "label": "ether16", "value": 0, "unit": "c", "warn": null, @@ -3048,18 +2978,8 @@ "max": null }, { - "metric": "traffic_counter_out", - "label": "ether11", - "value": 61152, - "unit": "B", - "warn": null, - "crit": null, - "min": null, - "max": null - }, - { - "metric": "packet_counter_unicast_in", - "label": "ether12", + "metric": "packet_counter_discard_in", + "label": "ether3", "value": 0, "unit": "c", "warn": null, @@ -3068,9 +2988,9 @@ "max": null }, { - "metric": "packet_counter_unicast_out", - "label": "ether17", - "value": 546, + "metric": "packet_counter_discard_in", + "label": "ether12", + "value": 0, "unit": "c", "warn": null, "crit": null, @@ -3078,9 +2998,9 @@ "max": null }, { - "metric": "packet_counter_unicast_out", - "label": "ether19", - "value": 549, + "metric": "packet_counter_discard_out", + "label": "ether27", + "value": 0, "unit": "c", "warn": null, "crit": null, @@ -3088,18 +3008,18 @@ "max": null }, { - "metric": "traffic_counter_out", - "label": "ether29", - "value": 61152, - "unit": "B", + "metric": "interface_oper_status", + "label": "ether6", + "value": 1, + "unit": "", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "error_counter_out", - "label": "ether6", + "metric": "packet_counter_broadcast_in", + "label": "ether4", "value": 0, "unit": "c", "warn": null, @@ -3108,38 +3028,38 @@ "max": null }, { - "metric": "interface_oper_status", - "label": "ether8", - "value": 1, - "unit": "", + "metric": "packet_counter_unicast_in", + "label": "ether24", + "value": 0, + "unit": "c", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "interface_admin_status", - "label": "ether14", - "value": 1, - "unit": "", + "metric": "packet_counter_unicast_out", + "label": "ether3", + "value": 549, + "unit": "c", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "interface_admin_status", - "label": "ether20", - "value": 1, - "unit": "", + "metric": "traffic_counter_out", + "label": "ether12", + "value": 61488, + "unit": "B", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "packet_counter_discard_out", - "label": "ether25", + "metric": "packet_counter_broadcast_out", + "label": "ether17", "value": 0, "unit": "c", "warn": null, @@ -3148,9 +3068,9 @@ "max": null }, { - "metric": "interface_maxspeed_in", - "label": "ether30", - "value": 1000000000, + "metric": "traffic_counter_out", + "label": "ether22", + "value": 61152, "unit": "B", "warn": null, "crit": null, @@ -3158,8 +3078,8 @@ "max": null }, { - "metric": "packet_counter_broadcast_in", - "label": "ether32", + "metric": "packet_counter_multicast_in", + "label": "ether23", "value": 0, "unit": "c", "warn": null, @@ -3168,29 +3088,29 @@ "max": null }, { - "metric": "error_counter_out", - "label": "ether13", - "value": 0, - "unit": "c", + "metric": "interface_admin_status", + "label": "ether12", + "value": 1, + "unit": "", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "traffic_counter_in", - "label": "ether20", + "metric": "error_counter_in", + "label": "ether13", "value": 0, - "unit": "B", + "unit": "c", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "traffic_counter_in", - "label": "ether26", - "value": 0, + "metric": "interface_maxspeed_out", + "label": "ether31", + "value": 1000000000, "unit": "B", "warn": null, "crit": null, @@ -3198,20 +3118,20 @@ "max": null }, { - "metric": "traffic_counter_in", - "label": "ether12", + "metric": "packet_counter_discard_out", + "label": "ether32", "value": 0, - "unit": "B", + "unit": "c", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "traffic_counter_in", - "label": "ether15", + "metric": "packet_counter_multicast_in", + "label": "ether17", "value": 0, - "unit": "B", + "unit": "c", "warn": null, "crit": null, "min": null, @@ -3219,7 +3139,7 @@ }, { "metric": "traffic_counter_out", - "label": "ether28", + "label": "ether27", "value": 61152, "unit": "B", "warn": null, @@ -3229,7 +3149,7 @@ }, { "metric": "packet_counter_broadcast_in", - "label": "ether2", + "label": "ether27", "value": 0, "unit": "c", "warn": null, @@ -3238,28 +3158,28 @@ "max": null }, { - "metric": "interface_maxspeed_out", - "label": "ether8", - "value": 1000000000, - "unit": "B", + "metric": "packet_counter_unicast_in", + "label": "ether9", + "value": 0, + "unit": "c", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "traffic_counter_out", - "label": "ether13", - "value": 61488, - "unit": "B", + "metric": "interface_admin_status", + "label": "ether10", + "value": 1, + "unit": "", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "packet_counter_broadcast_in", - "label": "ether18", + "metric": "packet_counter_discard_out", + "label": "ether11", "value": 0, "unit": "c", "warn": null, @@ -3268,9 +3188,9 @@ "max": null }, { - "metric": "packet_counter_unicast_out", - "label": "ether6", - "value": 546, + "metric": "packet_counter_multicast_out", + "label": "ether22", + "value": 0, "unit": "c", "warn": null, "crit": null, @@ -3278,8 +3198,8 @@ "max": null }, { - "metric": "error_counter_out", - "label": "ether24", + "metric": "packet_counter_unicast_in", + "label": "ether28", "value": 0, "unit": "c", "warn": null, @@ -3288,19 +3208,19 @@ "max": null }, { - "metric": "packet_counter_multicast_in", - "label": "ether25", - "value": 0, - "unit": "c", + "metric": "interface_oper_status", + "label": "ether30", + "value": 1, + "unit": "", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "packet_counter_broadcast_out", - "label": "ether7", - "value": 0, + "metric": "packet_counter_unicast_out", + "label": "ether6", + "value": 546, "unit": "c", "warn": null, "crit": null, @@ -3309,7 +3229,7 @@ }, { "metric": "packet_counter_broadcast_in", - "label": "ether10", + "label": "ether11", "value": 0, "unit": "c", "warn": null, @@ -3318,8 +3238,8 @@ "max": null }, { - "metric": "interface_maxspeed_out", - "label": "ether17", + "metric": "interface_maxspeed_in", + "label": "ether12", "value": 1000000000, "unit": "B", "warn": null, @@ -3328,18 +3248,18 @@ "max": null }, { - "metric": "interface_maxspeed_in", + "metric": "error_counter_out", "label": "ether18", - "value": 1000000000, - "unit": "B", + "value": 0, + "unit": "c", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "packet_counter_multicast_out", - "label": "ether31", + "metric": "packet_counter_broadcast_in", + "label": "ether30", "value": 0, "unit": "c", "warn": null, @@ -3348,8 +3268,8 @@ "max": null }, { - "metric": "packet_counter_broadcast_in", - "label": "ether4", + "metric": "error_counter_in", + "label": "ether3", "value": 0, "unit": "c", "warn": null, @@ -3358,9 +3278,9 @@ "max": null }, { - "metric": "packet_counter_unicast_in", - "label": "ether20", - "value": 0, + "metric": "packet_counter_unicast_out", + "label": "ether5", + "value": 546, "unit": "c", "warn": null, "crit": null, @@ -3368,8 +3288,18 @@ "max": null }, { - "metric": "packet_counter_broadcast_out", - "label": "ether24", + "metric": "interface_admin_status", + "label": "ether6", + "value": 1, + "unit": "", + "warn": null, + "crit": null, + "min": null, + "max": null + }, + { + "metric": "packet_counter_discard_in", + "label": "ether11", "value": 0, "unit": "c", "warn": null, @@ -3378,9 +3308,9 @@ "max": null }, { - "metric": "traffic_counter_out", - "label": "ether25", - "value": 61152, + "metric": "traffic_counter_in", + "label": "ether15", + "value": 0, "unit": "B", "warn": null, "crit": null, @@ -3388,9 +3318,9 @@ "max": null }, { - "metric": "traffic_counter_in", - "label": "ether31", - "value": 0, + "metric": "interface_maxspeed_out", + "label": "ether32", + "value": 1000000000, "unit": "B", "warn": null, "crit": null, @@ -3398,18 +3328,18 @@ "max": null }, { - "metric": "packet_counter_multicast_in", - "label": "ether4", - "value": 0, - "unit": "c", + "metric": "interface_oper_status", + "label": "ether3", + "value": 1, + "unit": "", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "packet_counter_discard_in", - "label": "ether6", + "metric": "error_counter_out", + "label": "ether8", "value": 0, "unit": "c", "warn": null, @@ -3418,9 +3348,9 @@ "max": null }, { - "metric": "error_counter_out", - "label": "ether19", - "value": 0, + "metric": "packet_counter_unicast_out", + "label": "ether21", + "value": 549, "unit": "c", "warn": null, "crit": null, @@ -3428,7 +3358,7 @@ "max": null }, { - "metric": "packet_counter_broadcast_in", + "metric": "packet_counter_discard_in", "label": "ether31", "value": 0, "unit": "c", @@ -3438,18 +3368,18 @@ "max": null }, { - "metric": "packet_counter_multicast_in", - "label": "ether20", - "value": 0, - "unit": "c", + "metric": "traffic_counter_out", + "label": "ether10", + "value": 61488, + "unit": "B", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "packet_counter_discard_in", - "label": "ether25", + "metric": "error_counter_out", + "label": "ether28", "value": 0, "unit": "c", "warn": null, @@ -3458,10 +3388,10 @@ "max": null }, { - "metric": "packet_counter_discard_in", - "label": "ether29", - "value": 0, - "unit": "c", + "metric": "interface_oper_status", + "label": "ether2", + "value": 1, + "unit": "", "warn": null, "crit": null, "min": null, @@ -3469,7 +3399,7 @@ }, { "metric": "interface_maxspeed_out", - "label": "ether30", + "label": "ether10", "value": 1000000000, "unit": "B", "warn": null, @@ -3478,9 +3408,9 @@ "max": null }, { - "metric": "packet_counter_unicast_out", - "label": "ether31", - "value": 549, + "metric": "error_counter_out", + "label": "ether11", + "value": 0, "unit": "c", "warn": null, "crit": null, @@ -3488,9 +3418,9 @@ "max": null }, { - "metric": "error_counter_out", - "label": "ether2", - "value": 0, + "metric": "packet_counter_unicast_out", + "label": "ether13", + "value": 549, "unit": "c", "warn": null, "crit": null, @@ -3498,28 +3428,28 @@ "max": null }, { - "metric": "error_counter_in", - "label": "ether7", - "value": 0, - "unit": "c", + "metric": "interface_oper_status", + "label": "ether23", + "value": 1, + "unit": "", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "packet_counter_unicast_out", - "label": "ether10", - "value": 549, - "unit": "c", + "metric": "interface_maxspeed_in", + "label": "ether27", + "value": 1000000000, + "unit": "B", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "error_counter_out", - "label": "ether27", + "metric": "error_counter_in", + "label": "ether28", "value": 0, "unit": "c", "warn": null, @@ -3528,8 +3458,8 @@ "max": null }, { - "metric": "packet_counter_multicast_out", - "label": "ether8", + "metric": "packet_counter_discard_in", + "label": "ether32", "value": 0, "unit": "c", "warn": null, @@ -3538,9 +3468,9 @@ "max": null }, { - "metric": "packet_counter_unicast_out", - "label": "ether25", - "value": 546, + "metric": "error_counter_in", + "label": "ether17", + "value": 0, "unit": "c", "warn": null, "crit": null, @@ -3548,18 +3478,18 @@ "max": null }, { - "metric": "error_counter_in", - "label": "ether27", - "value": 0, - "unit": "c", + "metric": "interface_oper_status", + "label": "ether20", + "value": 1, + "unit": "", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "packet_counter_unicast_in", - "label": "ether10", + "metric": "packet_counter_multicast_in", + "label": "ether22", "value": 0, "unit": "c", "warn": null, @@ -3568,28 +3498,28 @@ "max": null }, { - "metric": "packet_counter_discard_out", - "label": "ether1", - "value": 0, - "unit": "c", + "metric": "interface_admin_status", + "label": "ether25", + "value": 1, + "unit": "", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "packet_counter_broadcast_out", - "label": "ether18", + "metric": "traffic_counter_in", + "label": "ether27", "value": 0, - "unit": "c", + "unit": "B", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "packet_counter_unicast_in", - "label": "ether6", + "metric": "packet_counter_multicast_out", + "label": "ether5", "value": 0, "unit": "c", "warn": null, @@ -3598,8 +3528,8 @@ "max": null }, { - "metric": "error_counter_out", - "label": "ether10", + "metric": "packet_counter_multicast_in", + "label": "ether9", "value": 0, "unit": "c", "warn": null, @@ -3608,19 +3538,19 @@ "max": null }, { - "metric": "packet_counter_discard_out", - "label": "ether12", - "value": 0, - "unit": "c", + "metric": "traffic_counter_out", + "label": "ether24", + "value": 61152, + "unit": "B", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "error_counter_out", - "label": "ether18", - "value": 0, + "metric": "error_counter_in", + "label": "ether1", + "value": 1158, "unit": "c", "warn": null, "crit": null, @@ -3628,18 +3558,18 @@ "max": null }, { - "metric": "packet_counter_unicast_out", - "label": "ether28", - "value": 546, - "unit": "c", + "metric": "interface_oper_status", + "label": "ether24", + "value": 1, + "unit": "", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "packet_counter_broadcast_out", - "label": "ether28", + "metric": "packet_counter_discard_out", + "label": "ether5", "value": 0, "unit": "c", "warn": null, @@ -3648,18 +3578,18 @@ "max": null }, { - "metric": "error_counter_out", - "label": "ether32", - "value": 0, - "unit": "c", + "metric": "interface_oper_status", + "label": "ether13", + "value": 1, + "unit": "", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "packet_counter_multicast_out", - "label": "ether3", + "metric": "error_counter_in", + "label": "ether24", "value": 0, "unit": "c", "warn": null, @@ -3668,18 +3598,18 @@ "max": null }, { - "metric": "interface_oper_status", - "label": "ether17", - "value": 1, - "unit": "", + "metric": "traffic_counter_out", + "label": "ether1", + "value": 3121399, + "unit": "B", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "packet_counter_unicast_in", - "label": "ether27", + "metric": "packet_counter_discard_in", + "label": "ether14", "value": 0, "unit": "c", "warn": null, @@ -3688,9 +3618,9 @@ "max": null }, { - "metric": "packet_counter_unicast_out", - "label": "ether3", - "value": 549, + "metric": "packet_counter_discard_in", + "label": "ether16", + "value": 0, "unit": "c", "warn": null, "crit": null, @@ -3698,18 +3628,18 @@ "max": null }, { - "metric": "interface_oper_status", - "label": "ether5", - "value": 1, - "unit": "", + "metric": "packet_counter_broadcast_in", + "label": "ether22", + "value": 0, + "unit": "c", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "packet_counter_discard_out", - "label": "ether14", + "metric": "error_counter_out", + "label": "ether27", "value": 0, "unit": "c", "warn": null, @@ -3718,8 +3648,8 @@ "max": null }, { - "metric": "packet_counter_discard_out", - "label": "ether15", + "metric": "error_counter_in", + "label": "ether29", "value": 0, "unit": "c", "warn": null, @@ -3728,29 +3658,29 @@ "max": null }, { - "metric": "interface_admin_status", - "label": "ether25", - "value": 1, - "unit": "", + "metric": "packet_counter_discard_in", + "label": "ether6", + "value": 0, + "unit": "c", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "packet_counter_multicast_out", - "label": "ether26", - "value": 0, - "unit": "c", + "metric": "traffic_counter_out", + "label": "ether8", + "value": 60606, + "unit": "B", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "packet_counter_broadcast_out", - "label": "ether26", - "value": 0, + "metric": "packet_counter_unicast_out", + "label": "ether18", + "value": 549, "unit": "c", "warn": null, "crit": null, @@ -3759,7 +3689,7 @@ }, { "metric": "packet_counter_discard_in", - "label": "ether16", + "label": "ether19", "value": 0, "unit": "c", "warn": null, @@ -3768,8 +3698,8 @@ "max": null }, { - "metric": "error_counter_in", - "label": "ether30", + "metric": "packet_counter_multicast_in", + "label": "ether21", "value": 0, "unit": "c", "warn": null, @@ -3778,8 +3708,8 @@ "max": null }, { - "metric": "packet_counter_discard_in", - "label": "ether32", + "metric": "packet_counter_broadcast_in", + "label": "ether23", "value": 0, "unit": "c", "warn": null, @@ -3788,8 +3718,8 @@ "max": null }, { - "metric": "error_counter_in", - "label": "ether5", + "metric": "packet_counter_discard_out", + "label": "ether12", "value": 0, "unit": "c", "warn": null, @@ -3798,8 +3728,8 @@ "max": null }, { - "metric": "error_counter_out", - "label": "ether8", + "metric": "error_counter_in", + "label": "ether23", "value": 0, "unit": "c", "warn": null, @@ -3809,7 +3739,7 @@ }, { "metric": "packet_counter_broadcast_out", - "label": "ether8", + "label": "ether32", "value": 0, "unit": "c", "warn": null, @@ -3818,8 +3748,8 @@ "max": null }, { - "metric": "packet_counter_broadcast_in", - "label": "ether13", + "metric": "packet_counter_unicast_in", + "label": "ether2", "value": 0, "unit": "c", "warn": null, @@ -3828,8 +3758,8 @@ "max": null }, { - "metric": "error_counter_in", - "label": "ether17", + "metric": "packet_counter_discard_out", + "label": "ether22", "value": 0, "unit": "c", "warn": null, @@ -3838,10 +3768,20 @@ "max": null }, { - "metric": "packet_counter_multicast_out", - "label": "ether17", - "value": 0, - "unit": "c", + "metric": "interface_admin_status", + "label": "ether26", + "value": 1, + "unit": "", + "warn": null, + "crit": null, + "min": null, + "max": null + }, + { + "metric": "interface_maxspeed_out", + "label": "ether6", + "value": 1000000000, + "unit": "B", "warn": null, "crit": null, "min": null, @@ -3849,7 +3789,7 @@ }, { "metric": "packet_counter_broadcast_in", - "label": "ether20", + "label": "ether8", "value": 0, "unit": "c", "warn": null, @@ -3858,19 +3798,19 @@ "max": null }, { - "metric": "interface_maxspeed_in", - "label": "ether19", - "value": 1000000000, - "unit": "B", + "metric": "packet_counter_unicast_out", + "label": "ether9", + "value": 546, + "unit": "c", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "packet_counter_multicast_out", - "label": "ether29", - "value": 0, + "metric": "packet_counter_unicast_out", + "label": "ether10", + "value": 549, "unit": "c", "warn": null, "crit": null, @@ -3878,9 +3818,9 @@ "max": null }, { - "metric": "traffic_counter_in", - "label": "ether2", - "value": 0, + "metric": "traffic_counter_out", + "label": "ether21", + "value": 61488, "unit": "B", "warn": null, "crit": null, @@ -3888,8 +3828,8 @@ "max": null }, { - "metric": "packet_counter_discard_out", - "label": "ether5", + "metric": "packet_counter_discard_in", + "label": "ether22", "value": 0, "unit": "c", "warn": null, @@ -3898,10 +3838,10 @@ "max": null }, { - "metric": "interface_maxspeed_in", - "label": "ether15", - "value": 1000000000, - "unit": "B", + "metric": "packet_counter_broadcast_in", + "label": "ether31", + "value": 0, + "unit": "c", "warn": null, "crit": null, "min": null, @@ -3909,7 +3849,7 @@ }, { "metric": "packet_counter_multicast_in", - "label": "ether31", + "label": "ether32", "value": 0, "unit": "c", "warn": null, @@ -3918,28 +3858,38 @@ "max": null }, { - "metric": "packet_counter_unicast_out", - "label": "ether32", - "value": 549, - "unit": "c", + "metric": "interface_admin_status", + "label": "ether7", + "value": 1, + "unit": "", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "interface_oper_status", + "metric": "traffic_counter_out", "label": "ether7", - "value": 1, - "unit": "", + "value": 60606, + "unit": "B", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "packet_counter_discard_in", - "label": "ether18", + "metric": "interface_maxspeed_out", + "label": "ether4", + "value": 1000000000, + "unit": "B", + "warn": null, + "crit": null, + "min": null, + "max": null + }, + { + "metric": "error_counter_out", + "label": "ether19", "value": 0, "unit": "c", "warn": null, @@ -3948,8 +3898,8 @@ "max": null }, { - "metric": "packet_counter_multicast_out", - "label": "ether19", + "metric": "packet_counter_discard_out", + "label": "ether23", "value": 0, "unit": "c", "warn": null, @@ -3959,7 +3909,7 @@ }, { "metric": "interface_maxspeed_in", - "label": "ether23", + "label": "ether30", "value": 1000000000, "unit": "B", "warn": null, @@ -3968,8 +3918,8 @@ "max": null }, { - "metric": "packet_counter_multicast_out", - "label": "ether25", + "metric": "error_counter_out", + "label": "ether6", "value": 0, "unit": "c", "warn": null, @@ -3978,8 +3928,8 @@ "max": null }, { - "metric": "interface_oper_status", - "label": "ether32", + "metric": "interface_admin_status", + "label": "ether13", "value": 1, "unit": "", "warn": null, @@ -3988,29 +3938,19 @@ "max": null }, { - "metric": "packet_counter_multicast_in", - "label": "ether21", - "value": 0, - "unit": "c", + "metric": "interface_maxspeed_out", + "label": "ether20", + "value": 1000000000, + "unit": "B", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "packet_counter_multicast_in", - "label": "ether26", + "metric": "traffic_counter_in", + "label": "ether21", "value": 0, - "unit": "c", - "warn": null, - "crit": null, - "min": null, - "max": null - }, - { - "metric": "interface_maxspeed_out", - "label": "ether1", - "value": 1000000000, "unit": "B", "warn": null, "crit": null, @@ -4018,8 +3958,8 @@ "max": null }, { - "metric": "packet_counter_multicast_out", - "label": "ether5", + "metric": "packet_counter_discard_in", + "label": "ether26", "value": 0, "unit": "c", "warn": null, @@ -4028,8 +3968,8 @@ "max": null }, { - "metric": "packet_counter_broadcast_out", - "label": "ether19", + "metric": "packet_counter_unicast_in", + "label": "ether27", "value": 0, "unit": "c", "warn": null, @@ -4038,8 +3978,8 @@ "max": null }, { - "metric": "interface_oper_status", - "label": "ether20", + "metric": "interface_admin_status", + "label": "ether3", "value": 1, "unit": "", "warn": null, @@ -4048,8 +3988,8 @@ "max": null }, { - "metric": "packet_counter_broadcast_in", - "label": "ether22", + "metric": "error_counter_in", + "label": "ether5", "value": 0, "unit": "c", "warn": null, @@ -4058,18 +3998,18 @@ "max": null }, { - "metric": "traffic_counter_out", - "label": "ether26", - "value": 61488, - "unit": "B", + "metric": "packet_counter_multicast_in", + "label": "ether11", + "value": 0, + "unit": "c", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "packet_counter_broadcast_out", - "label": "ether32", + "metric": "error_counter_out", + "label": "ether21", "value": 0, "unit": "c", "warn": null, @@ -4078,8 +4018,8 @@ "max": null }, { - "metric": "packet_counter_discard_out", - "label": "ether7", + "metric": "packet_counter_broadcast_in", + "label": "ether21", "value": 0, "unit": "c", "warn": null, @@ -4088,8 +4028,8 @@ "max": null }, { - "metric": "packet_counter_broadcast_out", - "label": "ether29", + "metric": "error_counter_in", + "label": "ether27", "value": 0, "unit": "c", "warn": null, @@ -4098,19 +4038,19 @@ "max": null }, { - "metric": "packet_counter_multicast_in", - "label": "ether3", - "value": 0, - "unit": "c", + "metric": "interface_admin_status", + "label": "ether32", + "value": 1, + "unit": "", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "packet_counter_unicast_out", - "label": "ether29", - "value": 546, + "metric": "packet_counter_multicast_in", + "label": "ether1", + "value": 0, "unit": "c", "warn": null, "crit": null, @@ -4118,8 +4058,8 @@ "max": null }, { - "metric": "packet_counter_broadcast_out", - "label": "ether31", + "metric": "packet_counter_multicast_out", + "label": "ether10", "value": 0, "unit": "c", "warn": null, @@ -4128,29 +4068,29 @@ "max": null }, { - "metric": "packet_counter_multicast_out", - "label": "ether11", - "value": 0, - "unit": "c", + "metric": "traffic_counter_out", + "label": "ether20", + "value": 61488, + "unit": "B", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "packet_counter_unicast_in", - "label": "ether32", - "value": 0, - "unit": "c", + "metric": "interface_maxspeed_in", + "label": "ether28", + "value": 1000000000, + "unit": "B", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "traffic_counter_in", - "label": "ether4", - "value": 0, + "metric": "traffic_counter_out", + "label": "ether13", + "value": 61488, "unit": "B", "warn": null, "crit": null, @@ -4158,10 +4098,10 @@ "max": null }, { - "metric": "packet_counter_discard_in", - "label": "ether14", - "value": 0, - "unit": "c", + "metric": "interface_oper_status", + "label": "ether19", + "value": 1, + "unit": "", "warn": null, "crit": null, "min": null, @@ -4169,7 +4109,7 @@ }, { "metric": "interface_maxspeed_out", - "label": "ether15", + "label": "ether22", "value": 1000000000, "unit": "B", "warn": null, @@ -4178,28 +4118,28 @@ "max": null }, { - "metric": "interface_maxspeed_out", - "label": "ether31", - "value": 1000000000, - "unit": "B", + "metric": "packet_counter_broadcast_out", + "label": "ether29", + "value": 0, + "unit": "c", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "interface_maxspeed_in", - "label": "ether7", - "value": 1000000000, - "unit": "B", + "metric": "interface_admin_status", + "label": "ether8", + "value": 1, + "unit": "", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "packet_counter_discard_in", - "label": "ether11", + "metric": "packet_counter_discard_out", + "label": "ether10", "value": 0, "unit": "c", "warn": null, @@ -4208,29 +4148,39 @@ "max": null }, { - "metric": "interface_oper_status", - "label": "ether13", - "value": 1, - "unit": "", + "metric": "packet_counter_broadcast_in", + "label": "ether17", + "value": 0, + "unit": "c", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "packet_counter_broadcast_out", - "label": "ether25", - "value": 0, - "unit": "c", + "metric": "interface_maxspeed_out", + "label": "ether18", + "value": 1000000000, + "unit": "B", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "traffic_counter_in", - "label": "ether32", - "value": 0, + "metric": "interface_admin_status", + "label": "ether20", + "value": 1, + "unit": "", + "warn": null, + "crit": null, + "min": null, + "max": null + }, + { + "metric": "interface_maxspeed_in", + "label": "ether23", + "value": 1000000000, "unit": "B", "warn": null, "crit": null, @@ -4238,18 +4188,18 @@ "max": null }, { - "metric": "packet_counter_multicast_in", - "label": "ether2", - "value": 0, - "unit": "c", + "metric": "interface_oper_status", + "label": "ether32", + "value": 1, + "unit": "", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "packet_counter_discard_in", - "label": "ether17", + "metric": "packet_counter_broadcast_out", + "label": "ether6", "value": 0, "unit": "c", "warn": null, @@ -4259,7 +4209,7 @@ }, { "metric": "interface_oper_status", - "label": "ether3", + "label": "ether9", "value": 1, "unit": "", "warn": null, @@ -4268,38 +4218,38 @@ "max": null }, { - "metric": "interface_admin_status", - "label": "ether18", - "value": 1, - "unit": "", + "metric": "packet_counter_broadcast_in", + "label": "ether10", + "value": 0, + "unit": "c", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "interface_oper_status", - "label": "ether24", - "value": 1, - "unit": "", + "metric": "traffic_counter_in", + "label": "ether14", + "value": 0, + "unit": "B", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "interface_admin_status", - "label": "ether28", - "value": 1, - "unit": "", + "metric": "packet_counter_unicast_out", + "label": "ether19", + "value": 549, + "unit": "c", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "packet_counter_discard_in", - "label": "ether15", + "metric": "packet_counter_broadcast_out", + "label": "ether22", "value": 0, "unit": "c", "warn": null, @@ -4308,8 +4258,8 @@ "max": null }, { - "metric": "packet_counter_broadcast_out", - "label": "ether15", + "metric": "packet_counter_unicast_in", + "label": "ether3", "value": 0, "unit": "c", "warn": null, @@ -4318,9 +4268,9 @@ "max": null }, { - "metric": "packet_counter_unicast_out", - "label": "ether2", - "value": 549, + "metric": "packet_counter_broadcast_out", + "label": "ether9", + "value": 0, "unit": "c", "warn": null, "crit": null, @@ -4328,7 +4278,7 @@ "max": null }, { - "metric": "packet_counter_discard_in", + "metric": "packet_counter_unicast_in", "label": "ether12", "value": 0, "unit": "c", @@ -4338,10 +4288,10 @@ "max": null }, { - "metric": "packet_counter_multicast_out", - "label": "ether16", - "value": 0, - "unit": "c", + "metric": "interface_maxspeed_in", + "label": "ether6", + "value": 1000000000, + "unit": "B", "warn": null, "crit": null, "min": null, @@ -4349,7 +4299,7 @@ }, { "metric": "packet_counter_discard_out", - "label": "ether22", + "label": "ether16", "value": 0, "unit": "c", "warn": null, @@ -4358,8 +4308,8 @@ "max": null }, { - "metric": "packet_counter_discard_in", - "label": "ether23", + "metric": "packet_counter_discard_out", + "label": "ether28", "value": 0, "unit": "c", "warn": null, @@ -4368,9 +4318,9 @@ "max": null }, { - "metric": "packet_counter_unicast_out", - "label": "ether5", - "value": 546, + "metric": "packet_counter_multicast_in", + "label": "ether4", + "value": 0, "unit": "c", "warn": null, "crit": null, @@ -4378,8 +4328,8 @@ "max": null }, { - "metric": "packet_counter_multicast_in", - "label": "ether15", + "metric": "packet_counter_multicast_out", + "label": "ether12", "value": 0, "unit": "c", "warn": null, @@ -4388,10 +4338,10 @@ "max": null }, { - "metric": "packet_counter_unicast_out", - "label": "ether22", - "value": 546, - "unit": "c", + "metric": "interface_maxspeed_out", + "label": "ether17", + "value": 1000000000, + "unit": "B", "warn": null, "crit": null, "min": null, @@ -4399,7 +4349,7 @@ }, { "metric": "packet_counter_discard_in", - "label": "ether27", + "label": "ether18", "value": 0, "unit": "c", "warn": null, @@ -4409,7 +4359,7 @@ }, { "metric": "interface_admin_status", - "label": "ether27", + "label": "ether23", "value": 1, "unit": "", "warn": null, @@ -4418,8 +4368,8 @@ "max": null }, { - "metric": "packet_counter_multicast_out", - "label": "ether27", + "metric": "packet_counter_broadcast_in", + "label": "ether25", "value": 0, "unit": "c", "warn": null, @@ -4428,18 +4378,18 @@ "max": null }, { - "metric": "error_counter_out", - "label": "ether31", - "value": 0, - "unit": "c", + "metric": "interface_maxspeed_out", + "label": "ether12", + "value": 1000000000, + "unit": "B", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "packet_counter_broadcast_in", - "label": "ether1", + "metric": "packet_counter_discard_in", + "label": "ether15", "value": 0, "unit": "c", "warn": null, @@ -4448,28 +4398,28 @@ "max": null }, { - "metric": "packet_counter_discard_out", - "label": "ether11", - "value": 0, - "unit": "c", + "metric": "interface_oper_status", + "label": "ether18", + "value": 1, + "unit": "", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "interface_maxspeed_out", - "label": "ether14", - "value": 1000000000, - "unit": "B", + "metric": "packet_counter_multicast_in", + "label": "ether8", + "value": 0, + "unit": "c", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "error_counter_out", - "label": "ether16", + "metric": "packet_counter_multicast_out", + "label": "ether14", "value": 0, "unit": "c", "warn": null, @@ -4478,9 +4428,9 @@ "max": null }, { - "metric": "interface_maxspeed_out", - "label": "ether22", - "value": 1000000000, + "metric": "traffic_counter_in", + "label": "ether23", + "value": 0, "unit": "B", "warn": null, "crit": null, @@ -4488,10 +4438,10 @@ "max": null }, { - "metric": "interface_maxspeed_out", - "label": "ether26", - "value": 1000000000, - "unit": "B", + "metric": "error_counter_in", + "label": "ether7", + "value": 0, + "unit": "c", "warn": null, "crit": null, "min": null, @@ -4499,7 +4449,7 @@ }, { "metric": "packet_counter_discard_out", - "label": "ether27", + "label": "ether18", "value": 0, "unit": "c", "warn": null, @@ -4508,48 +4458,48 @@ "max": null }, { - "metric": "packet_counter_multicast_out", - "label": "ether30", - "value": 0, - "unit": "c", + "metric": "interface_maxspeed_in", + "label": "ether4", + "value": 1000000000, + "unit": "B", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "interface_admin_status", - "label": "ether15", - "value": 1, - "unit": "", + "metric": "packet_counter_multicast_out", + "label": "ether13", + "value": 0, + "unit": "c", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "interface_admin_status", - "label": "ether16", - "value": 1, - "unit": "", + "metric": "packet_counter_discard_out", + "label": "ether17", + "value": 0, + "unit": "c", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "traffic_counter_in", - "label": "ether22", + "metric": "packet_counter_multicast_in", + "label": "ether18", "value": 0, - "unit": "B", + "unit": "c", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "packet_counter_multicast_out", - "label": "ether22", + "metric": "packet_counter_multicast_in", + "label": "ether24", "value": 0, "unit": "c", "warn": null, @@ -4558,8 +4508,8 @@ "max": null }, { - "metric": "packet_counter_discard_out", - "label": "ether31", + "metric": "error_counter_out", + "label": "ether25", "value": 0, "unit": "c", "warn": null, @@ -4568,8 +4518,8 @@ "max": null }, { - "metric": "packet_counter_discard_out", - "label": "ether4", + "metric": "error_counter_in", + "label": "ether6", "value": 0, "unit": "c", "warn": null, @@ -4578,8 +4528,8 @@ "max": null }, { - "metric": "packet_counter_multicast_out", - "label": "ether4", + "metric": "packet_counter_broadcast_in", + "label": "ether7", "value": 0, "unit": "c", "warn": null, @@ -4588,9 +4538,9 @@ "max": null }, { - "metric": "error_counter_out", - "label": "ether20", - "value": 0, + "metric": "packet_counter_unicast_out", + "label": "ether16", + "value": 549, "unit": "c", "warn": null, "crit": null, @@ -4598,19 +4548,19 @@ "max": null }, { - "metric": "packet_counter_unicast_in", - "label": "ether29", - "value": 0, - "unit": "c", + "metric": "interface_admin_status", + "label": "ether17", + "value": 1, + "unit": "", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "interface_maxspeed_in", - "label": "ether4", - "value": 1000000000, + "metric": "traffic_counter_out", + "label": "ether25", + "value": 61152, "unit": "B", "warn": null, "crit": null, @@ -4618,58 +4568,58 @@ "max": null }, { - "metric": "packet_counter_multicast_in", - "label": "ether10", - "value": 0, - "unit": "c", + "metric": "interface_admin_status", + "label": "ether27", + "value": 1, + "unit": "", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "packet_counter_broadcast_in", - "label": "ether12", - "value": 0, - "unit": "c", + "metric": "traffic_counter_out", + "label": "ether29", + "value": 61152, + "unit": "B", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "packet_counter_multicast_out", - "label": "ether18", - "value": 0, - "unit": "c", + "metric": "traffic_counter_out", + "label": "ether4", + "value": 60939, + "unit": "B", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "packet_counter_multicast_in", - "label": "ether23", - "value": 0, - "unit": "c", + "metric": "interface_maxspeed_in", + "label": "ether9", + "value": 1000000000, + "unit": "B", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "packet_counter_multicast_in", - "label": "ether27", - "value": 0, - "unit": "c", + "metric": "interface_admin_status", + "label": "ether31", + "value": 1, + "unit": "", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "error_counter_out", - "label": "ether1", + "metric": "packet_counter_discard_in", + "label": "ether21", "value": 0, "unit": "c", "warn": null, @@ -4678,9 +4628,9 @@ "max": null }, { - "metric": "packet_counter_unicast_out", - "label": "ether1", - "value": 13374, + "metric": "packet_counter_broadcast_out", + "label": "ether28", + "value": 0, "unit": "c", "warn": null, "crit": null, @@ -4688,8 +4638,8 @@ "max": null }, { - "metric": "packet_counter_discard_out", - "label": "ether3", + "metric": "packet_counter_broadcast_in", + "label": "ether6", "value": 0, "unit": "c", "warn": null, @@ -4698,8 +4648,8 @@ "max": null }, { - "metric": "packet_counter_broadcast_in", - "label": "ether19", + "metric": "error_counter_in", + "label": "ether12", "value": 0, "unit": "c", "warn": null, @@ -4708,8 +4658,8 @@ "max": null }, { - "metric": "interface_maxspeed_in", - "label": "ether20", + "metric": "interface_maxspeed_out", + "label": "ether26", "value": 1000000000, "unit": "B", "warn": null, @@ -4717,9 +4667,19 @@ "min": null, "max": null }, + { + "metric": "error_counter_out", + "label": "ether5", + "value": 0, + "unit": "c", + "warn": null, + "crit": null, + "min": null, + "max": null + }, { "metric": "packet_counter_broadcast_in", - "label": "ether7", + "label": "ether5", "value": 0, "unit": "c", "warn": null, @@ -4728,10 +4688,10 @@ "max": null }, { - "metric": "interface_admin_status", - "label": "ether9", - "value": 1, - "unit": "", + "metric": "packet_counter_multicast_out", + "label": "ether19", + "value": 0, + "unit": "c", "warn": null, "crit": null, "min": null, @@ -4739,7 +4699,7 @@ }, { "metric": "interface_oper_status", - "label": "ether15", + "label": "ether26", "value": 1, "unit": "", "warn": null, @@ -4748,19 +4708,19 @@ "max": null }, { - "metric": "traffic_counter_out", - "label": "ether20", - "value": 61488, - "unit": "B", + "metric": "packet_counter_broadcast_out", + "label": "ether12", + "value": 0, + "unit": "c", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "packet_counter_unicast_out", - "label": "ether4", - "value": 549, + "metric": "packet_counter_multicast_in", + "label": "ether16", + "value": 0, "unit": "c", "warn": null, "crit": null, @@ -4768,19 +4728,19 @@ "max": null }, { - "metric": "packet_counter_multicast_out", - "label": "ether6", - "value": 0, - "unit": "c", + "metric": "interface_maxspeed_out", + "label": "ether16", + "value": 1000000000, + "unit": "B", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "interface_maxspeed_in", - "label": "ether12", - "value": 1000000000, + "metric": "traffic_counter_out", + "label": "ether17", + "value": 61152, "unit": "B", "warn": null, "crit": null, @@ -4789,8 +4749,8 @@ }, { "metric": "packet_counter_unicast_out", - "label": "ether13", - "value": 549, + "label": "ether30", + "value": 546, "unit": "c", "warn": null, "crit": null, @@ -4798,8 +4758,8 @@ "max": null }, { - "metric": "packet_counter_multicast_out", - "label": "ether14", + "metric": "packet_counter_discard_in", + "label": "ether2", "value": 0, "unit": "c", "warn": null, @@ -4808,8 +4768,18 @@ "max": null }, { - "metric": "packet_counter_unicast_in", - "label": "ether21", + "metric": "error_counter_out", + "label": "ether10", + "value": 0, + "unit": "c", + "warn": null, + "crit": null, + "min": null, + "max": null + }, + { + "metric": "packet_counter_broadcast_in", + "label": "ether2", "value": 0, "unit": "c", "warn": null, @@ -4819,7 +4789,7 @@ }, { "metric": "packet_counter_unicast_in", - "label": "ether24", + "label": "ether8", "value": 0, "unit": "c", "warn": null, @@ -4828,8 +4798,8 @@ "max": null }, { - "metric": "interface_maxspeed_out", - "label": "ether24", + "metric": "interface_maxspeed_in", + "label": "ether18", "value": 1000000000, "unit": "B", "warn": null, @@ -4838,8 +4808,8 @@ "max": null }, { - "metric": "packet_counter_broadcast_in", - "label": "ether17", + "metric": "packet_counter_broadcast_out", + "label": "ether20", "value": 0, "unit": "c", "warn": null, @@ -4848,8 +4818,8 @@ "max": null }, { - "metric": "error_counter_in", - "label": "ether18", + "metric": "packet_counter_multicast_out", + "label": "ether7", "value": 0, "unit": "c", "warn": null, @@ -4858,8 +4828,8 @@ "max": null }, { - "metric": "packet_counter_multicast_in", - "label": "ether29", + "metric": "packet_counter_broadcast_out", + "label": "ether18", "value": 0, "unit": "c", "warn": null, @@ -4868,20 +4838,20 @@ "max": null }, { - "metric": "error_counter_out", - "label": "ether11", + "metric": "traffic_counter_in", + "label": "ether28", "value": 0, - "unit": "c", + "unit": "B", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "packet_counter_unicast_in", - "label": "ether19", - "value": 0, - "unit": "c", + "metric": "interface_admin_status", + "label": "ether30", + "value": 1, + "unit": "", "warn": null, "crit": null, "min": null, @@ -4889,7 +4859,7 @@ }, { "metric": "packet_counter_discard_in", - "label": "ether20", + "label": "ether5", "value": 0, "unit": "c", "warn": null, @@ -4898,8 +4868,8 @@ "max": null }, { - "metric": "packet_counter_discard_out", - "label": "ether23", + "metric": "error_counter_in", + "label": "ether19", "value": 0, "unit": "c", "warn": null, @@ -4909,7 +4879,7 @@ }, { "metric": "interface_admin_status", - "label": "ether32", + "label": "ether1", "value": 1, "unit": "", "warn": null, @@ -4918,8 +4888,8 @@ "max": null }, { - "metric": "packet_counter_broadcast_out", - "label": "ether2", + "metric": "packet_counter_discard_out", + "label": "ether6", "value": 0, "unit": "c", "warn": null, @@ -4928,8 +4898,8 @@ "max": null }, { - "metric": "error_counter_in", - "label": "ether3", + "metric": "packet_counter_unicast_in", + "label": "ether13", "value": 0, "unit": "c", "warn": null, @@ -4938,28 +4908,28 @@ "max": null }, { - "metric": "interface_maxspeed_in", - "label": "ether11", - "value": 1000000000, - "unit": "B", + "metric": "packet_counter_multicast_in", + "label": "ether29", + "value": 0, + "unit": "c", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "traffic_counter_in", - "label": "ether19", + "metric": "packet_counter_unicast_in", + "label": "ether4", "value": 0, - "unit": "B", + "unit": "c", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "error_counter_in", - "label": "ether23", + "metric": "packet_counter_multicast_out", + "label": "ether4", "value": 0, "unit": "c", "warn": null, @@ -4968,18 +4938,18 @@ "max": null }, { - "metric": "interface_admin_status", - "label": "ether1", - "value": 1, - "unit": "", + "metric": "packet_counter_broadcast_out", + "label": "ether5", + "value": 0, + "unit": "c", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "interface_admin_status", - "label": "ether2", + "metric": "interface_oper_status", + "label": "ether25", "value": 1, "unit": "", "warn": null, @@ -4988,8 +4958,8 @@ "max": null }, { - "metric": "error_counter_in", - "label": "ether11", + "metric": "packet_counter_multicast_out", + "label": "ether31", "value": 0, "unit": "c", "warn": null, @@ -4998,8 +4968,8 @@ "max": null }, { - "metric": "packet_counter_multicast_in", - "label": "ether12", + "metric": "packet_counter_multicast_out", + "label": "ether9", "value": 0, "unit": "c", "warn": null, @@ -5008,18 +4978,18 @@ "max": null }, { - "metric": "packet_counter_discard_out", - "label": "ether20", + "metric": "traffic_counter_in", + "label": "ether19", "value": 0, - "unit": "c", + "unit": "B", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "packet_counter_broadcast_in", - "label": "ether6", + "metric": "packet_counter_multicast_out", + "label": "ether26", "value": 0, "unit": "c", "warn": null, @@ -5027,9 +4997,29 @@ "min": null, "max": null }, + { + "metric": "interface_maxspeed_out", + "label": "ether30", + "value": 1000000000, + "unit": "B", + "warn": null, + "crit": null, + "min": null, + "max": null + }, + { + "metric": "packet_counter_unicast_out", + "label": "ether11", + "value": 546, + "unit": "c", + "warn": null, + "crit": null, + "min": null, + "max": null + }, { "metric": "interface_oper_status", - "label": "ether18", + "label": "ether22", "value": 1, "unit": "", "warn": null, @@ -5039,7 +5029,7 @@ }, { "metric": "packet_counter_unicast_in", - "label": "ether3", + "label": "ether26", "value": 0, "unit": "c", "warn": null, @@ -5048,10 +5038,10 @@ "max": null }, { - "metric": "packet_counter_unicast_in", - "label": "ether15", - "value": 0, - "unit": "c", + "metric": "interface_admin_status", + "label": "ether4", + "value": 1, + "unit": "", "warn": null, "crit": null, "min": null, @@ -5059,7 +5049,7 @@ }, { "metric": "packet_counter_discard_out", - "label": "ether29", + "label": "ether31", "value": 0, "unit": "c", "warn": null, @@ -5068,8 +5058,8 @@ "max": null }, { - "metric": "packet_counter_unicast_in", - "label": "ether18", + "metric": "packet_counter_discard_in", + "label": "ether25", "value": 0, "unit": "c", "warn": null, @@ -5078,8 +5068,18 @@ "max": null }, { - "metric": "packet_counter_multicast_in", - "label": "ether19", + "metric": "interface_oper_status", + "label": "ether27", + "value": 1, + "unit": "", + "warn": null, + "crit": null, + "min": null, + "max": null + }, + { + "metric": "packet_counter_discard_in", + "label": "ether29", "value": 0, "unit": "c", "warn": null, @@ -5088,8 +5088,8 @@ "max": null }, { - "metric": "interface_admin_status", - "label": "ether21", + "metric": "interface_oper_status", + "label": "ether29", "value": 1, "unit": "", "warn": null, @@ -5098,19 +5098,19 @@ "max": null }, { - "metric": "traffic_counter_in", - "label": "ether21", + "metric": "error_counter_out", + "label": "ether30", "value": 0, - "unit": "B", + "unit": "c", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "interface_maxspeed_in", - "label": "ether27", - "value": 1000000000, + "metric": "traffic_counter_in", + "label": "ether22", + "value": 0, "unit": "B", "warn": null, "crit": null, @@ -5118,20 +5118,20 @@ "max": null }, { - "metric": "packet_counter_multicast_in", - "label": "ether30", - "value": 0, - "unit": "c", + "metric": "interface_maxspeed_in", + "label": "ether24", + "value": 1000000000, + "unit": "B", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "interface_admin_status", - "label": "ether31", - "value": 1, - "unit": "", + "metric": "packet_counter_multicast_out", + "label": "ether27", + "value": 0, + "unit": "c", "warn": null, "crit": null, "min": null, @@ -5142,7 +5142,7 @@ "messages": [ { "status": 0, - "message": "[{\"ifIndex\":\"1\",\"ifDescr\":\"ether1\",\"ifType\":\"ethernetCsmacd\",\"ifName\":\"ether1\",\"ifAlias\":\"\",\"ifPhysAddress\":\"52:54:00:0F:6E:00\",\"ifAdminStatus\":\"up\",\"ifOperStatus\":\"up\"},{\"ifIndex\":\"2\",\"ifDescr\":\"ether2\",\"ifType\":\"ethernetCsmacd\",\"ifName\":\"ether2\",\"ifAlias\":\"\",\"ifPhysAddress\":\"52:54:00:4E:4A:01\",\"ifAdminStatus\":\"up\",\"ifOperStatus\":\"up\"},{\"ifIndex\":\"3\",\"ifDescr\":\"ether3\",\"ifType\":\"ethernetCsmacd\",\"ifName\":\"ether3\",\"ifAlias\":\"\",\"ifPhysAddress\":\"52:54:00:42:91:02\",\"ifAdminStatus\":\"up\",\"ifOperStatus\":\"up\"},{\"ifIndex\":\"4\",\"ifDescr\":\"ether4\",\"ifType\":\"ethernetCsmacd\",\"ifName\":\"ether4\",\"ifAlias\":\"\",\"ifPhysAddress\":\"52:54:00:F1:7C:03\",\"ifAdminStatus\":\"up\",\"ifOperStatus\":\"up\"},{\"ifIndex\":\"5\",\"ifDescr\":\"ether5\",\"ifType\":\"ethernetCsmacd\",\"ifName\":\"ether5\",\"ifAlias\":\"\",\"ifPhysAddress\":\"52:54:00:F3:22:04\",\"ifAdminStatus\":\"up\",\"ifOperStatus\":\"up\"},{\"ifIndex\":\"6\",\"ifDescr\":\"ether6\",\"ifType\":\"ethernetCsmacd\",\"ifName\":\"ether6\",\"ifAlias\":\"\",\"ifPhysAddress\":\"52:54:00:B3:D8:05\",\"ifAdminStatus\":\"up\",\"ifOperStatus\":\"up\"},{\"ifIndex\":\"7\",\"ifDescr\":\"ether7\",\"ifType\":\"ethernetCsmacd\",\"ifName\":\"ether7\",\"ifAlias\":\"\",\"ifPhysAddress\":\"52:54:00:66:B3:06\",\"ifAdminStatus\":\"up\",\"ifOperStatus\":\"up\"},{\"ifIndex\":\"8\",\"ifDescr\":\"ether8\",\"ifType\":\"ethernetCsmacd\",\"ifName\":\"ether8\",\"ifAlias\":\"\",\"ifPhysAddress\":\"52:54:00:02:AB:07\",\"ifAdminStatus\":\"up\",\"ifOperStatus\":\"up\"},{\"ifIndex\":\"9\",\"ifDescr\":\"ether9\",\"ifType\":\"ethernetCsmacd\",\"ifName\":\"ether9\",\"ifAlias\":\"\",\"ifPhysAddress\":\"52:54:00:1A:DE:08\",\"ifAdminStatus\":\"up\",\"ifOperStatus\":\"up\"},{\"ifIndex\":\"10\",\"ifDescr\":\"ether10\",\"ifType\":\"ethernetCsmacd\",\"ifName\":\"ether10\",\"ifAlias\":\"\",\"ifPhysAddress\":\"52:54:00:AC:54:09\",\"ifAdminStatus\":\"up\",\"ifOperStatus\":\"up\"},{\"ifIndex\":\"11\",\"ifDescr\":\"ether11\",\"ifType\":\"ethernetCsmacd\",\"ifName\":\"ether11\",\"ifAlias\":\"\",\"ifPhysAddress\":\"52:54:00:07:68:0A\",\"ifAdminStatus\":\"up\",\"ifOperStatus\":\"up\"},{\"ifIndex\":\"12\",\"ifDescr\":\"ether12\",\"ifType\":\"ethernetCsmacd\",\"ifName\":\"ether12\",\"ifAlias\":\"\",\"ifPhysAddress\":\"52:54:00:FC:A6:0B\",\"ifAdminStatus\":\"up\",\"ifOperStatus\":\"up\"},{\"ifIndex\":\"13\",\"ifDescr\":\"ether13\",\"ifType\":\"ethernetCsmacd\",\"ifName\":\"ether13\",\"ifAlias\":\"\",\"ifPhysAddress\":\"52:54:00:F1:5D:0C\",\"ifAdminStatus\":\"up\",\"ifOperStatus\":\"up\"},{\"ifIndex\":\"14\",\"ifDescr\":\"ether14\",\"ifType\":\"ethernetCsmacd\",\"ifName\":\"ether14\",\"ifAlias\":\"\",\"ifPhysAddress\":\"52:54:00:DC:6D:0D\",\"ifAdminStatus\":\"up\",\"ifOperStatus\":\"up\"},{\"ifIndex\":\"15\",\"ifDescr\":\"ether15\",\"ifType\":\"ethernetCsmacd\",\"ifName\":\"ether15\",\"ifAlias\":\"\",\"ifPhysAddress\":\"52:54:00:E7:61:0E\",\"ifAdminStatus\":\"up\",\"ifOperStatus\":\"up\"},{\"ifIndex\":\"16\",\"ifDescr\":\"ether16\",\"ifType\":\"ethernetCsmacd\",\"ifName\":\"ether16\",\"ifAlias\":\"\",\"ifPhysAddress\":\"52:54:00:CD:D0:0F\",\"ifAdminStatus\":\"up\",\"ifOperStatus\":\"up\"},{\"ifIndex\":\"17\",\"ifDescr\":\"ether17\",\"ifType\":\"ethernetCsmacd\",\"ifName\":\"ether17\",\"ifAlias\":\"\",\"ifPhysAddress\":\"52:54:00:16:C8:10\",\"ifAdminStatus\":\"up\",\"ifOperStatus\":\"up\"},{\"ifIndex\":\"18\",\"ifDescr\":\"ether18\",\"ifType\":\"ethernetCsmacd\",\"ifName\":\"ether18\",\"ifAlias\":\"\",\"ifPhysAddress\":\"52:54:00:44:59:11\",\"ifAdminStatus\":\"up\",\"ifOperStatus\":\"up\"},{\"ifIndex\":\"19\",\"ifDescr\":\"ether19\",\"ifType\":\"ethernetCsmacd\",\"ifName\":\"ether19\",\"ifAlias\":\"\",\"ifPhysAddress\":\"52:54:00:48:AF:12\",\"ifAdminStatus\":\"up\",\"ifOperStatus\":\"up\"},{\"ifIndex\":\"20\",\"ifDescr\":\"ether20\",\"ifType\":\"ethernetCsmacd\",\"ifName\":\"ether20\",\"ifAlias\":\"\",\"ifPhysAddress\":\"52:54:00:30:52:13\",\"ifAdminStatus\":\"up\",\"ifOperStatus\":\"up\"},{\"ifIndex\":\"21\",\"ifDescr\":\"ether21\",\"ifType\":\"ethernetCsmacd\",\"ifName\":\"ether21\",\"ifAlias\":\"\",\"ifPhysAddress\":\"52:54:00:CA:6D:14\",\"ifAdminStatus\":\"up\",\"ifOperStatus\":\"up\"},{\"ifIndex\":\"22\",\"ifDescr\":\"ether22\",\"ifType\":\"ethernetCsmacd\",\"ifName\":\"ether22\",\"ifAlias\":\"\",\"ifPhysAddress\":\"52:54:00:9B:97:15\",\"ifAdminStatus\":\"up\",\"ifOperStatus\":\"up\"},{\"ifIndex\":\"23\",\"ifDescr\":\"ether23\",\"ifType\":\"ethernetCsmacd\",\"ifName\":\"ether23\",\"ifAlias\":\"\",\"ifPhysAddress\":\"52:54:00:30:64:16\",\"ifAdminStatus\":\"up\",\"ifOperStatus\":\"up\"},{\"ifIndex\":\"24\",\"ifDescr\":\"ether24\",\"ifType\":\"ethernetCsmacd\",\"ifName\":\"ether24\",\"ifAlias\":\"\",\"ifPhysAddress\":\"52:54:00:70:D2:17\",\"ifAdminStatus\":\"up\",\"ifOperStatus\":\"up\"},{\"ifIndex\":\"25\",\"ifDescr\":\"ether25\",\"ifType\":\"ethernetCsmacd\",\"ifName\":\"ether25\",\"ifAlias\":\"\",\"ifPhysAddress\":\"52:54:00:0D:F4:18\",\"ifAdminStatus\":\"up\",\"ifOperStatus\":\"up\"},{\"ifIndex\":\"26\",\"ifDescr\":\"ether26\",\"ifType\":\"ethernetCsmacd\",\"ifName\":\"ether26\",\"ifAlias\":\"\",\"ifPhysAddress\":\"52:54:00:46:A0:19\",\"ifAdminStatus\":\"up\",\"ifOperStatus\":\"up\"},{\"ifIndex\":\"27\",\"ifDescr\":\"ether27\",\"ifType\":\"ethernetCsmacd\",\"ifName\":\"ether27\",\"ifAlias\":\"\",\"ifPhysAddress\":\"52:54:00:6F:A8:1A\",\"ifAdminStatus\":\"up\",\"ifOperStatus\":\"up\"},{\"ifIndex\":\"28\",\"ifDescr\":\"ether28\",\"ifType\":\"ethernetCsmacd\",\"ifName\":\"ether28\",\"ifAlias\":\"\",\"ifPhysAddress\":\"52:54:00:B8:E6:1B\",\"ifAdminStatus\":\"up\",\"ifOperStatus\":\"up\"},{\"ifIndex\":\"29\",\"ifDescr\":\"ether29\",\"ifType\":\"ethernetCsmacd\",\"ifName\":\"ether29\",\"ifAlias\":\"\",\"ifPhysAddress\":\"52:54:00:FB:BA:1C\",\"ifAdminStatus\":\"up\",\"ifOperStatus\":\"up\"},{\"ifIndex\":\"30\",\"ifDescr\":\"ether30\",\"ifType\":\"ethernetCsmacd\",\"ifName\":\"ether30\",\"ifAlias\":\"\",\"ifPhysAddress\":\"52:54:00:76:D5:1D\",\"ifAdminStatus\":\"up\",\"ifOperStatus\":\"up\"},{\"ifIndex\":\"31\",\"ifDescr\":\"ether31\",\"ifType\":\"ethernetCsmacd\",\"ifName\":\"ether31\",\"ifAlias\":\"\",\"ifPhysAddress\":\"52:54:00:9F:4E:1E\",\"ifAdminStatus\":\"up\",\"ifOperStatus\":\"up\"},{\"ifIndex\":\"32\",\"ifDescr\":\"ether32\",\"ifType\":\"ethernetCsmacd\",\"ifName\":\"ether32\",\"ifAlias\":\"\",\"ifPhysAddress\":\"52:54:00:FD:4E:1F\",\"ifAdminStatus\":\"up\",\"ifOperStatus\":\"up\"}]" + "message": "[{\"ifIndex\":\"1\",\"ifDescr\":\"ether1\",\"ifType\":\"ethernetCsmacd\",\"ifName\":\"ether1\",\"ifAlias\":\"\",\"ifPhysAddress\":\"52:54:00:0F:6E:00\",\"ifAdminStatus\":\"up\",\"ifOperStatus\":\"up\",\"subType\":\"\"},{\"ifIndex\":\"2\",\"ifDescr\":\"ether2\",\"ifType\":\"ethernetCsmacd\",\"ifName\":\"ether2\",\"ifAlias\":\"\",\"ifPhysAddress\":\"52:54:00:4E:4A:01\",\"ifAdminStatus\":\"up\",\"ifOperStatus\":\"up\",\"subType\":\"\"},{\"ifIndex\":\"3\",\"ifDescr\":\"ether3\",\"ifType\":\"ethernetCsmacd\",\"ifName\":\"ether3\",\"ifAlias\":\"\",\"ifPhysAddress\":\"52:54:00:42:91:02\",\"ifAdminStatus\":\"up\",\"ifOperStatus\":\"up\",\"subType\":\"\"},{\"ifIndex\":\"4\",\"ifDescr\":\"ether4\",\"ifType\":\"ethernetCsmacd\",\"ifName\":\"ether4\",\"ifAlias\":\"\",\"ifPhysAddress\":\"52:54:00:F1:7C:03\",\"ifAdminStatus\":\"up\",\"ifOperStatus\":\"up\",\"subType\":\"\"},{\"ifIndex\":\"5\",\"ifDescr\":\"ether5\",\"ifType\":\"ethernetCsmacd\",\"ifName\":\"ether5\",\"ifAlias\":\"\",\"ifPhysAddress\":\"52:54:00:F3:22:04\",\"ifAdminStatus\":\"up\",\"ifOperStatus\":\"up\",\"subType\":\"\"},{\"ifIndex\":\"6\",\"ifDescr\":\"ether6\",\"ifType\":\"ethernetCsmacd\",\"ifName\":\"ether6\",\"ifAlias\":\"\",\"ifPhysAddress\":\"52:54:00:B3:D8:05\",\"ifAdminStatus\":\"up\",\"ifOperStatus\":\"up\",\"subType\":\"\"},{\"ifIndex\":\"7\",\"ifDescr\":\"ether7\",\"ifType\":\"ethernetCsmacd\",\"ifName\":\"ether7\",\"ifAlias\":\"\",\"ifPhysAddress\":\"52:54:00:66:B3:06\",\"ifAdminStatus\":\"up\",\"ifOperStatus\":\"up\",\"subType\":\"\"},{\"ifIndex\":\"8\",\"ifDescr\":\"ether8\",\"ifType\":\"ethernetCsmacd\",\"ifName\":\"ether8\",\"ifAlias\":\"\",\"ifPhysAddress\":\"52:54:00:02:AB:07\",\"ifAdminStatus\":\"up\",\"ifOperStatus\":\"up\",\"subType\":\"\"},{\"ifIndex\":\"9\",\"ifDescr\":\"ether9\",\"ifType\":\"ethernetCsmacd\",\"ifName\":\"ether9\",\"ifAlias\":\"\",\"ifPhysAddress\":\"52:54:00:1A:DE:08\",\"ifAdminStatus\":\"up\",\"ifOperStatus\":\"up\",\"subType\":\"\"},{\"ifIndex\":\"10\",\"ifDescr\":\"ether10\",\"ifType\":\"ethernetCsmacd\",\"ifName\":\"ether10\",\"ifAlias\":\"\",\"ifPhysAddress\":\"52:54:00:AC:54:09\",\"ifAdminStatus\":\"up\",\"ifOperStatus\":\"up\",\"subType\":\"\"},{\"ifIndex\":\"11\",\"ifDescr\":\"ether11\",\"ifType\":\"ethernetCsmacd\",\"ifName\":\"ether11\",\"ifAlias\":\"\",\"ifPhysAddress\":\"52:54:00:07:68:0A\",\"ifAdminStatus\":\"up\",\"ifOperStatus\":\"up\",\"subType\":\"\"},{\"ifIndex\":\"12\",\"ifDescr\":\"ether12\",\"ifType\":\"ethernetCsmacd\",\"ifName\":\"ether12\",\"ifAlias\":\"\",\"ifPhysAddress\":\"52:54:00:FC:A6:0B\",\"ifAdminStatus\":\"up\",\"ifOperStatus\":\"up\",\"subType\":\"\"},{\"ifIndex\":\"13\",\"ifDescr\":\"ether13\",\"ifType\":\"ethernetCsmacd\",\"ifName\":\"ether13\",\"ifAlias\":\"\",\"ifPhysAddress\":\"52:54:00:F1:5D:0C\",\"ifAdminStatus\":\"up\",\"ifOperStatus\":\"up\",\"subType\":\"\"},{\"ifIndex\":\"14\",\"ifDescr\":\"ether14\",\"ifType\":\"ethernetCsmacd\",\"ifName\":\"ether14\",\"ifAlias\":\"\",\"ifPhysAddress\":\"52:54:00:DC:6D:0D\",\"ifAdminStatus\":\"up\",\"ifOperStatus\":\"up\",\"subType\":\"\"},{\"ifIndex\":\"15\",\"ifDescr\":\"ether15\",\"ifType\":\"ethernetCsmacd\",\"ifName\":\"ether15\",\"ifAlias\":\"\",\"ifPhysAddress\":\"52:54:00:E7:61:0E\",\"ifAdminStatus\":\"up\",\"ifOperStatus\":\"up\",\"subType\":\"\"},{\"ifIndex\":\"16\",\"ifDescr\":\"ether16\",\"ifType\":\"ethernetCsmacd\",\"ifName\":\"ether16\",\"ifAlias\":\"\",\"ifPhysAddress\":\"52:54:00:CD:D0:0F\",\"ifAdminStatus\":\"up\",\"ifOperStatus\":\"up\",\"subType\":\"\"},{\"ifIndex\":\"17\",\"ifDescr\":\"ether17\",\"ifType\":\"ethernetCsmacd\",\"ifName\":\"ether17\",\"ifAlias\":\"\",\"ifPhysAddress\":\"52:54:00:16:C8:10\",\"ifAdminStatus\":\"up\",\"ifOperStatus\":\"up\",\"subType\":\"\"},{\"ifIndex\":\"18\",\"ifDescr\":\"ether18\",\"ifType\":\"ethernetCsmacd\",\"ifName\":\"ether18\",\"ifAlias\":\"\",\"ifPhysAddress\":\"52:54:00:44:59:11\",\"ifAdminStatus\":\"up\",\"ifOperStatus\":\"up\",\"subType\":\"\"},{\"ifIndex\":\"19\",\"ifDescr\":\"ether19\",\"ifType\":\"ethernetCsmacd\",\"ifName\":\"ether19\",\"ifAlias\":\"\",\"ifPhysAddress\":\"52:54:00:48:AF:12\",\"ifAdminStatus\":\"up\",\"ifOperStatus\":\"up\",\"subType\":\"\"},{\"ifIndex\":\"20\",\"ifDescr\":\"ether20\",\"ifType\":\"ethernetCsmacd\",\"ifName\":\"ether20\",\"ifAlias\":\"\",\"ifPhysAddress\":\"52:54:00:30:52:13\",\"ifAdminStatus\":\"up\",\"ifOperStatus\":\"up\",\"subType\":\"\"},{\"ifIndex\":\"21\",\"ifDescr\":\"ether21\",\"ifType\":\"ethernetCsmacd\",\"ifName\":\"ether21\",\"ifAlias\":\"\",\"ifPhysAddress\":\"52:54:00:CA:6D:14\",\"ifAdminStatus\":\"up\",\"ifOperStatus\":\"up\",\"subType\":\"\"},{\"ifIndex\":\"22\",\"ifDescr\":\"ether22\",\"ifType\":\"ethernetCsmacd\",\"ifName\":\"ether22\",\"ifAlias\":\"\",\"ifPhysAddress\":\"52:54:00:9B:97:15\",\"ifAdminStatus\":\"up\",\"ifOperStatus\":\"up\",\"subType\":\"\"},{\"ifIndex\":\"23\",\"ifDescr\":\"ether23\",\"ifType\":\"ethernetCsmacd\",\"ifName\":\"ether23\",\"ifAlias\":\"\",\"ifPhysAddress\":\"52:54:00:30:64:16\",\"ifAdminStatus\":\"up\",\"ifOperStatus\":\"up\",\"subType\":\"\"},{\"ifIndex\":\"24\",\"ifDescr\":\"ether24\",\"ifType\":\"ethernetCsmacd\",\"ifName\":\"ether24\",\"ifAlias\":\"\",\"ifPhysAddress\":\"52:54:00:70:D2:17\",\"ifAdminStatus\":\"up\",\"ifOperStatus\":\"up\",\"subType\":\"\"},{\"ifIndex\":\"25\",\"ifDescr\":\"ether25\",\"ifType\":\"ethernetCsmacd\",\"ifName\":\"ether25\",\"ifAlias\":\"\",\"ifPhysAddress\":\"52:54:00:0D:F4:18\",\"ifAdminStatus\":\"up\",\"ifOperStatus\":\"up\",\"subType\":\"\"},{\"ifIndex\":\"26\",\"ifDescr\":\"ether26\",\"ifType\":\"ethernetCsmacd\",\"ifName\":\"ether26\",\"ifAlias\":\"\",\"ifPhysAddress\":\"52:54:00:46:A0:19\",\"ifAdminStatus\":\"up\",\"ifOperStatus\":\"up\",\"subType\":\"\"},{\"ifIndex\":\"27\",\"ifDescr\":\"ether27\",\"ifType\":\"ethernetCsmacd\",\"ifName\":\"ether27\",\"ifAlias\":\"\",\"ifPhysAddress\":\"52:54:00:6F:A8:1A\",\"ifAdminStatus\":\"up\",\"ifOperStatus\":\"up\",\"subType\":\"\"},{\"ifIndex\":\"28\",\"ifDescr\":\"ether28\",\"ifType\":\"ethernetCsmacd\",\"ifName\":\"ether28\",\"ifAlias\":\"\",\"ifPhysAddress\":\"52:54:00:B8:E6:1B\",\"ifAdminStatus\":\"up\",\"ifOperStatus\":\"up\",\"subType\":\"\"},{\"ifIndex\":\"29\",\"ifDescr\":\"ether29\",\"ifType\":\"ethernetCsmacd\",\"ifName\":\"ether29\",\"ifAlias\":\"\",\"ifPhysAddress\":\"52:54:00:FB:BA:1C\",\"ifAdminStatus\":\"up\",\"ifOperStatus\":\"up\",\"subType\":\"\"},{\"ifIndex\":\"30\",\"ifDescr\":\"ether30\",\"ifType\":\"ethernetCsmacd\",\"ifName\":\"ether30\",\"ifAlias\":\"\",\"ifPhysAddress\":\"52:54:00:76:D5:1D\",\"ifAdminStatus\":\"up\",\"ifOperStatus\":\"up\",\"subType\":\"\"},{\"ifIndex\":\"31\",\"ifDescr\":\"ether31\",\"ifType\":\"ethernetCsmacd\",\"ifName\":\"ether31\",\"ifAlias\":\"\",\"ifPhysAddress\":\"52:54:00:9F:4E:1E\",\"ifAdminStatus\":\"up\",\"ifOperStatus\":\"up\",\"subType\":\"\"},{\"ifIndex\":\"32\",\"ifDescr\":\"ether32\",\"ifType\":\"ethernetCsmacd\",\"ifName\":\"ether32\",\"ifAlias\":\"\",\"ifPhysAddress\":\"52:54:00:FD:4E:1F\",\"ifAdminStatus\":\"up\",\"ifOperStatus\":\"up\",\"subType\":\"\"}]" } ] }, diff --git a/test/testdata/devices/routeros/CHR_2/test_data.json b/test/testdata/devices/routeros/CHR_2/test_data.json index 9113d7d..fa6686a 100644 --- a/test/testdata/devices/routeros/CHR_2/test_data.json +++ b/test/testdata/devices/routeros/CHR_2/test_data.json @@ -18,9 +18,9 @@ "status_code": 0, "performance_data": [ { - "metric": "interface_maxspeed_in", - "label": "ether2", - "value": 0, + "metric": "interface_maxspeed_out", + "label": "ether1", + "value": 1000000000, "unit": "B", "warn": null, "crit": null, @@ -28,7 +28,7 @@ "max": null }, { - "metric": "error_counter_in", + "metric": "error_counter_out", "label": "ether3", "value": 0, "unit": "c", @@ -38,7 +38,7 @@ "max": null }, { - "metric": "packet_counter_discard_out", + "metric": "packet_counter_unicast_in", "label": "ether3", "value": 0, "unit": "c", @@ -48,10 +48,10 @@ "max": null }, { - "metric": "traffic_counter_in", - "label": "ether3", - "value": 0, - "unit": "B", + "metric": "interface_admin_status", + "label": "ether4", + "value": 1, + "unit": "", "warn": null, "crit": null, "min": null, @@ -59,7 +59,7 @@ }, { "metric": "packet_counter_multicast_in", - "label": "ether3", + "label": "ether4", "value": 0, "unit": "c", "warn": null, @@ -68,39 +68,39 @@ "max": null }, { - "metric": "interface_oper_status", - "label": "ether3", - "value": 1, - "unit": "", + "metric": "packet_counter_unicast_out", + "label": "ether2", + "value": 0, + "unit": "c", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "traffic_counter_out", + "metric": "error_counter_in", "label": "ether4", "value": 0, - "unit": "B", + "unit": "c", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "interface_admin_status", - "label": "ether1", - "value": 1, - "unit": "", + "metric": "packet_counter_broadcast_in", + "label": "ether3", + "value": 0, + "unit": "c", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "traffic_counter_out", - "label": "ether1", - "value": 1176294015, + "metric": "interface_maxspeed_out", + "label": "ether3", + "value": 0, "unit": "B", "warn": null, "crit": null, @@ -108,7 +108,7 @@ "max": null }, { - "metric": "error_counter_in", + "metric": "error_counter_out", "label": "ether4", "value": 0, "unit": "c", @@ -118,19 +118,19 @@ "max": null }, { - "metric": "interface_oper_status", + "metric": "packet_counter_unicast_in", "label": "ether4", - "value": 1, - "unit": "", + "value": 0, + "unit": "c", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "packet_counter_multicast_out", + "metric": "error_counter_in", "label": "ether1", - "value": 0, + "value": 191167640, "unit": "c", "warn": null, "crit": null, @@ -138,18 +138,18 @@ "max": null }, { - "metric": "traffic_counter_out", - "label": "ether2", + "metric": "packet_counter_discard_out", + "label": "ether1", "value": 0, - "unit": "B", + "unit": "c", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "traffic_counter_out", - "label": "ether3", + "metric": "interface_maxspeed_in", + "label": "ether2", "value": 0, "unit": "B", "warn": null, @@ -158,8 +158,8 @@ "max": null }, { - "metric": "packet_counter_multicast_out", - "label": "ether3", + "metric": "packet_counter_unicast_out", + "label": "ether4", "value": 0, "unit": "c", "warn": null, @@ -168,28 +168,28 @@ "max": null }, { - "metric": "interface_admin_status", - "label": "ether2", - "value": 1, - "unit": "", + "metric": "packet_counter_multicast_out", + "label": "ether1", + "value": 0, + "unit": "c", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "packet_counter_broadcast_out", + "metric": "interface_oper_status", "label": "ether2", - "value": 0, - "unit": "c", + "value": 1, + "unit": "", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "packet_counter_multicast_in", - "label": "ether1", + "metric": "packet_counter_broadcast_in", + "label": "ether2", "value": 0, "unit": "c", "warn": null, @@ -199,8 +199,8 @@ }, { "metric": "interface_maxspeed_out", - "label": "ether1", - "value": 1000000000, + "label": "ether2", + "value": 0, "unit": "B", "warn": null, "crit": null, @@ -208,8 +208,8 @@ "max": null }, { - "metric": "packet_counter_discard_out", - "label": "ether2", + "metric": "packet_counter_discard_in", + "label": "ether3", "value": 0, "unit": "c", "warn": null, @@ -218,8 +218,8 @@ "max": null }, { - "metric": "packet_counter_multicast_in", - "label": "ether2", + "metric": "packet_counter_unicast_out", + "label": "ether3", "value": 0, "unit": "c", "warn": null, @@ -228,7 +228,7 @@ "max": null }, { - "metric": "error_counter_out", + "metric": "packet_counter_broadcast_out", "label": "ether4", "value": 0, "unit": "c", @@ -238,8 +238,8 @@ "max": null }, { - "metric": "interface_admin_status", - "label": "ether4", + "metric": "interface_oper_status", + "label": "ether1", "value": 1, "unit": "", "warn": null, @@ -248,7 +248,7 @@ "max": null }, { - "metric": "packet_counter_multicast_in", + "metric": "packet_counter_discard_in", "label": "ether4", "value": 0, "unit": "c", @@ -258,8 +258,8 @@ "max": null }, { - "metric": "packet_counter_broadcast_out", - "label": "ether3", + "metric": "packet_counter_discard_out", + "label": "ether4", "value": 0, "unit": "c", "warn": null, @@ -268,28 +268,28 @@ "max": null }, { - "metric": "error_counter_in", - "label": "ether2", - "value": 0, - "unit": "c", + "metric": "interface_oper_status", + "label": "ether4", + "value": 1, + "unit": "", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "packet_counter_unicast_in", - "label": "ether2", + "metric": "interface_maxspeed_in", + "label": "ether4", "value": 0, - "unit": "c", + "unit": "B", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "packet_counter_unicast_in", - "label": "ether3", + "metric": "error_counter_out", + "label": "ether1", "value": 0, "unit": "c", "warn": null, @@ -298,18 +298,18 @@ "max": null }, { - "metric": "interface_maxspeed_out", - "label": "ether3", + "metric": "packet_counter_discard_in", + "label": "ether1", "value": 0, - "unit": "B", + "unit": "c", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "packet_counter_discard_in", - "label": "ether4", + "metric": "packet_counter_broadcast_out", + "label": "ether1", "value": 0, "unit": "c", "warn": null, @@ -318,9 +318,9 @@ "max": null }, { - "metric": "interface_maxspeed_in", - "label": "ether4", - "value": 0, + "metric": "traffic_counter_out", + "label": "ether1", + "value": 1176294015, "unit": "B", "warn": null, "crit": null, @@ -329,7 +329,7 @@ }, { "metric": "error_counter_out", - "label": "ether1", + "label": "ether2", "value": 0, "unit": "c", "warn": null, @@ -348,48 +348,48 @@ "max": null }, { - "metric": "traffic_counter_in", + "metric": "interface_admin_status", "label": "ether2", - "value": 0, - "unit": "B", + "value": 1, + "unit": "", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "error_counter_out", + "metric": "interface_oper_status", "label": "ether3", - "value": 0, - "unit": "c", + "value": 1, + "unit": "", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "packet_counter_unicast_out", - "label": "ether1", - "value": 4243004, - "unit": "c", + "metric": "traffic_counter_out", + "label": "ether4", + "value": 0, + "unit": "B", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "packet_counter_broadcast_out", + "metric": "interface_admin_status", "label": "ether1", - "value": 0, - "unit": "c", + "value": 1, + "unit": "", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "packet_counter_discard_in", - "label": "ether2", + "metric": "packet_counter_multicast_in", + "label": "ether1", "value": 0, "unit": "c", "warn": null, @@ -398,7 +398,7 @@ "max": null }, { - "metric": "packet_counter_unicast_out", + "metric": "packet_counter_unicast_in", "label": "ether2", "value": 0, "unit": "c", @@ -408,8 +408,8 @@ "max": null }, { - "metric": "packet_counter_unicast_out", - "label": "ether3", + "metric": "packet_counter_multicast_in", + "label": "ether2", "value": 0, "unit": "c", "warn": null, @@ -418,9 +418,9 @@ "max": null }, { - "metric": "error_counter_in", - "label": "ether1", - "value": 191167640, + "metric": "packet_counter_multicast_in", + "label": "ether3", + "value": 0, "unit": "c", "warn": null, "crit": null, @@ -429,8 +429,8 @@ }, { "metric": "traffic_counter_in", - "label": "ether1", - "value": 724932470, + "label": "ether4", + "value": 0, "unit": "B", "warn": null, "crit": null, @@ -438,29 +438,29 @@ "max": null }, { - "metric": "error_counter_out", - "label": "ether2", + "metric": "interface_maxspeed_out", + "label": "ether4", "value": 0, - "unit": "c", + "unit": "B", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "packet_counter_multicast_out", - "label": "ether2", - "value": 0, - "unit": "c", + "metric": "traffic_counter_in", + "label": "ether1", + "value": 724932470, + "unit": "B", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "packet_counter_discard_out", - "label": "ether4", - "value": 0, + "metric": "packet_counter_unicast_out", + "label": "ether1", + "value": 4243004, "unit": "c", "warn": null, "crit": null, @@ -468,17 +468,17 @@ "max": null }, { - "metric": "packet_counter_discard_in", - "label": "ether1", + "metric": "traffic_counter_out", + "label": "ether3", "value": 0, - "unit": "c", + "unit": "B", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "packet_counter_discard_out", + "metric": "packet_counter_broadcast_in", "label": "ether1", "value": 0, "unit": "c", @@ -488,9 +488,9 @@ "max": null }, { - "metric": "packet_counter_unicast_in", - "label": "ether1", - "value": 3528563, + "metric": "packet_counter_discard_out", + "label": "ether2", + "value": 0, "unit": "c", "warn": null, "crit": null, @@ -498,8 +498,8 @@ "max": null }, { - "metric": "interface_maxspeed_out", - "label": "ether2", + "metric": "interface_maxspeed_in", + "label": "ether3", "value": 0, "unit": "B", "warn": null, @@ -508,8 +508,8 @@ "max": null }, { - "metric": "packet_counter_multicast_out", - "label": "ether4", + "metric": "packet_counter_discard_in", + "label": "ether2", "value": 0, "unit": "c", "warn": null, @@ -518,17 +518,17 @@ "max": null }, { - "metric": "packet_counter_broadcast_in", - "label": "ether1", + "metric": "traffic_counter_in", + "label": "ether2", "value": 0, - "unit": "c", + "unit": "B", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "packet_counter_broadcast_in", + "metric": "packet_counter_broadcast_out", "label": "ether2", "value": 0, "unit": "c", @@ -538,7 +538,7 @@ "max": null }, { - "metric": "packet_counter_discard_in", + "metric": "error_counter_in", "label": "ether3", "value": 0, "unit": "c", @@ -548,29 +548,29 @@ "max": null }, { - "metric": "packet_counter_unicast_in", - "label": "ether4", - "value": 0, - "unit": "c", + "metric": "interface_admin_status", + "label": "ether3", + "value": 1, + "unit": "", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "interface_oper_status", - "label": "ether1", - "value": 1, - "unit": "", + "metric": "packet_counter_multicast_out", + "label": "ether4", + "value": 0, + "unit": "c", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "packet_counter_unicast_out", - "label": "ether4", - "value": 0, + "metric": "packet_counter_unicast_in", + "label": "ether1", + "value": 3528563, "unit": "c", "warn": null, "crit": null, @@ -578,8 +578,8 @@ "max": null }, { - "metric": "interface_maxspeed_out", - "label": "ether4", + "metric": "traffic_counter_out", + "label": "ether2", "value": 0, "unit": "B", "warn": null, @@ -588,27 +588,27 @@ "max": null }, { - "metric": "interface_oper_status", + "metric": "packet_counter_multicast_out", "label": "ether2", - "value": 1, - "unit": "", + "value": 0, + "unit": "c", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "interface_admin_status", + "metric": "traffic_counter_in", "label": "ether3", - "value": 1, - "unit": "", + "value": 0, + "unit": "B", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "packet_counter_broadcast_in", + "metric": "packet_counter_multicast_out", "label": "ether3", "value": 0, "unit": "c", @@ -618,28 +618,28 @@ "max": null }, { - "metric": "interface_maxspeed_in", - "label": "ether3", + "metric": "error_counter_in", + "label": "ether2", "value": 0, - "unit": "B", + "unit": "c", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "traffic_counter_in", - "label": "ether4", + "metric": "packet_counter_discard_out", + "label": "ether3", "value": 0, - "unit": "B", + "unit": "c", "warn": null, "crit": null, "min": null, "max": null }, { - "metric": "packet_counter_broadcast_in", - "label": "ether4", + "metric": "packet_counter_broadcast_out", + "label": "ether3", "value": 0, "unit": "c", "warn": null, @@ -648,7 +648,7 @@ "max": null }, { - "metric": "packet_counter_broadcast_out", + "metric": "packet_counter_broadcast_in", "label": "ether4", "value": 0, "unit": "c", @@ -662,7 +662,7 @@ "messages": [ { "status": 0, - "message": "[{\"ifIndex\":\"1\",\"ifDescr\":\"ether1\",\"ifType\":\"ethernetCsmacd\",\"ifName\":\"ether1\",\"ifAlias\":\"\",\"ifPhysAddress\":\"50:00:00:01:00:00\",\"ifAdminStatus\":\"up\",\"ifOperStatus\":\"up\"},{\"ifIndex\":\"2\",\"ifDescr\":\"ether2\",\"ifType\":\"ethernetCsmacd\",\"ifName\":\"ether2\",\"ifAlias\":\"\",\"ifPhysAddress\":\"50:00:00:01:00:01\",\"ifAdminStatus\":\"up\",\"ifOperStatus\":\"up\"},{\"ifIndex\":\"3\",\"ifDescr\":\"ether3\",\"ifType\":\"ethernetCsmacd\",\"ifName\":\"ether3\",\"ifAlias\":\"\",\"ifPhysAddress\":\"50:00:00:01:00:02\",\"ifAdminStatus\":\"up\",\"ifOperStatus\":\"up\"},{\"ifIndex\":\"4\",\"ifDescr\":\"ether4\",\"ifType\":\"ethernetCsmacd\",\"ifName\":\"ether4\",\"ifAlias\":\"\",\"ifPhysAddress\":\"50:00:00:01:00:03\",\"ifAdminStatus\":\"up\",\"ifOperStatus\":\"up\"}]" + "message": "[{\"ifIndex\":\"1\",\"ifDescr\":\"ether1\",\"ifType\":\"ethernetCsmacd\",\"ifName\":\"ether1\",\"ifAlias\":\"\",\"ifPhysAddress\":\"50:00:00:01:00:00\",\"ifAdminStatus\":\"up\",\"ifOperStatus\":\"up\",\"subType\":\"\"},{\"ifIndex\":\"2\",\"ifDescr\":\"ether2\",\"ifType\":\"ethernetCsmacd\",\"ifName\":\"ether2\",\"ifAlias\":\"\",\"ifPhysAddress\":\"50:00:00:01:00:01\",\"ifAdminStatus\":\"up\",\"ifOperStatus\":\"up\",\"subType\":\"\"},{\"ifIndex\":\"3\",\"ifDescr\":\"ether3\",\"ifType\":\"ethernetCsmacd\",\"ifName\":\"ether3\",\"ifAlias\":\"\",\"ifPhysAddress\":\"50:00:00:01:00:02\",\"ifAdminStatus\":\"up\",\"ifOperStatus\":\"up\",\"subType\":\"\"},{\"ifIndex\":\"4\",\"ifDescr\":\"ether4\",\"ifType\":\"ethernetCsmacd\",\"ifName\":\"ether4\",\"ifAlias\":\"\",\"ifPhysAddress\":\"50:00:00:01:00:03\",\"ifAdminStatus\":\"up\",\"ifOperStatus\":\"up\",\"subType\":\"\"}]" } ] },