diff --git a/.gitignore b/.gitignore index c16b8b1..4b76b7d 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ -mono-go +monokit +bin diff --git a/common/alarm.go b/common/alarm.go index 594b047..08e206b 100644 --- a/common/alarm.go +++ b/common/alarm.go @@ -17,7 +17,7 @@ func AlarmCheckUp(service string, message string) { // Remove slashes from service and replace them with - serviceReplaced := strings.Replace(service, "/", "-", -1) file_path := TmpDir + "/" + serviceReplaced + ".log" - messageFinal := "[" + ScriptName + " - " + Config.Identifier + "] [:red_circle:] " + message + messageFinal := "[" + ScriptName + " - " + Config.Identifier + "] [:check:] " + message // Check if the file exists, send alarm and remove file if it does if _, err := os.Stat(file_path); err == nil {