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