diff --git a/includes/definitions/discovery/mlos-atd.yaml b/includes/definitions/discovery/mlos-atd.yaml new file mode 100644 index 0000000000..29ba47b2c8 --- /dev/null +++ b/includes/definitions/discovery/mlos-atd.yaml @@ -0,0 +1,155 @@ +mib: MCAFEE-ATD-MIB +modules: + mempools: + data: + - + percent_used: MCAFEE-ATD-MIB::atdMemoryUtilization + processors: + data: + - + oid: atdCPUUtilizationAvg + num_oid: .1.3.6.1.4.1.8962.4.1.1.1.0 + sensors: + count: + data: + - + oid: mcAfeeATDMIBObjects + value: atdFileWaiting + num_oid: '.1.3.6.1.4.1.8962.4.1.1.6.{{ $index }}' + descr: 'ATD Files Queued' + group: 'File Processing' + index: 'atdFileWaiting' + - + oid: mcAfeeATDMIBObjects + value: atdFileAnalyzing + num_oid: '.1.3.6.1.4.1.8962.4.1.1.7.{{ $index }}' + descr: 'ATD Files Processing' + group: 'File Processing' + index: 'atdFileAnalyzing' + temperature: + data: + - + oid: mcAfeeATDMIBObjects + value: atdSystemTemperature + num_oid: '.1.3.6.1.4.1.8962.4.1.1.8.{{ $index }}' + descr: 'System Temperature' + percent: + data: + - + oid: mcAfeeATDMIBObjects + value: atdHDDDataSpaceUtilization + num_oid: '.1.3.6.1.4.1.8962.4.1.1.4.0' + descr: 'ATD Data Disk Space Utilization' + index: 'atdDataDiskSpaceUsed' + - + oid: atdHDDSystemSpaceUtilization + num_oid: '.1.3.6.1.4.1.8962.4.1.1.3.0' + descr: 'ATD System Disk Space Utilization' + index: 'atdSystemDiskSpaceUsed' + + - + oid: atdHDDVarSpaceUtilization + num_oid: '.1.3.6.1.4.1.8962.4.1.1.19.0' + descr: 'ATD Var Disk Space Utilization' + index: 'atdVarDiskSpaceUsed' + state: + data: + - + oid: atdSystemHealth + num_oid: '.1.3.6.1.4.1.8962.4.1.1.9.0' + descr: 'System Health' + state_name: atdSystemHealth + states: + - { value: 0, generic: 2, graph: 0, descr: 'Bad' } + - { value: 1, generic: 0, graph: 0, descr: 'Good' } + - + oid: atdBackupSchedulerStatus + num_oid: '.1.3.6.1.4.1.8962.4.1.1.10.0' + descr: 'Backup Scheduler Status' + state_name: atdBackupSchedulerStatus + states: + - { value: 0, generic: 2, graph: 0, descr: 'Backup Scheduler Status Failed' } + - { value: 1, generic: 0, graph: 0, descr: 'Backup Scheduler Status Ok' } + - + oid: atdLoadBalancerStatus + num_oid: '.1.3.6.1.4.1.8962.4.1.1.11.0' + descr: 'ATD Load Balancer Status' + state_name: atdLoadBalancerStatus + states: + - { value: 0, generic: 0, graph: 0, descr: 'Device In Standalone Mode' } + - { value: 1, generic: 2, graph: 0, descr: 'Load Balancer Down' } + - { value: 2, generic: 0, graph: 0, descr: 'Load Balancer Up' } + - { value: 3, generic: 1, graph: 0, descr: 'SW VERSION MISMATCH' } + - { value: 4, generic: 2, graph: 0, descr: 'Primary Node LB Not Up' } + - { value: 5, generic: 1, graph: 0, descr: 'SCP Failed' } + - { value: 6, generic: 1, graph: 0, descr: 'VM Creation Failed' } + - { value: 7, generic: 3, graph: 0, descr: 'Invalid Status' } + - + oid: atdEmailConnectorStatus + num_oid: '.1.3.6.1.4.1.8962.4.1.1.12.0' + descr: 'ATD Email Connetor Status' + state_name: atdEmailConnectorStatus + states: + - { value: 0, generic: 3, graph: 0, descr: 'Email Connector Disabled' } + - { value: 1, generic: 0, graph: 0, descr: 'Email Connector Ok' } + - { value: 2, generic: 1, graph: 0, descr: 'Email Connector Degraded' } + - { value: 3, generic: 2, graph: 0, descr: 'Email Connector Overloaded' } + - + oid: atdEmailGatewayWaitTime + num_oid: '.1.3.6.1.4.1.8962.4.1.1.13.0' + descr: 'Email Gateway Wait Time Threshold' + state_name: atdEmailGatewayWaitTime + states: + - { value: 0, generic: 0, graph: 0, descr: 'Email Gateway Threshold Ok' } + - { value: 1, generic: 2, graph: 0, descr: 'Email Gateway Threshold Wait Time Reached' } + - + oid: atdMalwareInterfaceStatus + num_oid: '.1.3.6.1.4.1.8962.4.1.1.14.0' + descr: 'ATD Malware Interface Status' + state_name: atdMalwareInterfaceStatus + states: + - { value: 0, generic: 2, graph: 0, descr: Down } + - { value: 1, generic: 0, graph: 0, descr: Up } + - + oid: atdLicenseStatus + num_oid: '.1.3.6.1.4.1.8962.4.1.1.15.0' + descr: 'ATD License Status' + state_name: atdLicenseStatus + states: + - { value: 1, generic: 0, graph: 0, descr: Valid } + - { value: 2, generic: 2, graph: 0, descr: Invalid } + - { value: 3, generic: 2, graph: 0, descr: Expired } + - + oid: atdDXLChannelStatus + num_oid: '.1.3.6.1.4.1.8962.4.1.1.16.0' + descr: 'ATD DXL Status' + state_name: atdDXLChannelStatus + states: + - { value: 0, generic: 2, graph: 0, descr: Down } + - { value: 1, generic: 0, graph: 0, descr: Up } + - + oid: atdSensorStatus + num_oid: '.1.3.6.1.4.1.8962.4.1.1.17.0' + descr: 'ATD Sensor Status' + state_name: atdSensorStatus + states: + - { value: 0, generic: 2, graph: 0, descr: Inactive } + - { value: 1, generic: 0, graph: 0, descr: Active } + - { value: 2, generic: 3, graph: 0, descr: 'Not Conencted' } + - + oid: atdTAXIIStatus + num_oid: '.1.3.6.1.4.1.8962.4.1.1.18.0' + descr: 'ATD TAXII Status' + state_name: atdTAXIIStatus + states: + - { value: 0, generic: 2, graph: 0, descr: Down } + - { value: 1, generic: 0, graph: 0, descr: Up } + - { value: 2, generic: 3, graph: 0, descr: Unknown } + - + oid: atdMalwareDNSStatus + num_oid: '.1.3.6.1.4.1.8962.4.1.1.18.0' + descr: 'ATD Malware DNS Status' + state_name: atdMalwareDNSStatus + states: + - { value: 0, generic: 2, graph: 0, descr: Bad } + - { value: 1, generic: 0, graph: 0, descr: Good } diff --git a/includes/definitions/mlos-atd.yaml b/includes/definitions/mlos-atd.yaml new file mode 100644 index 0000000000..a4dca9f90b --- /dev/null +++ b/includes/definitions/mlos-atd.yaml @@ -0,0 +1,13 @@ +os: mlos-atd +group: trellix +text: 'McAfee Linux OS - ATD' +type: appliance +icon: trellix +mib_dir: trellix +over: + - { graph: device_processor, text: 'CPU Usage' } + - { graph: device_mempool, text: 'Memory Usage' } +discovery: + - + sysObjectID: .1.3.6.1.4.1.8072.3.2.10 + sysDescr: mlos diff --git a/mibs/trellix/MCAFEE-ATD-MIB b/mibs/trellix/MCAFEE-ATD-MIB new file mode 100644 index 0000000000..ac8402a1f2 --- /dev/null +++ b/mibs/trellix/MCAFEE-ATD-MIB @@ -0,0 +1,296 @@ +-- ***************************************************************** +-- MCAFEE-ATD.mib: +-- McAfee Enterprise Structure of Management Information +-- Nov 2014, Pravin Yarolkar, Pawan Bhandari +-- Jan 2018, Vibhavari Mandal +-- Copyright (c) 2014 by McAfee, Inc. +-- All rights reserved. +-- +-- ***************************************************************** + +MCAFEE-ATD-MIB DEFINITIONS ::= BEGIN +-- +-- Top-level infrastructure of the Mcafee-ATD product MIB tree +-- + +IMPORTS + MODULE-IDENTITY, + OBJECT-TYPE, + Integer32 FROM SNMPv2-SMI + matdProducts + FROM MCAFEE-INTRUVERT-SMI; + +mcAfeeATDMIB MODULE-IDENTITY + LAST-UPDATED "201411200000Z" + ORGANIZATION "McAfee, Inc." + CONTACT-INFO + "McAfee Customer Service Department + Postal: 5000 Headquarters Drive + Plano, TX 75024 + USA + Tel: +1 800 338 8754 + E-mail: support@mcafee.com" + DESCRIPTION + "Top-level infrastructure of the MATD product under enterprise.mcafee-intruvert MIB tree." + REVISION "201411170000Z" + DESCRIPTION + "Initial Draft" +::= { matdProducts 1} + +mcAfeeATDMIBObjects OBJECT IDENTIFIER ::= { mcAfeeATDMIB 1 } + +atdCPUUtilizationAvg OBJECT-TYPE + SYNTAX Integer32 + MAX-ACCESS read-only + STATUS current + DESCRIPTION + "This object provides CPU utilization of the system." + DEFVAL { 0 } + ::= { mcAfeeATDMIBObjects 1 } + +atdMemoryUtilization OBJECT-TYPE + SYNTAX Integer32 + MAX-ACCESS read-only + STATUS current + DESCRIPTION + "This object provides Memory utilization of the system." + DEFVAL { 0 } + ::= { mcAfeeATDMIBObjects 2 } + +atdHDDSystemSpaceUtilization OBJECT-TYPE + SYNTAX Integer32 + MAX-ACCESS read-only + STATUS current + DESCRIPTION + "This object provides HDD system space utilization of the system." + ::= { mcAfeeATDMIBObjects 3 } + +atdHDDDataSpaceUtilization OBJECT-TYPE + SYNTAX Integer32 + MAX-ACCESS read-only + STATUS current + DESCRIPTION + "This object provides HDD data space utilization of the system." + ::= { mcAfeeATDMIBObjects 4 } + +atdInterfaceCountTable OBJECT-TYPE + SYNTAX SEQUENCE OF AtdInterfaceCountEntry + MAX-ACCESS not-accessible + STATUS current + DESCRIPTION + "The table to list the received and sent packets over physical interfaces present in the system." + DEFVAL { 0 } + ::= { mcAfeeATDMIBObjects 5 } + +atdInterfaceCountEntry OBJECT-TYPE + SYNTAX AtdInterfaceCountEntry + MAX-ACCESS not-accessible + STATUS current + DESCRIPTION + "An entry (conceptual row) in the atdInterfaceCountTable." + INDEX { atdInterfaceCountIndex } + ::= { atdInterfaceCountTable 1 } + +AtdInterfaceCountEntry ::= SEQUENCE +{ + atdInterfaceCountIndex INTEGER, + atdInterfaceCountRx INTEGER, + atdInterfaceCountTx INTEGER +} + +atdInterfaceCountIndex OBJECT-TYPE + SYNTAX Integer32 (0..3) + MAX-ACCESS not-accessible + STATUS current + DESCRIPTION + "The auxiliary variable used for identifying instances of the columnar objects in the atdInterfaceCountTable." + ::= { atdInterfaceCountEntry 1 } + +atdInterfaceCountRx OBJECT-TYPE + SYNTAX Integer32 + MAX-ACCESS read-only + STATUS current + DESCRIPTION + "Received packets on given interface." + DEFVAL { 0 } + ::= { atdInterfaceCountEntry 2 } + +atdInterfaceCountTx OBJECT-TYPE + SYNTAX Integer32 + MAX-ACCESS read-only + STATUS current + DESCRIPTION + "Transmitted packets on given interface." + DEFVAL { 0 } + ::= { atdInterfaceCountEntry 3 } + +atdFileWaiting OBJECT-TYPE + SYNTAX Integer32 + MAX-ACCESS read-only + STATUS current + DESCRIPTION + "This object provides number of sample in waiting in the system." + DEFVAL { 0 } + ::= { mcAfeeATDMIBObjects 6 } + +atdFileAnalyzing OBJECT-TYPE + SYNTAX Integer32 + MAX-ACCESS read-only + STATUS current + DESCRIPTION + "This object provides number of sample in analyzing in the system." + DEFVAL { 0 } + ::= { mcAfeeATDMIBObjects 7 } + +atdSystemTemperature OBJECT-TYPE + SYNTAX Integer32 + MAX-ACCESS read-only + STATUS current + DESCRIPTION + "This object provides system temperature." + DEFVAL { 0 } + ::= { mcAfeeATDMIBObjects 8 } + + +atdSystemHealth OBJECT-TYPE + SYNTAX Integer32 + MAX-ACCESS read-only + STATUS current + DESCRIPTION + "This object provides system health.Value is + 1 if SYSTEM health is GOOD + 0 if SYETM health is BAD" + DEFVAL { 0} + ::= { mcAfeeATDMIBObjects 9 } + +atdBackupSchedulerStatus OBJECT-TYPE + SYNTAX Integer32 + MAX-ACCESS read-only + STATUS current + DESCRIPTION + "This object provides configured backup scheduler status. Value is + 1 if Backup Scheduler Status is OK + 0 if Backup Scheduler status is Failed" + DEFVAL { 0} + ::= { mcAfeeATDMIBObjects 10 } + +atdLoadBalancerStatus OBJECT-TYPE + SYNTAX Integer32 + MAX-ACCESS read-only + STATUS current + DESCRIPTION + "This object provides ATD Load Balancer Status. Value is + 0 if device is in standalone mode + 1 if LB status is DOWN + 2 if LB status is UP and RUNNING + 3 if Node status is SW VERSION MISMATCH + 4 if Primary Node LB services are not UP + 5 if SCP failed + 6 if VM creation failed + 7 if Invalid Status" + + DEFVAL { 0 } + ::= { mcAfeeATDMIBObjects 11 } + +atdEmailConnectorStatus OBJECT-TYPE + SYNTAX Integer32 + MAX-ACCESS read-only + STATUS current + DESCRIPTION + "This object provides ATD Email Connector Status.Value is + 0 if Email Connector status is DISABLED + 1 if EmailConnector status is Enabled and EmailConnector health is GOOD + 2 if EmailConnector health is DEGRADED + 3 if EmailConnector health is OVERLOADED" + DEFVAL { 0 } + ::= { mcAfeeATDMIBObjects 12 } + +atdEmailGatewayWaitTime OBJECT-TYPE + SYNTAX Integer32 + MAX-ACCESS read-only + STATUS current + DESCRIPTION + "This object indicates whether system waittime is more than Email Gateway Wait Time threshold waittime. Value is + 1 if threshold is reached + 0 otherwise" + DEFVAL { 0 } + ::= { mcAfeeATDMIBObjects 13 } + +atdMalwareInterfaceStatus OBJECT-TYPE + SYNTAX Integer32 + MAX-ACCESS read-only + STATUS current + DESCRIPTION + "This object provides ATD Malware Interface status. Value is + 1 if interface status is UP + 0 if interface status is DOWN" + DEFVAL { 0 } + ::= { mcAfeeATDMIBObjects 14 } + +atdLicenseStatus OBJECT-TYPE + SYNTAX Integer32 + MAX-ACCESS read-only + STATUS current + DESCRIPTION + "This object provides ATD License Status. Value is + 1 if License is VALID + 2 if License is INVALID + 3 if License is EXPIRED" + DEFVAL { 0 } + ::= { mcAfeeATDMIBObjects 15 } + +atdDXLChannelStatus OBJECT-TYPE + SYNTAX Integer32 + MAX-ACCESS read-only + STATUS current + DESCRIPTION + "This object provides DXL status. Value is + 1 if DXL is UP + 0 if DXL is DOWN" + DEFVAL {0} + ::= { mcAfeeATDMIBObjects 16 } + +atdSensorStatus OBJECT-TYPE + SYNTAX Integer32 + MAX-ACCESS read-only + STATUS current + DESCRIPTION + "This object provides Sensor status. Value is + 0 if Sensor status is INACTIVE + 1 if Sensor status is ACTIVE + 2 if Sensor status is NOT CONNECTED" + DEFVAL { 0 } + ::= { mcAfeeATDMIBObjects 17 } + +atdTAXIIStatus OBJECT-TYPE + SYNTAX Integer32 + MAX-ACCESS read-only + STATUS current + DESCRIPTION + "This object provides TAXII Status. Value is + 0 if TAXII channel health is DOWN + 1 if TAXII channel health is UP + 2 if TAXII channel health is UNKNOWN" + DEFVAL { 0 } + ::= { mcAfeeATDMIBObjects 18 } + +atdHDDVarSpaceUtilization OBJECT-TYPE + SYNTAX Integer32 + MAX-ACCESS read-only + STATUS current + DESCRIPTION + "This object provides Var disk utilization in %" + DEFVAL { 0 } + ::= { mcAfeeATDMIBObjects 19 } + +atdMalwareDNSStatus OBJECT-TYPE + SYNTAX Integer32 + MAX-ACCESS read-only + STATUS current + DESCRIPTION + "This object provides Malware DNS status. Value is + 1 if MALWARE DNS status is good + 0 if MALWARE DNS status is bad" + DEFVAL { 0 } + ::= { mcAfeeATDMIBObjects 20 } +END diff --git a/mibs/trellix/MCAFEE-INTRUVERT-SMI b/mibs/trellix/MCAFEE-INTRUVERT-SMI new file mode 100644 index 0000000000..60424b2e91 --- /dev/null +++ b/mibs/trellix/MCAFEE-INTRUVERT-SMI @@ -0,0 +1,68 @@ + +-- ***************************************************************** +-- MCAFEE-SMI.mib: +-- McAfee Enterprise Structure of Management Information +-- +-- May 2001, Rohit Kaushal +-- +-- Copyright (c) 2001 - 2005 by McAfee, Inc. +-- All rights reserved. +-- +-- ***************************************************************** + +MCAFEE-INTRUVERT-SMI DEFINITIONS ::= BEGIN + +IMPORTS + OBJECT-IDENTITY, MODULE-IDENTITY, enterprises + FROM SNMPv2-SMI; + +mcafee-intruvert MODULE-IDENTITY +LAST-UPDATED "200707090000Z" +ORGANIZATION +"McAfee, Inc." +CONTACT-INFO +"McAfee Customer Service Department + +Postal: 5000 Headquarters Drive + Plano, TX 75024 + USA + +Tel: +1 800 338 8754 + +E-mail: support@mcafee.com" +DESCRIPTION +"The Structure of Management Information for the McAfee-Intruvert enterprise. +Initial version of this MIB module." +::= { enterprises 8962 } + + +ivConventions OBJECT-IDENTITY + STATUS current + DESCRIPTION + "" + ::= { mcafee-intruvert 1 } + +-- assigned by IANA + +ivProducts OBJECT-IDENTITY + STATUS current + DESCRIPTION + " " + ::= { mcafee-intruvert 2 } + +ivInventory OBJECT-IDENTITY + STATUS current + DESCRIPTION + "" + ::= { mcafee-intruvert 3 } + +matdProducts OBJECT-IDENTITY + STATUS current + DESCRIPTION + "" + ::= { mcafee-intruvert 4 } + +END + + + diff --git a/tests/data/mlos-atd.json b/tests/data/mlos-atd.json new file mode 100644 index 0000000000..4d8013551e --- /dev/null +++ b/tests/data/mlos-atd.json @@ -0,0 +1,694 @@ +{ + "os": { + "discovery": { + "devices": [ + { + "sysName": "", + "sysObjectID": ".1.3.6.1.4.1.8072.3.2.10", + "sysDescr": "Linux MY-HOSTNAME 4.19.232-1.mlos3.x86_64 #1 SMP Mon Mar 7 18:52:44 IST 2022 x86_64", + "sysContact": "", + "version": null, + "hardware": null, + "features": null, + "location": "", + "os": "mlos-atd", + "type": "appliance", + "serial": null, + "icon": "trellix.svg" + } + ] + }, + "poller": "matches discovery" + }, + "processors": { + "discovery": { + "processors": [ + { + "entPhysicalIndex": 0, + "hrDeviceIndex": 0, + "processor_oid": ".1.3.6.1.4.1.8962.4.1.1.1.0", + "processor_index": "0", + "processor_type": "mlos-atd", + "processor_usage": 1, + "processor_descr": "Processor", + "processor_precision": 1, + "processor_perc_warn": 75 + } + ] + }, + "poller": "matches discovery" + }, + "mempools": { + "discovery": { + "mempools": [ + { + "mempool_index": "0", + "entPhysicalIndex": null, + "mempool_type": "mlos-atd", + "mempool_class": "system", + "mempool_precision": 1, + "mempool_descr": "Memory", + "mempool_perc": 17, + "mempool_perc_oid": ".1.3.6.1.4.1.8962.4.1.1.2.0", + "mempool_used": 17, + "mempool_used_oid": null, + "mempool_free": 83, + "mempool_free_oid": null, + "mempool_total": 100, + "mempool_total_oid": null, + "mempool_largestfree": null, + "mempool_lowestfree": null, + "mempool_deleted": 0, + "mempool_perc_warn": 90 + } + ] + }, + "poller": "matches discovery" + }, + "sensors": { + "discovery": { + "sensors": [ + { + "sensor_deleted": 0, + "sensor_class": "count", + "poller_type": "snmp", + "sensor_oid": ".1.3.6.1.4.1.8962.4.1.1.7.0", + "sensor_index": "atdFileAnalyzing", + "sensor_type": "mlos-atd", + "sensor_descr": "ATD Files Processing", + "group": "File Processing", + "sensor_divisor": 1, + "sensor_multiplier": 1, + "sensor_current": 0, + "sensor_limit": null, + "sensor_limit_warn": null, + "sensor_limit_low": null, + "sensor_limit_low_warn": null, + "sensor_alert": 1, + "sensor_custom": "No", + "entPhysicalIndex": null, + "entPhysicalIndex_measured": null, + "sensor_prev": null, + "user_func": null, + "rrd_type": "GAUGE", + "state_name": null + }, + { + "sensor_deleted": 0, + "sensor_class": "count", + "poller_type": "snmp", + "sensor_oid": ".1.3.6.1.4.1.8962.4.1.1.6.0", + "sensor_index": "atdFileWaiting", + "sensor_type": "mlos-atd", + "sensor_descr": "ATD Files Queued", + "group": "File Processing", + "sensor_divisor": 1, + "sensor_multiplier": 1, + "sensor_current": 0, + "sensor_limit": null, + "sensor_limit_warn": null, + "sensor_limit_low": null, + "sensor_limit_low_warn": null, + "sensor_alert": 1, + "sensor_custom": "No", + "entPhysicalIndex": null, + "entPhysicalIndex_measured": null, + "sensor_prev": null, + "user_func": null, + "rrd_type": "GAUGE", + "state_name": null + }, + { + "sensor_deleted": 0, + "sensor_class": "percent", + "poller_type": "snmp", + "sensor_oid": ".1.3.6.1.4.1.8962.4.1.1.4.0", + "sensor_index": "atdDataDiskSpaceUsed", + "sensor_type": "mlos-atd", + "sensor_descr": "ATD Data Disk Space Utilization", + "group": null, + "sensor_divisor": 1, + "sensor_multiplier": 1, + "sensor_current": 10, + "sensor_limit": null, + "sensor_limit_warn": null, + "sensor_limit_low": null, + "sensor_limit_low_warn": null, + "sensor_alert": 1, + "sensor_custom": "No", + "entPhysicalIndex": null, + "entPhysicalIndex_measured": null, + "sensor_prev": null, + "user_func": null, + "rrd_type": "GAUGE", + "state_name": null + }, + { + "sensor_deleted": 0, + "sensor_class": "percent", + "poller_type": "snmp", + "sensor_oid": ".1.3.6.1.4.1.8962.4.1.1.3.0", + "sensor_index": "atdSystemDiskSpaceUsed", + "sensor_type": "mlos-atd", + "sensor_descr": "ATD System Disk Space Utilization", + "group": null, + "sensor_divisor": 1, + "sensor_multiplier": 1, + "sensor_current": 10, + "sensor_limit": null, + "sensor_limit_warn": null, + "sensor_limit_low": null, + "sensor_limit_low_warn": null, + "sensor_alert": 1, + "sensor_custom": "No", + "entPhysicalIndex": null, + "entPhysicalIndex_measured": null, + "sensor_prev": null, + "user_func": null, + "rrd_type": "GAUGE", + "state_name": null + }, + { + "sensor_deleted": 0, + "sensor_class": "percent", + "poller_type": "snmp", + "sensor_oid": ".1.3.6.1.4.1.8962.4.1.1.19.0", + "sensor_index": "atdVarDiskSpaceUsed", + "sensor_type": "mlos-atd", + "sensor_descr": "ATD Var Disk Space Utilization", + "group": null, + "sensor_divisor": 1, + "sensor_multiplier": 1, + "sensor_current": 6, + "sensor_limit": null, + "sensor_limit_warn": null, + "sensor_limit_low": null, + "sensor_limit_low_warn": null, + "sensor_alert": 1, + "sensor_custom": "No", + "entPhysicalIndex": null, + "entPhysicalIndex_measured": null, + "sensor_prev": null, + "user_func": null, + "rrd_type": "GAUGE", + "state_name": null + }, + { + "sensor_deleted": 0, + "sensor_class": "state", + "poller_type": "snmp", + "sensor_oid": ".1.3.6.1.4.1.8962.4.1.1.10.0", + "sensor_index": "0", + "sensor_type": "atdBackupSchedulerStatus", + "sensor_descr": "Backup Scheduler Status", + "group": null, + "sensor_divisor": 1, + "sensor_multiplier": 1, + "sensor_current": 1, + "sensor_limit": null, + "sensor_limit_warn": null, + "sensor_limit_low": null, + "sensor_limit_low_warn": null, + "sensor_alert": 1, + "sensor_custom": "No", + "entPhysicalIndex": null, + "entPhysicalIndex_measured": null, + "sensor_prev": null, + "user_func": null, + "rrd_type": "GAUGE", + "state_name": "atdBackupSchedulerStatus" + }, + { + "sensor_deleted": 0, + "sensor_class": "state", + "poller_type": "snmp", + "sensor_oid": ".1.3.6.1.4.1.8962.4.1.1.16.0", + "sensor_index": "0", + "sensor_type": "atdDXLChannelStatus", + "sensor_descr": "ATD DXL Status", + "group": null, + "sensor_divisor": 1, + "sensor_multiplier": 1, + "sensor_current": 0, + "sensor_limit": null, + "sensor_limit_warn": null, + "sensor_limit_low": null, + "sensor_limit_low_warn": null, + "sensor_alert": 1, + "sensor_custom": "No", + "entPhysicalIndex": null, + "entPhysicalIndex_measured": null, + "sensor_prev": null, + "user_func": null, + "rrd_type": "GAUGE", + "state_name": "atdDXLChannelStatus" + }, + { + "sensor_deleted": 0, + "sensor_class": "state", + "poller_type": "snmp", + "sensor_oid": ".1.3.6.1.4.1.8962.4.1.1.12.0", + "sensor_index": "0", + "sensor_type": "atdEmailConnectorStatus", + "sensor_descr": "ATD Email Connetor Status", + "group": null, + "sensor_divisor": 1, + "sensor_multiplier": 1, + "sensor_current": 0, + "sensor_limit": null, + "sensor_limit_warn": null, + "sensor_limit_low": null, + "sensor_limit_low_warn": null, + "sensor_alert": 1, + "sensor_custom": "No", + "entPhysicalIndex": null, + "entPhysicalIndex_measured": null, + "sensor_prev": null, + "user_func": null, + "rrd_type": "GAUGE", + "state_name": "atdEmailConnectorStatus" + }, + { + "sensor_deleted": 0, + "sensor_class": "state", + "poller_type": "snmp", + "sensor_oid": ".1.3.6.1.4.1.8962.4.1.1.13.0", + "sensor_index": "0", + "sensor_type": "atdEmailGatewayWaitTime", + "sensor_descr": "Email Gateway Wait Time Threshold", + "group": null, + "sensor_divisor": 1, + "sensor_multiplier": 1, + "sensor_current": 0, + "sensor_limit": null, + "sensor_limit_warn": null, + "sensor_limit_low": null, + "sensor_limit_low_warn": null, + "sensor_alert": 1, + "sensor_custom": "No", + "entPhysicalIndex": null, + "entPhysicalIndex_measured": null, + "sensor_prev": null, + "user_func": null, + "rrd_type": "GAUGE", + "state_name": "atdEmailGatewayWaitTime" + }, + { + "sensor_deleted": 0, + "sensor_class": "state", + "poller_type": "snmp", + "sensor_oid": ".1.3.6.1.4.1.8962.4.1.1.15.0", + "sensor_index": "0", + "sensor_type": "atdLicenseStatus", + "sensor_descr": "ATD License Status", + "group": null, + "sensor_divisor": 1, + "sensor_multiplier": 1, + "sensor_current": 1, + "sensor_limit": null, + "sensor_limit_warn": null, + "sensor_limit_low": null, + "sensor_limit_low_warn": null, + "sensor_alert": 1, + "sensor_custom": "No", + "entPhysicalIndex": null, + "entPhysicalIndex_measured": null, + "sensor_prev": null, + "user_func": null, + "rrd_type": "GAUGE", + "state_name": "atdLicenseStatus" + }, + { + "sensor_deleted": 0, + "sensor_class": "state", + "poller_type": "snmp", + "sensor_oid": ".1.3.6.1.4.1.8962.4.1.1.11.0", + "sensor_index": "0", + "sensor_type": "atdLoadBalancerStatus", + "sensor_descr": "ATD Load Balancer Status", + "group": null, + "sensor_divisor": 1, + "sensor_multiplier": 1, + "sensor_current": 0, + "sensor_limit": null, + "sensor_limit_warn": null, + "sensor_limit_low": null, + "sensor_limit_low_warn": null, + "sensor_alert": 1, + "sensor_custom": "No", + "entPhysicalIndex": null, + "entPhysicalIndex_measured": null, + "sensor_prev": null, + "user_func": null, + "rrd_type": "GAUGE", + "state_name": "atdLoadBalancerStatus" + }, + { + "sensor_deleted": 0, + "sensor_class": "state", + "poller_type": "snmp", + "sensor_oid": ".1.3.6.1.4.1.8962.4.1.1.14.0", + "sensor_index": "0", + "sensor_type": "atdMalwareInterfaceStatus", + "sensor_descr": "ATD Malware Interface Status", + "group": null, + "sensor_divisor": 1, + "sensor_multiplier": 1, + "sensor_current": 1, + "sensor_limit": null, + "sensor_limit_warn": null, + "sensor_limit_low": null, + "sensor_limit_low_warn": null, + "sensor_alert": 1, + "sensor_custom": "No", + "entPhysicalIndex": null, + "entPhysicalIndex_measured": null, + "sensor_prev": null, + "user_func": null, + "rrd_type": "GAUGE", + "state_name": "atdMalwareInterfaceStatus" + }, + { + "sensor_deleted": 0, + "sensor_class": "state", + "poller_type": "snmp", + "sensor_oid": ".1.3.6.1.4.1.8962.4.1.1.17.0", + "sensor_index": "0", + "sensor_type": "atdSensorStatus", + "sensor_descr": "ATD Sensor Status", + "group": null, + "sensor_divisor": 1, + "sensor_multiplier": 1, + "sensor_current": 1, + "sensor_limit": null, + "sensor_limit_warn": null, + "sensor_limit_low": null, + "sensor_limit_low_warn": null, + "sensor_alert": 1, + "sensor_custom": "No", + "entPhysicalIndex": null, + "entPhysicalIndex_measured": null, + "sensor_prev": null, + "user_func": null, + "rrd_type": "GAUGE", + "state_name": "atdSensorStatus" + }, + { + "sensor_deleted": 0, + "sensor_class": "state", + "poller_type": "snmp", + "sensor_oid": ".1.3.6.1.4.1.8962.4.1.1.9.0", + "sensor_index": "0", + "sensor_type": "atdSystemHealth", + "sensor_descr": "System Health", + "group": null, + "sensor_divisor": 1, + "sensor_multiplier": 1, + "sensor_current": 1, + "sensor_limit": null, + "sensor_limit_warn": null, + "sensor_limit_low": null, + "sensor_limit_low_warn": null, + "sensor_alert": 1, + "sensor_custom": "No", + "entPhysicalIndex": null, + "entPhysicalIndex_measured": null, + "sensor_prev": null, + "user_func": null, + "rrd_type": "GAUGE", + "state_name": "atdSystemHealth" + }, + { + "sensor_deleted": 0, + "sensor_class": "state", + "poller_type": "snmp", + "sensor_oid": ".1.3.6.1.4.1.8962.4.1.1.18.0", + "sensor_index": "0", + "sensor_type": "atdTAXIIStatus", + "sensor_descr": "ATD TAXII Status", + "group": null, + "sensor_divisor": 1, + "sensor_multiplier": 1, + "sensor_current": 0, + "sensor_limit": null, + "sensor_limit_warn": null, + "sensor_limit_low": null, + "sensor_limit_low_warn": null, + "sensor_alert": 1, + "sensor_custom": "No", + "entPhysicalIndex": null, + "entPhysicalIndex_measured": null, + "sensor_prev": null, + "user_func": null, + "rrd_type": "GAUGE", + "state_name": "atdTAXIIStatus" + }, + { + "sensor_deleted": 0, + "sensor_class": "temperature", + "poller_type": "snmp", + "sensor_oid": ".1.3.6.1.4.1.8962.4.1.1.8.0", + "sensor_index": "0", + "sensor_type": "mlos-atd", + "sensor_descr": "System Temperature", + "group": null, + "sensor_divisor": 1, + "sensor_multiplier": 1, + "sensor_current": 30, + "sensor_limit": 50, + "sensor_limit_warn": null, + "sensor_limit_low": 20, + "sensor_limit_low_warn": null, + "sensor_alert": 1, + "sensor_custom": "No", + "entPhysicalIndex": null, + "entPhysicalIndex_measured": null, + "sensor_prev": null, + "user_func": null, + "rrd_type": "GAUGE", + "state_name": null + } + ], + "state_indexes": [ + { + "state_name": "atdBackupSchedulerStatus", + "state_descr": "Backup Scheduler Status Failed", + "state_draw_graph": 0, + "state_value": 0, + "state_generic_value": 2 + }, + { + "state_name": "atdBackupSchedulerStatus", + "state_descr": "Backup Scheduler Status Ok", + "state_draw_graph": 0, + "state_value": 1, + "state_generic_value": 0 + }, + { + "state_name": "atdDXLChannelStatus", + "state_descr": "Down", + "state_draw_graph": 0, + "state_value": 0, + "state_generic_value": 2 + }, + { + "state_name": "atdDXLChannelStatus", + "state_descr": "Up", + "state_draw_graph": 0, + "state_value": 1, + "state_generic_value": 0 + }, + { + "state_name": "atdEmailConnectorStatus", + "state_descr": "Email Connector Disabled", + "state_draw_graph": 0, + "state_value": 0, + "state_generic_value": 3 + }, + { + "state_name": "atdEmailConnectorStatus", + "state_descr": "Email Connector Ok", + "state_draw_graph": 0, + "state_value": 1, + "state_generic_value": 0 + }, + { + "state_name": "atdEmailConnectorStatus", + "state_descr": "Email Connector Degraded", + "state_draw_graph": 0, + "state_value": 2, + "state_generic_value": 1 + }, + { + "state_name": "atdEmailConnectorStatus", + "state_descr": "Email Connector Overloaded", + "state_draw_graph": 0, + "state_value": 3, + "state_generic_value": 2 + }, + { + "state_name": "atdEmailGatewayWaitTime", + "state_descr": "Email Gateway Threshold Ok", + "state_draw_graph": 0, + "state_value": 0, + "state_generic_value": 0 + }, + { + "state_name": "atdEmailGatewayWaitTime", + "state_descr": "Email Gateway Threshold Wait Time Reached", + "state_draw_graph": 0, + "state_value": 1, + "state_generic_value": 2 + }, + { + "state_name": "atdLicenseStatus", + "state_descr": "Valid", + "state_draw_graph": 0, + "state_value": 1, + "state_generic_value": 0 + }, + { + "state_name": "atdLicenseStatus", + "state_descr": "Invalid", + "state_draw_graph": 0, + "state_value": 2, + "state_generic_value": 2 + }, + { + "state_name": "atdLicenseStatus", + "state_descr": "Expired", + "state_draw_graph": 0, + "state_value": 3, + "state_generic_value": 2 + }, + { + "state_name": "atdLoadBalancerStatus", + "state_descr": "Device In Standalone Mode", + "state_draw_graph": 0, + "state_value": 0, + "state_generic_value": 0 + }, + { + "state_name": "atdLoadBalancerStatus", + "state_descr": "Load Balancer Down", + "state_draw_graph": 0, + "state_value": 1, + "state_generic_value": 2 + }, + { + "state_name": "atdLoadBalancerStatus", + "state_descr": "Load Balancer Up", + "state_draw_graph": 0, + "state_value": 2, + "state_generic_value": 0 + }, + { + "state_name": "atdLoadBalancerStatus", + "state_descr": "SW VERSION MISMATCH", + "state_draw_graph": 0, + "state_value": 3, + "state_generic_value": 1 + }, + { + "state_name": "atdLoadBalancerStatus", + "state_descr": "Primary Node LB Not Up", + "state_draw_graph": 0, + "state_value": 4, + "state_generic_value": 2 + }, + { + "state_name": "atdLoadBalancerStatus", + "state_descr": "SCP Failed", + "state_draw_graph": 0, + "state_value": 5, + "state_generic_value": 1 + }, + { + "state_name": "atdLoadBalancerStatus", + "state_descr": "VM Creation Failed", + "state_draw_graph": 0, + "state_value": 6, + "state_generic_value": 1 + }, + { + "state_name": "atdLoadBalancerStatus", + "state_descr": "Invalid Status", + "state_draw_graph": 0, + "state_value": 7, + "state_generic_value": 3 + }, + { + "state_name": "atdMalwareInterfaceStatus", + "state_descr": "Down", + "state_draw_graph": 0, + "state_value": 0, + "state_generic_value": 2 + }, + { + "state_name": "atdMalwareInterfaceStatus", + "state_descr": "Up", + "state_draw_graph": 0, + "state_value": 1, + "state_generic_value": 0 + }, + { + "state_name": "atdSensorStatus", + "state_descr": "Inactive", + "state_draw_graph": 0, + "state_value": 0, + "state_generic_value": 2 + }, + { + "state_name": "atdSensorStatus", + "state_descr": "Active", + "state_draw_graph": 0, + "state_value": 1, + "state_generic_value": 0 + }, + { + "state_name": "atdSensorStatus", + "state_descr": "Not Conencted", + "state_draw_graph": 0, + "state_value": 2, + "state_generic_value": 3 + }, + { + "state_name": "atdSystemHealth", + "state_descr": "Bad", + "state_draw_graph": 0, + "state_value": 0, + "state_generic_value": 2 + }, + { + "state_name": "atdSystemHealth", + "state_descr": "Good", + "state_draw_graph": 0, + "state_value": 1, + "state_generic_value": 0 + }, + { + "state_name": "atdTAXIIStatus", + "state_descr": "Down", + "state_draw_graph": 0, + "state_value": 0, + "state_generic_value": 2 + }, + { + "state_name": "atdTAXIIStatus", + "state_descr": "Up", + "state_draw_graph": 0, + "state_value": 1, + "state_generic_value": 0 + }, + { + "state_name": "atdTAXIIStatus", + "state_descr": "Unknown", + "state_draw_graph": 0, + "state_value": 2, + "state_generic_value": 3 + } + ] + }, + "poller": "matches discovery" + } +} diff --git a/tests/snmpsim/mlos-atd.snmprec b/tests/snmpsim/mlos-atd.snmprec new file mode 100644 index 0000000000..e28f7e29ac --- /dev/null +++ b/tests/snmpsim/mlos-atd.snmprec @@ -0,0 +1,24 @@ +1.3.6.1.2.1.1.1.0|4|Linux MY-HOSTNAME 4.19.232-1.mlos3.x86_64 #1 SMP Mon Mar 7 18:52:44 IST 2022 x86_64 +1.3.6.1.2.1.1.2.0|6|1.3.6.1.4.1.8072.3.2.10 +1.3.6.1.2.1.1.3.0|67|449221848 +1.3.6.1.2.1.1.4.0|4| +1.3.6.1.2.1.1.5.0|4| +1.3.6.1.2.1.1.6.0|4| +1.3.6.1.4.1.8962.4.1.1.1.0|2|1 +1.3.6.1.4.1.8962.4.1.1.2.0|2|17 +1.3.6.1.4.1.8962.4.1.1.3.0|2|10 +1.3.6.1.4.1.8962.4.1.1.4.0|2|10 +1.3.6.1.4.1.8962.4.1.1.6.0|2|0 +1.3.6.1.4.1.8962.4.1.1.7.0|2|0 +1.3.6.1.4.1.8962.4.1.1.8.0|2|30 +1.3.6.1.4.1.8962.4.1.1.9.0|2|1 +1.3.6.1.4.1.8962.4.1.1.10.0|2|1 +1.3.6.1.4.1.8962.4.1.1.11.0|2|0 +1.3.6.1.4.1.8962.4.1.1.12.0|2|0 +1.3.6.1.4.1.8962.4.1.1.13.0|2|0 +1.3.6.1.4.1.8962.4.1.1.14.0|2|1 +1.3.6.1.4.1.8962.4.1.1.15.0|2|1 +1.3.6.1.4.1.8962.4.1.1.16.0|2|0 +1.3.6.1.4.1.8962.4.1.1.17.0|2|1 +1.3.6.1.4.1.8962.4.1.1.18.0|2|0 +1.3.6.1.4.1.8962.4.1.1.19.0|2|6