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 17:28:46 +0200
commitd58a940484b1f089bd740a83e3bff01c008bbfc4 (patch)
treedf4d7a810ee076147d87621b0b8468919bac9500 /usr-lib-nagios-plugins/check_needs-rebooting.sh
parent7aad9ccdae9873cf558225dbdb2fd3e4fb1d7fad (diff)
downloaditzks-systems-d58a940484b1f089bd740a83e3bff01c008bbfc4.tar.gz
itzks-systems-d58a940484b1f089bd740a83e3bff01c008bbfc4.tar.bz2
itzks-systems-d58a940484b1f089bd740a83e3bff01c008bbfc4.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