Logwatch on virtualized FreeBSD

reverie <frank-oGVLcYz+ki/[email protected]> Fri, 26 Jun 2015 16:02:23 -0400
Newsgroups gmane.comp.log.logwatch.devel
Message-ID <20150626160223.4416399e@thanatos>
Hey,

I realized today that Logwatch on FreeBSD is somewhat broken, at least
in terms of network device compatibility. The zz-network service seems
to use `netstat -i | grep -v Name` to obtain available network
interfaces, but on a virtualized FreeBSD system, vtnet is returned,
instead of vtnet0.

I am not a developer, so unfortunately I cannot submit a patch
(theoretically I could but I can't guarantee that it would work), but
wouldn't it make sense to use something like:

ifconfig | awk -F : '{print $1}' | grep -v "^[[:space:]]" | grep -v lo

which returns the available network interfaces minus loopback? I'm sure
this could be made cleaner, this was just a quick oneliner.

I look forward to hearing back.

Some additional info if it helps:

Logwatch 7.4.0 (released 03/01/11)

20:00:04 reverie@roaring ~ freebsd-version 
10.1-RELEASE-p13
20:00:38 reverie@roaring ~ uname -a
FreeBSD roaring.xxx.xxx 10.1-RELEASE-p10 FreeBSD 10.1-RELEASE-p10 #0:
Wed May 13 06:54:13 UTC 2015
root-rZxnQxZRaBG/[email protected]:/usr/obj/usr/src/sys/GENERIC  amd64

- reverie

(ps: this could also be related to the fact that this is an older
version than what is currently available- what I have running now is
just what was in ports. If I should be using a more recent version, let
me know. Thanks!)

------------------------------------------------------------------------------
Monitor 25 network devices or servers for free with OpManager!
OpManager is web-based network management software that monitors 
network devices and physical & virtual servers, alerts via email & sms 
for fault. Monitor 25 devices for free with no restriction. Download now
http://ad.doubleclick.net/ddm/clk/292181274;119417398;o