Skip to content

Commit

Permalink
netscaler new counter metrics (librenms#13323)
Browse files Browse the repository at this point in the history
* Update netscaler.yaml

* Create netscaler.snmprec_sensors.snmprec

* Rename netscaler.snmprec_sensors.snmprec to netscaler_sensors.snmprec

* Create netscaler_sensors.json

* Update netscaler.json

* Update netscaler.yaml

* Update netscaler.json

* Delete netscaler_sensors.json

* Delete netscaler_sensors.snmprec

* Update netscaler.yaml

* Update netscaler.json

* Update netscaler.snmprec

Co-authored-by: Tony Murray <[email protected]>
Co-authored-by: Neil Lathwood <[email protected]>
  • Loading branch information
3 people authored Apr 22, 2022
1 parent 4a98dc6 commit 4aaf6f2
Show file tree
Hide file tree
Showing 3 changed files with 132 additions and 12 deletions.
22 changes: 22 additions & 0 deletions includes/definitions/discovery/netscaler.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
120 changes: 108 additions & 12 deletions tests/data/netscaler.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand 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",
Expand Down
2 changes: 2 additions & 0 deletions tests/snmpsim/netscaler.snmprec
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4aaf6f2

Please sign in to comment.