summaryrefslogtreecommitdiff
path: root/usr-lib-nagios-plugins/check_needs-rebooting.sh
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2025-10-06 17:28:46 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2025-10-06 18:41:42 +0200
commit8160e90f550abea1753858549c9d8d0eccd82edf (patch)
tree01c0c506ccf2465b72fe28babe5d1288d509d59f /usr-lib-nagios-plugins/check_needs-rebooting.sh
parent9accb0908f9a879f0bbf8ddb283767d0232ea7fd (diff)
downloaditzks-systems-8160e90f550abea1753858549c9d8d0eccd82edf.tar.gz
itzks-systems-8160e90f550abea1753858549c9d8d0eccd82edf.tar.bz2
itzks-systems-8160e90f550abea1753858549c9d8d0eccd82edf.zip
usr-lib-nagios-plugins/check_needs-rebooting.sh: Don't use html tags for line breaks, use ', ' and '\n' instead.
Diffstat (limited to 'usr-lib-nagios-plugins/check_needs-rebooting.sh')
-rwxr-xr-xusr-lib-nagios-plugins/check_needs-rebooting.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr-lib-nagios-plugins/check_needs-rebooting.sh b/usr-lib-nagios-plugins/check_needs-rebooting.sh
index d12f2ea..135aba8 100755
--- a/usr-lib-nagios-plugins/check_needs-rebooting.sh
+++ b/usr-lib-nagios-plugins/check_needs-rebooting.sh
@@ -149,7 +149,7 @@ function CheckDebianRebootRequired() {
EXIT_MSG=$OK_MSG
EXIT_CODE=$OK_EXIT_CODE
fi
- EXIT_MSG_BODY="`cat ${REBOOT_REQUIRED_PATH}`<br/>Packages:<br/>`cat ${REBOOT_REQUIRED_PKGS_PATH} | sed ':a;N;$!ba;s/\n/<br\/>/g'`|Packages=${NR_OF_PACKAGES};${WARNING_LEVEL//-1/};${CRITICAL_LEVEL//-1/};0"
+ EXIT_MSG_BODY="`cat ${REBOOT_REQUIRED_PATH}`\nPackages:\n`cat ${REBOOT_REQUIRED_PKGS_PATH} | sed ':a;N;$!ba;s/\n/, /g'`|Packages=${NR_OF_PACKAGES};${WARNING_LEVEL//-1/};${CRITICAL_LEVEL//-1/};0"
else
if [[ ${STATUS} = "w" ]]; then
EXIT_MSG=$WARNING_MSG