From 74eead00465ba6248eee94249d7059a462437a53 Mon Sep 17 00:00:00 2001 From: Mark Nellemann Date: Thu, 10 Jun 2021 11:09:15 +0200 Subject: [PATCH] Include transmittedBytes for lpar generic adapter metrics. --- doc/readme-service.md | 13 +++++++++---- .../java/biz/nellemann/hmci/LogicalPartition.java | 1 + 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/doc/readme-service.md b/doc/readme-service.md index 15b4722..9d0e4f3 100644 --- a/doc/readme-service.md +++ b/doc/readme-service.md @@ -5,10 +5,15 @@ To install as a systemd service, copy the **hmci.service** file into */etc/systemd/system/* and enable the service: - systemctl daemon-reload - systemctl enable hmci.service - systemctl restart hmci.service +```shell +cp /opt/hmci/doc/hmci.service /etc/systemd/system/ +systemctl daemon-reload +systemctl enable hmci.service +systemctl restart hmci.service +``` To read log output from the service, use: - journalctl -f -u hmci.service +```shell +journalctl -f -u hmci.service +``` diff --git a/src/main/java/biz/nellemann/hmci/LogicalPartition.java b/src/main/java/biz/nellemann/hmci/LogicalPartition.java index 4bcc2fb..73b13e8 100644 --- a/src/main/java/biz/nellemann/hmci/LogicalPartition.java +++ b/src/main/java/biz/nellemann/hmci/LogicalPartition.java @@ -181,6 +181,7 @@ class LogicalPartition extends MetaSystem { fieldsMap.put("numOfWrites", adapter.numOfWrites); fieldsMap.put("writeBytes", adapter.writeBytes); fieldsMap.put("readBytes", adapter.readBytes); + fieldsMap.put("transmittedBytes", adapter.transmittedBytes); fieldsMap.put("type", adapter.type); log.trace("getVirtualGenericAdapterMetrics() - fields: " + fieldsMap.toString());