From 71e94267600a9b0e64561519a7c11ab6ff3ed068 Mon Sep 17 00:00:00 2001 From: Dino Date: Tue, 10 Dec 2024 13:51:19 -0600 Subject: [PATCH] NMS-16953: Correct the WinRM Virtual Memory graph (#7521) * Add corrected graph as a new file and suppress the incorrect graph to avoid creating an rpmnew on upgrades * Update opennms-base-assembly/src/main/filtered/etc/snmp-graph.properties.d/wsman-microsoft-windows-virtmem.properties --- ...wsman-microsoft-windows-virtmem.properties | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 opennms-base-assembly/src/main/filtered/etc/snmp-graph.properties.d/wsman-microsoft-windows-virtmem.properties diff --git a/opennms-base-assembly/src/main/filtered/etc/snmp-graph.properties.d/wsman-microsoft-windows-virtmem.properties b/opennms-base-assembly/src/main/filtered/etc/snmp-graph.properties.d/wsman-microsoft-windows-virtmem.properties new file mode 100644 index 000000000000..9f2c81baacfa --- /dev/null +++ b/opennms-base-assembly/src/main/filtered/etc/snmp-graph.properties.d/wsman-microsoft-windows-virtmem.properties @@ -0,0 +1,32 @@ +############################################################################## +## +## Please add report definition in a new line to make it easier +## for script based sanity checks +## +################################################## + +reports=microsoft.windows.virtmem1 + +report.microsoft.windows.virtmem1.name=Virtual Memory +report.microsoft.windows.virtmem1.columns=freeVirtMem,totalVirtMem +report.microsoft.windows.virtmem1.type=nodeSnmp +report.microsoft.windows.virtmem1.suppress=microsoft.windows.virtmem +report.microsoft.windows.virtmem1.command=--title="Virtual Memory Usage (WinRM)" \ + --vertical-label="Memory" \ + DEF:freekBytes={rrd1}:freeVirtMem:AVERAGE \ + DEF:totalkBytes={rrd2}:totalVirtMem:AVERAGE \ + CDEF:freeBytes=freekBytes,1024,* \ + CDEF:totalBytes=totalkBytes,1024,* \ + CDEF:usedBytes=totalBytes,freeBytes,- \ + AREA:usedBytes#ff0000:"Used" \ + GPRINT:usedBytes:AVERAGE:"Avg \\: %10.2lf %s" \ + GPRINT:usedBytes:MIN:"Min \\: %10.2lf %s" \ + GPRINT:usedBytes:MAX:"Max \\: %10.2lf %s\\n" \ + STACK:freeBytes#0cff00:"Free" \ + GPRINT:freeBytes:AVERAGE:"Avg \\: %10.2lf %s" \ + GPRINT:freeBytes:MIN:"Min \\: %10.2lf %s" \ + GPRINT:freeBytes:MAX:"Max \\: %10.2lf %s\\n" \ + LINE2:totalBytes#0000ff:"Total" \ + GPRINT:totalBytes:AVERAGE:"Avg \\: %10.2lf %s" \ + GPRINT:totalBytes:MIN:"Min \\: %10.2lf %s" \ + GPRINT:totalBytes:MAX:"Max \\: %10.2lf %s\\n"