Added support for Nutanix VM count, disk state, CPU usage and RAM usage (#15252)

* Added support for Nutanix VM count, disk state, CPU usage and RAM usage

* Added num_oid values required for pull request

* Fixes for Nutanix AOS graphs
This commit is contained in:
eskyuu 2023-08-31 03:11:04 +08:00 committed by GitHub
parent 30b5c40961
commit 298d217a8b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 6909 additions and 0 deletions

View File

@ -0,0 +1,40 @@
mib: NUTANIX-MIB
modules:
sensors:
state:
data:
-
oid: diskStatusTable
value: dstState
num_oid: '.1.3.6.1.4.1.41263.3.1.13.{{ $index }}'
index: 'DISKSTATE-{{ $dstDiskId }}'
descr: 'Disk {{ $dstDiskId }}'
states:
- { descr: ok , graph: 0, value: 1, generic: 0 }
- { descr: error , graph: 0, value: 2, generic: 1 }
count:
data:
-
oid: hypervisorInformationTable
value: hypervisorVmCount
num_oid: '.1.3.6.1.4.1.41263.9.1.4.{{ $index }}'
descr: '{{ $hypervisorName }} VM Count'
index: 'VMS-{{ $hypervisorName }}'
percent:
data:
-
oid: hypervisorInformationTable
value: hypervisorMemoryUsagePercent
num_oid: '.1.3.6.1.4.1.41263.9.1.8.{{ $index }}'
descr: '{{ $hypervisorName }} RAM'
index: 'RAM-{{ $hypervisorName }}'
warn_limit: 90
high_limit: 95
-
oid: hypervisorInformationTable
value: hypervisorCpuUsagePercent
num_oid: '.1.3.6.1.4.1.41263.9.1.6.{{ $index }}'
descr: '{{ $hypervisorName }} CPU'
index: 'CPU-{{ $hypervisorName }}'
warn_limit: 90
high_limit: 95

6336
mibs/nutanix-aos/NUTANIX-MIB Normal file

File diff suppressed because it is too large Load Diff

View File

@ -19,5 +19,428 @@
]
},
"poller": "matches discovery"
},
"sensors": {
"discovery": {
"sensors": [
{
"sensor_deleted": 0,
"sensor_class": "count",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.41263.9.1.4.4",
"sensor_index": "VMS-HOST01.",
"sensor_type": "nutanix-aos",
"sensor_descr": "HOST01. VM Count",
"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": null
},
{
"sensor_deleted": 0,
"sensor_class": "count",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.41263.9.1.4.5",
"sensor_index": "VMS-HOST02.",
"sensor_type": "nutanix-aos",
"sensor_descr": "HOST02. VM Count",
"group": null,
"sensor_divisor": 1,
"sensor_multiplier": 1,
"sensor_current": 2,
"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.41263.9.1.4.1",
"sensor_index": "VMS-HOST03.",
"sensor_type": "nutanix-aos",
"sensor_descr": "HOST03. VM Count",
"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": null
},
{
"sensor_deleted": 0,
"sensor_class": "count",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.41263.9.1.4.2",
"sensor_index": "VMS-HOST04.",
"sensor_type": "nutanix-aos",
"sensor_descr": "HOST04. VM Count",
"group": null,
"sensor_divisor": 1,
"sensor_multiplier": 1,
"sensor_current": 2,
"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.41263.9.1.4.3",
"sensor_index": "VMS-HOST05.",
"sensor_type": "nutanix-aos",
"sensor_descr": "HOST05. VM Count",
"group": null,
"sensor_divisor": 1,
"sensor_multiplier": 1,
"sensor_current": 2,
"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.41263.9.1.6.4",
"sensor_index": "CPU-HOST01.",
"sensor_type": "nutanix-aos",
"sensor_descr": "HOST01. CPU",
"group": null,
"sensor_divisor": 1,
"sensor_multiplier": 1,
"sensor_current": 11,
"sensor_limit": 95,
"sensor_limit_warn": 90,
"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.41263.9.1.6.5",
"sensor_index": "CPU-HOST02.",
"sensor_type": "nutanix-aos",
"sensor_descr": "HOST02. CPU",
"group": null,
"sensor_divisor": 1,
"sensor_multiplier": 1,
"sensor_current": 14,
"sensor_limit": 95,
"sensor_limit_warn": 90,
"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.41263.9.1.6.1",
"sensor_index": "CPU-HOST03.",
"sensor_type": "nutanix-aos",
"sensor_descr": "HOST03. CPU",
"group": null,
"sensor_divisor": 1,
"sensor_multiplier": 1,
"sensor_current": 6,
"sensor_limit": 95,
"sensor_limit_warn": 90,
"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.41263.9.1.6.2",
"sensor_index": "CPU-HOST04.",
"sensor_type": "nutanix-aos",
"sensor_descr": "HOST04. CPU",
"group": null,
"sensor_divisor": 1,
"sensor_multiplier": 1,
"sensor_current": 12,
"sensor_limit": 95,
"sensor_limit_warn": 90,
"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.41263.9.1.6.3",
"sensor_index": "CPU-HOST05.",
"sensor_type": "nutanix-aos",
"sensor_descr": "HOST05. CPU",
"group": null,
"sensor_divisor": 1,
"sensor_multiplier": 1,
"sensor_current": 13,
"sensor_limit": 95,
"sensor_limit_warn": 90,
"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.41263.9.1.8.4",
"sensor_index": "RAM-HOST01.",
"sensor_type": "nutanix-aos",
"sensor_descr": "HOST01. RAM",
"group": null,
"sensor_divisor": 1,
"sensor_multiplier": 1,
"sensor_current": 5,
"sensor_limit": 95,
"sensor_limit_warn": 90,
"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.41263.9.1.8.5",
"sensor_index": "RAM-HOST02.",
"sensor_type": "nutanix-aos",
"sensor_descr": "HOST02. RAM",
"group": null,
"sensor_divisor": 1,
"sensor_multiplier": 1,
"sensor_current": 13,
"sensor_limit": 95,
"sensor_limit_warn": 90,
"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.41263.9.1.8.1",
"sensor_index": "RAM-HOST03.",
"sensor_type": "nutanix-aos",
"sensor_descr": "HOST03. RAM",
"group": null,
"sensor_divisor": 1,
"sensor_multiplier": 1,
"sensor_current": 5,
"sensor_limit": 95,
"sensor_limit_warn": 90,
"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.41263.9.1.8.2",
"sensor_index": "RAM-HOST04.",
"sensor_type": "nutanix-aos",
"sensor_descr": "HOST04. RAM",
"group": null,
"sensor_divisor": 1,
"sensor_multiplier": 1,
"sensor_current": 13,
"sensor_limit": 95,
"sensor_limit_warn": 90,
"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.41263.9.1.8.3",
"sensor_index": "RAM-HOST05.",
"sensor_type": "nutanix-aos",
"sensor_descr": "HOST05. RAM",
"group": null,
"sensor_divisor": 1,
"sensor_multiplier": 1,
"sensor_current": 13,
"sensor_limit": 95,
"sensor_limit_warn": 90,
"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.41263.3.1.13.30",
"sensor_index": "DISKSTATE-",
"sensor_type": "diskStatusTable",
"sensor_descr": "Disk",
"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": "diskStatusTable"
}
],
"state_indexes": [
{
"state_name": "diskStatusTable",
"state_descr": "ok",
"state_draw_graph": 0,
"state_value": 1,
"state_generic_value": 0
},
{
"state_name": "diskStatusTable",
"state_descr": "error",
"state_draw_graph": 0,
"state_value": 2,
"state_generic_value": 1
}
]
},
"poller": "matches discovery"
}
}

View File

@ -1,2 +1,112 @@
1.3.6.1.2.1.1.1.0|4|Linux ntnx-abc1234aaa-d-cvm 3.10.0-1160.76.1.el7.nutanix.20220817.cvm.x86_64 #1 SMP Wed Aug 17 10:15:46 UTC 2022 x86_64
1.3.6.1.2.1.1.2.0|6|1.3.6.1.4.1.41263
1.3.6.1.4.1.41263.3.1.13.1|2|1
1.3.6.1.4.1.41263.3.1.13.2|2|1
1.3.6.1.4.1.41263.3.1.13.3|2|1
1.3.6.1.4.1.41263.3.1.13.4|2|1
1.3.6.1.4.1.41263.3.1.13.5|2|1
1.3.6.1.4.1.41263.3.1.13.6|2|1
1.3.6.1.4.1.41263.3.1.13.7|2|1
1.3.6.1.4.1.41263.3.1.13.8|2|1
1.3.6.1.4.1.41263.3.1.13.9|2|1
1.3.6.1.4.1.41263.3.1.13.10|2|1
1.3.6.1.4.1.41263.3.1.13.11|2|1
1.3.6.1.4.1.41263.3.1.13.12|2|1
1.3.6.1.4.1.41263.3.1.13.13|2|1
1.3.6.1.4.1.41263.3.1.13.14|2|1
1.3.6.1.4.1.41263.3.1.13.15|2|1
1.3.6.1.4.1.41263.3.1.13.16|2|1
1.3.6.1.4.1.41263.3.1.13.17|2|1
1.3.6.1.4.1.41263.3.1.13.18|2|1
1.3.6.1.4.1.41263.3.1.13.19|2|1
1.3.6.1.4.1.41263.3.1.13.20|2|1
1.3.6.1.4.1.41263.3.1.13.21|2|1
1.3.6.1.4.1.41263.3.1.13.22|2|1
1.3.6.1.4.1.41263.3.1.13.23|2|1
1.3.6.1.4.1.41263.3.1.13.24|2|1
1.3.6.1.4.1.41263.3.1.13.25|2|1
1.3.6.1.4.1.41263.3.1.13.26|2|1
1.3.6.1.4.1.41263.3.1.13.27|2|1
1.3.6.1.4.1.41263.3.1.13.28|2|1
1.3.6.1.4.1.41263.3.1.13.29|2|1
1.3.6.1.4.1.41263.3.1.13.30|2|1
1.3.6.1.4.1.41263.9.1.1.1|2|1
1.3.6.1.4.1.41263.9.1.1.2|2|2
1.3.6.1.4.1.41263.9.1.1.3|2|3
1.3.6.1.4.1.41263.9.1.1.4|2|4
1.3.6.1.4.1.41263.9.1.1.5|2|5
1.3.6.1.4.1.41263.9.1.2.1|4x|5052495641544533
1.3.6.1.4.1.41263.9.1.2.2|4x|5052495641544534
1.3.6.1.4.1.41263.9.1.2.3|4x|5052495641544535
1.3.6.1.4.1.41263.9.1.2.4|4x|5052495641544531
1.3.6.1.4.1.41263.9.1.2.5|4x|5052495641544532
1.3.6.1.4.1.41263.9.1.3.1|4x|484F5354303300
1.3.6.1.4.1.41263.9.1.3.2|4x|484F5354303400
1.3.6.1.4.1.41263.9.1.3.3|4x|484F5354303500
1.3.6.1.4.1.41263.9.1.3.4|4x|484F5354303100
1.3.6.1.4.1.41263.9.1.3.5|4x|484F5354303200
1.3.6.1.4.1.41263.9.1.4.1|66|1
1.3.6.1.4.1.41263.9.1.4.2|66|2
1.3.6.1.4.1.41263.9.1.4.3|66|2
1.3.6.1.4.1.41263.9.1.4.4|66|1
1.3.6.1.4.1.41263.9.1.4.5|66|2
1.3.6.1.4.1.41263.9.1.5.1|66|64
1.3.6.1.4.1.41263.9.1.5.2|66|64
1.3.6.1.4.1.41263.9.1.5.3|66|64
1.3.6.1.4.1.41263.9.1.5.4|66|64
1.3.6.1.4.1.41263.9.1.5.5|66|64
1.3.6.1.4.1.41263.9.1.6.1|66|6
1.3.6.1.4.1.41263.9.1.6.2|66|12
1.3.6.1.4.1.41263.9.1.6.3|66|13
1.3.6.1.4.1.41263.9.1.6.4|66|11
1.3.6.1.4.1.41263.9.1.6.5|66|14
1.3.6.1.4.1.41263.9.1.7.1|70|810773643264
1.3.6.1.4.1.41263.9.1.7.2|70|810773643264
1.3.6.1.4.1.41263.9.1.7.3|70|810773643264
1.3.6.1.4.1.41263.9.1.7.4|70|810773643264
1.3.6.1.4.1.41263.9.1.7.5|70|810773643264
1.3.6.1.4.1.41263.9.1.8.1|66|5
1.3.6.1.4.1.41263.9.1.8.2|66|13
1.3.6.1.4.1.41263.9.1.8.3|66|13
1.3.6.1.4.1.41263.9.1.8.4|66|5
1.3.6.1.4.1.41263.9.1.8.5|66|13
1.3.6.1.4.1.41263.9.1.9.1|66|0
1.3.6.1.4.1.41263.9.1.9.2|66|0
1.3.6.1.4.1.41263.9.1.9.3|66|0
1.3.6.1.4.1.41263.9.1.9.4|66|0
1.3.6.1.4.1.41263.9.1.9.5|66|0
1.3.6.1.4.1.41263.9.1.10.1|66|0
1.3.6.1.4.1.41263.9.1.10.2|66|190
1.3.6.1.4.1.41263.9.1.10.3|66|118
1.3.6.1.4.1.41263.9.1.10.4|66|0
1.3.6.1.4.1.41263.9.1.10.5|66|181
1.3.6.1.4.1.41263.9.1.11.1|70|0
1.3.6.1.4.1.41263.9.1.11.2|70|2975
1.3.6.1.4.1.41263.9.1.11.3|70|2520
1.3.6.1.4.1.41263.9.1.11.4|70|0
1.3.6.1.4.1.41263.9.1.11.5|70|2931
1.3.6.1.4.1.41263.9.1.12.1|70|0
1.3.6.1.4.1.41263.9.1.12.2|70|1540
1.3.6.1.4.1.41263.9.1.12.3|70|1228
1.3.6.1.4.1.41263.9.1.12.4|70|0
1.3.6.1.4.1.41263.9.1.12.5|70|1541
1.3.6.1.4.1.41263.9.1.13.1|70|315104638
1.3.6.1.4.1.41263.9.1.13.2|70|181357057
1.3.6.1.4.1.41263.9.1.13.3|70|178785869
1.3.6.1.4.1.41263.9.1.13.4|70|407511354
1.3.6.1.4.1.41263.9.1.13.5|70|188381052
1.3.6.1.4.1.41263.9.1.14.1|70|14244019
1.3.6.1.4.1.41263.9.1.14.2|70|451899690
1.3.6.1.4.1.41263.9.1.14.3|70|453508019
1.3.6.1.4.1.41263.9.1.14.4|70|28511784
1.3.6.1.4.1.41263.9.1.14.5|70|360870597
1.3.6.1.4.1.41263.9.1.15.1|70|0
1.3.6.1.4.1.41263.9.1.15.2|70|0
1.3.6.1.4.1.41263.9.1.15.3|70|0
1.3.6.1.4.1.41263.9.1.15.4|70|0
1.3.6.1.4.1.41263.9.1.15.5|70|0
1.3.6.1.4.1.41263.9.1.16.1|70|0
1.3.6.1.4.1.41263.9.1.16.2|70|0
1.3.6.1.4.1.41263.9.1.16.3|70|0
1.3.6.1.4.1.41263.9.1.16.4|70|0
1.3.6.1.4.1.41263.9.1.16.5|70|0