From 27b494b13965349e7ac83e6abe921a59f1b5d96c Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Fri, 13 Nov 2020 22:07:24 +0100 Subject: global-functions: $MailServerIsUp: decrease log severity to info --- global-functions | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/global-functions b/global-functions index c6439b5..08ef0a1 100644 --- a/global-functions +++ b/global-functions @@ -436,13 +436,13 @@ :return true; } else={ :if ($MailServer = "0.0.0.0") do={ - $LogPrintExit warning ("No mail server is configured! Returning gracefully...") false; + $LogPrintExit info ("No mail server is configured! Returning gracefully...") false; :return true; } } :if ([ :len [ / tool netwatch find where comment=$MailServer ] ] = 0) do={ - $LogPrintExit warning ("Adding netwatch entry for mail server.") false; + $LogPrintExit info ("Adding netwatch entry for mail server.") false; :local MailHost $MailServer; :if ([ :typeof [ :toip $MailHost ] ] != "ip" ) do={ :do { -- cgit v1.2.3-54-g00ecf From 7b3960a0e1f6cc13219d0021a86ddfbc48faf82b Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Fri, 13 Nov 2020 22:12:03 +0100 Subject: global-functions: $TimeIsSync: decrease log severity to info --- global-functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/global-functions b/global-functions index 08ef0a1..de810cd 100644 --- a/global-functions +++ b/global-functions @@ -906,7 +906,7 @@ :return false; } - $LogPrintExit warning ("No time source configured! Returning gracefully...") false; + $LogPrintExit info ("No time source configured! Returning gracefully...") false; :return true; } -- cgit v1.2.3-54-g00ecf From b8efaafe6efe80f6201bb40e779738fc6d3ffb97 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Fri, 13 Nov 2020 22:15:23 +0100 Subject: global-functions: $SendTelegram: decrease log severity to info The message is queued, not lost... --- global-functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/global-functions b/global-functions index de810cd..a4a3630 100644 --- a/global-functions +++ b/global-functions @@ -827,7 +827,7 @@ http-data=("chat_id=" . $ChatId . "&disable_notification=" . $Silent . \ "&parse_mode=" . $ParseMode . "&text=" . $Text); } on-error={ - $LogPrintExit warning ("Failed sending telegram notification! Queuing...") false; + $LogPrintExit info ("Failed sending telegram notification! Queuing...") false; :if ([ :typeof $TelegramQueue ] = "nothing") do={ :set TelegramQueue [ :toarray "" ]; -- cgit v1.2.3-54-g00ecf From 8b07119f388adc20de9118837e29ed78ff95c675 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Fri, 13 Nov 2020 22:17:55 +0100 Subject: check-health: decrease log severity to info --- check-health | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/check-health b/check-health index fc8f097..7d52204 100644 --- a/check-health +++ b/check-health @@ -67,7 +67,7 @@ :if ($Name ~ "temperature" && \ [ :typeof $Temperature ] = "num") do={ :if ([ :typeof ($CheckHealthTemperature->$Name) ] != "num" ) do={ - $LogPrintExit warning ("No threshold given for " . $Name . ", assuming 50C.") false; + $LogPrintExit info ("No threshold given for " . $Name . ", assuming 50C.") false; :set ($CheckHealthTemperature->$Name) 50; } :if ($Temperature > $CheckHealthTemperature->$Name && \ -- cgit v1.2.3-54-g00ecf From 19ed080244341601ab71fa2f600343a612df5248 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Fri, 13 Nov 2020 22:34:31 +0100 Subject: check-routeros-update: decrease log severity to info --- check-routeros-update | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/check-routeros-update b/check-routeros-update index e020153..b8e87d9 100644 --- a/check-routeros-update +++ b/check-routeros-update @@ -43,7 +43,7 @@ :local Update [ / system package update get ]; :if ([ :len ($Update->"latest-version") ] = 0) do={ - $LogPrintExit warning "An empty string is not a valid version." true; + $LogPrintExit info "An empty string is not a valid version." true; } :local NumInstalled [ $VersionToNum ($Update->"installed-version") ]; -- cgit v1.2.3-54-g00ecf From 348cc2e3f395346b15941ff380c47e4675918808 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Fri, 13 Nov 2020 22:43:41 +0100 Subject: check-certificates: decrease log severity to info --- check-certificates | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/check-certificates b/check-certificates index ced2a69..d5c08b9 100644 --- a/check-certificates +++ b/check-certificates @@ -33,7 +33,7 @@ $WaitFullyConnected; :do { :if ([ :len $CertRenewUrl ] = 0) do={ - $LogPrintExit warning ("No CertRenewUrl given.") true; + $LogPrintExit info ("No CertRenewUrl given.") true; } :foreach Type in={ ".pem"; ".p12" } do={ @@ -114,7 +114,7 @@ $WaitFullyConnected; "Issuer: " . ($CertVal->"ca") . ([ $ParseKeyValueStore ($CertVal->"issuer") ]->"CN") . "\n" . \ "Validity: " . ($CertVal->"invalid-before") . " to " . ($CertVal->"invalid-after") . "\n" . \ "Expires in: " . [ $IfThenElse (($CertVal->"expired") = true) "expired" [ $FormatExpire ($CertVal->"expires-after") ] ]); - $LogPrintExit warning ("The certificate " . ($CertVal->"name") . " " . $State . \ + $LogPrintExit info ("The certificate " . ($CertVal->"name") . " " . $State . \ ", it is invalid after " . ($CertVal->"invalid-after") . ".") false; } } -- cgit v1.2.3-54-g00ecf From 966e7b6fd3291c01eb9ab5639c92bc1ea95f8e5d Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Fri, 13 Nov 2020 22:46:26 +0100 Subject: log-forward: do not exclude topic 'script' We have justified severity for some log message, so do no longer exclude topic 'script'. --- global-config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/global-config b/global-config index 09eda44..9bbbc29 100644 --- a/global-config +++ b/global-config @@ -51,7 +51,7 @@ :global BackupUploadPass "v3ry-s3cr3t"; # This defines a filter on log topics not to be forwarded. -:global LogForwardFilter "(debug|info|script)"; +:global LogForwardFilter "(debug|info)"; # ... and the same for log message text. :global LogForwardFilterMessage "^\$|^Error sending e-mail <.* Log Forwarding>:"; #:global LogForwardFilterMessage "(^\$|message text|...)"; -- cgit v1.2.3-54-g00ecf