diff --git a/includes/definitions/discovery/gaia.yaml b/includes/definitions/discovery/gaia.yaml index 1941f5bc03..73980dab07 100644 --- a/includes/definitions/discovery/gaia.yaml +++ b/includes/definitions/discovery/gaia.yaml @@ -325,3 +325,74 @@ modules: num_oid: '.1.3.6.1.4.1.2620.1.6.7.8.3.1.3.{{ $index }}' descr: voltageSensorName index: 'voltageSensorValue.{{ $index }}' + count: + data: +#Connections + - + oid: fwNumConn + num_oid: '.1.3.6.1.4.1.2620.1.1.25.3.{{ $index }}' + index: 'fwNumConn.{{ $index }}' + descr: 'Number of concurrent connections' + group: Connections + - + oid: fwPeakNumConn + num_oid: '.1.3.6.1.4.1.2620.1.1.25.4.{{ $index }}' + index: 'fwPeakNumConn.{{ $index }}' + descr: 'Peak number of concurrent connections' + group: Connections + - + oid: fwConnTableLimit + num_oid: '.1.3.6.1.4.1.2620.1.1.25.10.{{ $index }}' + index: 'fwConnTableLimit.{{ $index }}' + descr: 'Limit of Connections table' + group: Connections + - + oid: fwConnectionsStatConnectionRate + num_oid: '.1.3.6.1.4.1.2620.1.1.26.11.6.{{ $index }}' + index: 'fwConnectionsStatConnectionRate.{{ $index }}' + descr: 'Connections rate' + group: Connections + - + oid: fwSXLConnsExisting + num_oid: '.1.3.6.1.4.1.2620.1.36.1.2.{{ $index }}' + index: 'fwSXLConnsExisting.{{ $index }}' + descr: 'Number of connections handled by SecureXL' + group: Connections +#VPN + - + oid: cpvIKECurrSAs + num_oid: '.1.3.6.1.4.1.2620.1.2.9.1.1.{{ $index }}' + index: 'cpvIKECurrSAs.{{ $index }}' + descr: 'Number of IKE current SAs' + group: VPN + - + oid: cpvCurrEspSAsIn + num_oid: '.1.3.6.1.4.1.2620.1.2.5.2.1.{{ $index }}' + index: 'cpvCurrEspSAsIn.{{ $index }}' + descr: 'Number of IPsec current Inbound ESP SAs' + group: VPN + - + oid: cpvCurrEspSAsOut + num_oid: '.1.3.6.1.4.1.2620.1.2.5.2.3.{{ $index }}' + index: 'cpvCurrEspSAsOut.{{ $index }}' + descr: 'Number of IPsec current Outbound ESP SAs' + group: VPN +#Logging + - + oid: mgLSLogReceiveRate + num_oid: '.1.3.6.1.4.1.2620.1.7.14.1.{{ $index }}' + index: 'mgLSLogReceiveRate.{{ $index }}' + descr: 'Log Receive Rate' + group: Logging + - + oid: mgLSLogReceiveRatePeak + num_oid: '.1.3.6.1.4.1.2620.1.7.14.2.{{ $index }}' + index: 'mgLSLogReceiveRatePeak.{{ $index }}' + descr: 'Log Receive Rate Peak' + group: Logging + - + oid: fwLoggingHandlingRate + num_oid: '.1.3.6.1.4.1.2620.1.1.30.7.{{ $index }}' + index: 'fwLoggingHandlingRate.{{ $index }}' + descr: 'Log Rate' + group: Logging diff --git a/tests/data/gaia_23900.json b/tests/data/gaia_23900.json index 53dd29fa31..458392d075 100644 --- a/tests/data/gaia_23900.json +++ b/tests/data/gaia_23900.json @@ -23,6 +23,54 @@ "sensors": { "discovery": { "sensors": [ + { + "sensor_deleted": 0, + "sensor_class": "count", + "poller_type": "snmp", + "sensor_oid": ".1.3.6.1.4.1.2620.1.1.30.7.0", + "sensor_index": "fwLoggingHandlingRate.0", + "sensor_type": "gaia", + "sensor_descr": "Log Rate", + "group": "Logging", + "sensor_divisor": 1, + "sensor_multiplier": 1, + "sensor_current": 435, + "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, + "state_name": null + }, + { + "sensor_deleted": 0, + "sensor_class": "count", + "poller_type": "snmp", + "sensor_oid": ".1.3.6.1.4.1.2620.1.1.25.3.0", + "sensor_index": "fwNumConn.0", + "sensor_type": "gaia", + "sensor_descr": "Number of concurrent connections", + "group": "Connections", + "sensor_divisor": 1, + "sensor_multiplier": 1, + "sensor_current": 61476, + "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, + "state_name": null + }, { "sensor_deleted": 0, "sensor_class": "state", diff --git a/tests/data/gaia_logserver.json b/tests/data/gaia_logserver.json index 195a361c7d..5c115aa4c5 100644 --- a/tests/data/gaia_logserver.json +++ b/tests/data/gaia_logserver.json @@ -23,6 +23,54 @@ "sensors": { "discovery": { "sensors": [ + { + "sensor_deleted": 0, + "sensor_class": "count", + "poller_type": "snmp", + "sensor_oid": ".1.3.6.1.4.1.2620.1.7.14.1.0", + "sensor_index": "mgLSLogReceiveRate.0", + "sensor_type": "gaia", + "sensor_descr": "Log Receive Rate", + "group": "Logging", + "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, + "state_name": null + }, + { + "sensor_deleted": 0, + "sensor_class": "count", + "poller_type": "snmp", + "sensor_oid": ".1.3.6.1.4.1.2620.1.7.14.2.0", + "sensor_index": "mgLSLogReceiveRatePeak.0", + "sensor_type": "gaia", + "sensor_descr": "Log Receive Rate Peak", + "group": "Logging", + "sensor_divisor": 1, + "sensor_multiplier": 1, + "sensor_current": 5, + "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, + "state_name": null + }, { "sensor_deleted": 0, "sensor_class": "fanspeed", diff --git a/tests/snmpsim/gaia_logserver.snmprec b/tests/snmpsim/gaia_logserver.snmprec index fd6b87c86d..d14084c958 100644 --- a/tests/snmpsim/gaia_logserver.snmprec +++ b/tests/snmpsim/gaia_logserver.snmprec @@ -155,7 +155,8 @@ 1.3.6.1.4.1.2620.1.6.16.7.0|4|ProLiant DL380 Gen9 1.3.6.1.4.1.2620.1.7.5.0|4|active 1.3.6.1.4.1.2620.1.7.6.0|66|1 -1.3.6.1.4.1.2620.1.7.14.1.0|66|913 +1.3.6.1.4.1.2620.1.7.14.1.0|66|1 +1.3.6.1.4.1.2620.1.7.14.2.0|66|5 1.3.6.1.4.1.2620.1.7.14.4.1.2.1.0|4|Local Clients 1.3.6.1.4.1.2620.1.7.14.4.1.2.2.0|4|gw1-ckp-gaia 1.3.6.1.4.1.2620.1.7.14.4.1.2.3.0|4|gw2-ckp-gaia