From ac9750d6a0cf759d214d874b947c6877e8ce0cf1 Mon Sep 17 00:00:00 2001 From: seddikalaouiismaili Date: Tue, 8 Jun 2021 01:29:05 +0200 Subject: [PATCH] correct output message for nagios check --- roles/nagios_client/files/scripts/check_systemd_units | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/nagios_client/files/scripts/check_systemd_units b/roles/nagios_client/files/scripts/check_systemd_units index 098a53f892..a20003cb75 100644 --- a/roles/nagios_client/files/scripts/check_systemd_units +++ b/roles/nagios_client/files/scripts/check_systemd_units @@ -39,9 +39,9 @@ done # check the lenght of array and print result/exit code for nagios if [ ${#failed_array[@]} -ne "0" ]; then - echo -e "WARNING - Failed systemd units after restart : ${failed_array[@]}" + echo -e "UNITS WARNING: Failed systemd units after restart : ${failed_array[@]}" exit ${warning_exit} elif [ ${#failed_array[@]} -eq "0" ]; then - echo -e "OK - Systemd units are active" + echo -e "UNITS OK: Systemd units are active" exit ${ok_exit} fi