can't run netstat

Bug #1991417 reported by Michał Małoszewski
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
logwatch (Ubuntu)
New
Undecided
Unassigned

Bug Description

Both on kinetic and focal, there is a problem with netstat.

On Kinetic, if you install logwatch and type in the command from below, there is a message about the problem within the zz-network file.

$ sudo logwatch --detail Low --range today --service all --output stdout

------------- Listening sockets ---------------

 can't run netstat: No such file or directory at /usr/share/logwatch/scripts/services/zz-network line 177.

 ---------------------- Network Report End -------------------------

On Focal, the situation looks similar. The network statistics are shown but at the end of the output the following message appears:

------------- Network statistics ---------------
....

sh: 1: netstat: not found

----------------------- Network statistics -----------------------

To reproduce the situation on Focal, pass
   if ( -f $pathto_ip) {
     $cmd_to_show_int=$pathto_ip." a";
    }
    else
    {
     $cmd_to_show_int="$pathto_ifconfig -a";
    }

between lines 352 and 362 to avoid another problem which is being resolved here: https://bugs.launchpad.net/ubuntu/+source/logwatch/+bug/1890748

description: updated
description: updated
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.