mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
Introduce separate '--format' option to set output format. Use the new JSON Lines format explicitly in the systemd unit. Since JSON Lines format only uses printable characters this removes the need for passing '-a' to systemctl status. At the same time JSON-SEQ is more easily parsable using 'jq --seq' so keep it the default for easier scripting. Reviewed-by: Jan Höppner <hoeppner@linux.ibm.com> Signed-off-by: Niklas Schnelle <schnelle@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
21 lines
510 B
SYSTEMD
21 lines
510 B
SYSTEMD
#
|
|
# Systemd unit for zpcimon PCI NIC optical module monitoring
|
|
#
|
|
# Copyright IBM Corp. 2024
|
|
#
|
|
# s390-tools is free software; you can redistribute it and/or modify
|
|
# it under the terms of the MIT license. See LICENSE for details.
|
|
#
|
|
|
|
[Unit]
|
|
Description=Monitor health of directly attached PCI NIC optical modules
|
|
# Documentation=man:zpcimon
|
|
|
|
[Service]
|
|
Type=exec
|
|
ExecStart=@usrsbin_path@/zpcimon --send-report --monitor --format jsonl --interval 86400
|
|
KillMode=control-group
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|