diff options
| author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2025-10-06 17:28:46 +0200 |
|---|---|---|
| committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2025-10-06 17:28:46 +0200 |
| commit | d58a940484b1f089bd740a83e3bff01c008bbfc4 (patch) | |
| tree | df4d7a810ee076147d87621b0b8468919bac9500 /usr-lib-nagios-plugins/check_needs-rebooting.sh | |
| parent | 7aad9ccdae9873cf558225dbdb2fd3e4fb1d7fad (diff) | |
| download | itzks-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-x | usr-lib-nagios-plugins/check_needs-rebooting.sh | 2 |
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 |
