[TriLUG] Ubuntu 16.04 NetworkManager Access Logging

Ron Kelley via TriLUG trilug at trilug.org
Fri May 11 16:49:32 EDT 2018


Another tool you might consider is monit (https://mmonit.com/monit).  Monit does a whole bunch of stuff like alert you when CPU/RAM/HDD-space space gets exceeded, automatically restart an app in case the process crashes, etc.

In your case, you can have monit continuously watch /var/log/syslog for your egrep statement below and trigger an alert (or, fire off a script to populate a DB with connection details).

We use monit extensively to watch for resource usage, crashed apps, etc.  It works great and is part of the standard ubuntu repository.

Note: “monit” is free but you can get a license for “mmonit” which allows you to monitor lots of servers using a central dashboard.


My $0.02



   

> On May 11, 2018, at 3:42 PM, Alan Sterger via TriLUG <trilug at trilug.org> wrote:
> 
> In case anyone finds this, I've satisfied my requirement for extracting VPN connection time by using the extended grep below:
> 
> egrep 'VPN plugin: state changed: st.*' /var/log/syslog
> 
> which gives both 'started' and 'stopped' state (as well as 'stopping' but hey, shouldn't be too choosy).
> 
> Cheers,
> 
> -- Alan Sterger
> 
> On 5/10/2018 1:17 PM, Alan Sterger wrote:
>> Hi Listers,
>> 
>> I need to extract connection timing from accessing my clients VPNs.  I've looked at /var/log/syslog and 'journalctl -u NetworkManager'.  What I need is simple connect/disconnect timing without all of the DEBUG information.  Also, sometimes this information is gathered several days later making 'journalctl -u NetworkManager' not optimum.
>> 
>> Any ideas?
>> 
>> -- Alan S.
>> 
> -- 
> This message was sent to: Ron Kelley <rkelleyrtp at gmail.com>
> To unsubscribe, send a blank message to trilug-leave at trilug.org from that address.
> TriLUG mailing list : https://www.trilug.org/mailman/listinfo/trilug
> Unsubscribe or edit options on the web	: https://www.trilug.org/mailman/options/trilug/rkelleyrtp%40gmail.com
> Welcome to TriLUG: https://trilug.org/welcome



More information about the TriLUG mailing list