|
From: | Jorge Pereira |
Subject: | Re: What is the best approach to check log files using "journalctl"? |
Date: | Fri, 17 Feb 2017 13:13:55 -0200 |
Hi,
you can use "check program" with custom script, that will run journalctl and check content.
Best regards,
Martin
> --
> On 17 Feb 2017, at 00:32, Jorge Pereira <address@hidden> wrote:
>
> Hi,
>
> Usually, I use the option 'content' to polling a file looking for the token. what should I use if I am running a system with systemd?
>
> <snip>
> check file telegraf_notwrite with path /var/log/mysystem.log
> if content = "MyString" then alert
> </snip>
>
> do we have some plans to support some checks using the journalctl?
>
> I mean: journalctl -x -u mysystem.service
> --
> --
> Jorge Pereira
> To unsubscribe:
> https://lists.nongnu.org/mailman/listinfo/monit-general
--
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general
[Prev in Thread] | Current Thread | [Next in Thread] |