diff --git a/includes/definitions/discovery/netscaler.yaml b/includes/definitions/discovery/netscaler.yaml index 66f05df25f96..474f2827ca1f 100644 --- a/includes/definitions/discovery/netscaler.yaml +++ b/includes/definitions/discovery/netscaler.yaml @@ -72,3 +72,25 @@ modules: - { value: 1, generic: 0, graph: 1, descr: primary } - { value: 2, generic: 0, graph: 1, descr: secondary } - { value: 3, generic: 3, graph: 1, descr: unknown } + count: + data: + - + oid: sslTotTransactionsRate + num_oid: '.1.3.6.1.4.1.5951.4.1.1.47.333.{{ $index }}' + index: 'sslTotTransactionsRate.{{ $index }}' + descr: SSL Total Transactions Rate + - + oid: httpTotRequestsRate + num_oid: '.1.3.6.1.4.1.5951.4.1.1.48.76.{{ $index }}' + index: 'httpTotRequestsRate.{{ $index }}' + descr: HTTP Total Requests Rate + - + oid: tcpCurClientConnEstablished + num_oid: '.1.3.6.1.4.1.5951.4.1.1.46.12.{{ $index }}' + index: 'tcpCurClientConnEstablished.{{ $index }}' + descr: Current TCP Client Connections Established + - + oid: tcpCurServerConnEstablished + num_oid: '.1.3.6.1.4.1.5951.4.1.1.46.10.{{ $index }}' + index: 'tcpCurServerConnEstablished.{{ $index }}' + descr: Current TCP Server Connections Established diff --git a/tests/data/netscaler.json b/tests/data/netscaler.json index d9da56dec775..01223e81a234 100644 --- a/tests/data/netscaler.json +++ b/tests/data/netscaler.json @@ -1297,8 +1297,8 @@ "ifName": "1/6", "portName": null, "ifIndex": 3, - "ifSpeed": null, - "ifSpeed_prev": 0, + "ifSpeed": 0, + "ifSpeed_prev": null, "ifConnectorPresent": "true", "ifPromiscuousMode": "true", "ifOperStatus": "down", @@ -1402,8 +1402,8 @@ "ifName": "1/5", "portName": null, "ifIndex": 4, - "ifSpeed": null, - "ifSpeed_prev": 0, + "ifSpeed": 0, + "ifSpeed_prev": null, "ifConnectorPresent": "true", "ifPromiscuousMode": "true", "ifOperStatus": "down", @@ -1507,8 +1507,8 @@ "ifName": "1/4", "portName": null, "ifIndex": 5, - "ifSpeed": null, - "ifSpeed_prev": 0, + "ifSpeed": 0, + "ifSpeed_prev": null, "ifConnectorPresent": "true", "ifPromiscuousMode": "true", "ifOperStatus": "down", @@ -1612,8 +1612,8 @@ "ifName": "1/3", "portName": null, "ifIndex": 6, - "ifSpeed": null, - "ifSpeed_prev": 0, + "ifSpeed": 0, + "ifSpeed_prev": null, "ifConnectorPresent": "true", "ifPromiscuousMode": "true", "ifOperStatus": "down", @@ -1717,8 +1717,8 @@ "ifName": "1/2", "portName": null, "ifIndex": 7, - "ifSpeed": null, - "ifSpeed_prev": 0, + "ifSpeed": 0, + "ifSpeed_prev": null, "ifConnectorPresent": "true", "ifPromiscuousMode": "true", "ifOperStatus": "down", @@ -2032,8 +2032,8 @@ "ifName": "LO/1", "portName": null, "ifIndex": 10, - "ifSpeed": null, - "ifSpeed_prev": 0, + "ifSpeed": 0, + "ifSpeed_prev": null, "ifConnectorPresent": "true", "ifPromiscuousMode": "true", "ifOperStatus": "up", @@ -2233,6 +2233,102 @@ "sensors": { "discovery": { "sensors": [ + { + "sensor_deleted": 0, + "sensor_class": "count", + "poller_type": "snmp", + "sensor_oid": ".1.3.6.1.4.1.5951.4.1.1.48.76.0", + "sensor_index": "httpTotRequestsRate.0", + "sensor_type": "netscaler", + "sensor_descr": "HTTP Total Requests Rate", + "group": null, + "sensor_divisor": 1, + "sensor_multiplier": 1, + "sensor_current": 42, + "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.5951.4.1.1.47.333.0", + "sensor_index": "sslTotTransactionsRate.0", + "sensor_type": "netscaler", + "sensor_descr": "SSL Total Transactions Rate", + "group": null, + "sensor_divisor": 1, + "sensor_multiplier": 1, + "sensor_current": 42, + "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.5951.4.1.1.46.12.0", + "sensor_index": "tcpCurClientConnEstablished.0", + "sensor_type": "netscaler", + "sensor_descr": "Current TCP Client Connections Established", + "group": null, + "sensor_divisor": 1, + "sensor_multiplier": 1, + "sensor_current": 39, + "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.5951.4.1.1.46.10.0", + "sensor_index": "tcpCurServerConnEstablished.0", + "sensor_type": "netscaler", + "sensor_descr": "Current TCP Server Connections Established", + "group": null, + "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/netscaler.snmprec b/tests/snmpsim/netscaler.snmprec index 3d986357254d..ffa914280291 100644 --- a/tests/snmpsim/netscaler.snmprec +++ b/tests/snmpsim/netscaler.snmprec @@ -587,6 +587,8 @@ 1.3.6.1.4.1.5951.4.1.1.46.175.0|70|0 1.3.6.1.4.1.5951.4.1.1.46.176.0|70|0 1.3.6.1.4.1.5951.4.1.1.46.177.0|70|0 +1.3.6.1.4.1.5951.4.1.1.47.333.0|70|42 +1.3.6.1.4.1.5951.4.1.1.48.76.0|70|42 1.3.6.1.4.1.5951.4.1.3.1.1.1.16.99.100.110.45.115.116.97.103.105.110.103.45.104.116.116.112|4|cdn-staging-http 1.3.6.1.4.1.5951.4.1.3.1.1.1.17.99.97.115.97.45.115.116.97.103.105.110.103.45.104.116.116.112|4|casa-staging-http 1.3.6.1.4.1.5951.4.1.3.1.1.1.17.105.100.46.104.111.112.112.101.114.46.99.111.109.45.115.115.108|4|id.hopper.com-ssl