Skip to content

Commit

Permalink
MFC r365508 (by rew):
Browse files Browse the repository at this point in the history
periodic.conf(5): don't truncate interface names reported by 420.status-network.

The daily periodic script, 420.status-network uses netstat(1) to report
interface status. By default, netstat(1) truncates interface names.

Add the '-W' flag (avoid truncating interface names) as the default for
'daily_status_network_netstat_flags' in periodic.conf(5).

The default 420.status-network command is now 'netstat -i -d -W -n'.

PR:		163572
Reported by:	[email protected]
Reviewed by:	allanjude (mentor), bcr (manpages)
Approved by:	allanjude (mentor)
Differential Revision:	https://reviews.freebsd.org/D26023
  • Loading branch information
gbergling committed Dec 10, 2020
1 parent 115cf68 commit 862080f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions share/man/man5/periodic.conf.5
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
.\"
.\" $FreeBSD$
.\"
.Dd June 16, 2020
.Dd September 9, 2020
.Dt PERIODIC.CONF 5
.Os
.Sh NAME
Expand Down Expand Up @@ -439,7 +439,7 @@ utility when
is set to
.Dq Li YES .
The default is
.Fl d .
.Fl d W .
.It Va daily_status_network_usedns
.Pq Vt bool
Set to
Expand Down
2 changes: 1 addition & 1 deletion usr.sbin/periodic/periodic.conf
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ daily_status_mfi_enable="NO" # Check mfiutil(8)
# 420.status-network
daily_status_network_enable="YES" # Check network status
daily_status_network_usedns="YES" # DNS lookups are ok
daily_status_network_netstat_flags="-d" # netstat(1) flags
daily_status_network_netstat_flags="-d -W" # netstat(1) flags

# 430.status-uptime
daily_status_uptime_enable="YES" # Check system uptime
Expand Down

0 comments on commit 862080f

Please sign in to comment.