Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F144384497
D2034.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D2034.diff
View Options
Index: etc/defaults/periodic.conf
===================================================================
--- etc/defaults/periodic.conf
+++ etc/defaults/periodic.conf
@@ -89,7 +89,7 @@
# 400.status-disks
daily_status_disks_enable="YES" # Check disk status
-daily_status_disks_df_flags="-l -h" # df(1) flags for check
+daily_status_disks_df_flags="-l -h" # df(1) flags for check
# 401.status-graid
daily_status_graid_enable="NO" # Check graid(8)
@@ -113,6 +113,7 @@
# 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
# 430.status-rwho
daily_status_rwho_enable="YES" # Check system status
Index: etc/periodic/daily/420.status-network
===================================================================
--- etc/periodic/daily/420.status-network
+++ etc/periodic/daily/420.status-network
@@ -16,12 +16,14 @@
echo ""
echo "Network interface status:"
+ flags="${daily_status_network_netstat_flags}"
case "$daily_status_network_usedns" in
[Yy][Ee][Ss])
- netstat -id && rc=0 || rc=3;;
+ ;;
*)
- netstat -idn && rc=0 || rc=3;;
- esac;;
+ flags="${flags} -n";;
+ esac
+ netstat -i ${flags} && rc=0 || rc=3;;
*) rc=0;;
esac
Index: share/man/man5/periodic.conf.5
===================================================================
--- share/man/man5/periodic.conf.5
+++ share/man/man5/periodic.conf.5
@@ -335,6 +335,8 @@
.Va daily_status_disks_enable
is set to
.Dq Li YES .
+The default is
+.Fl l Fl h .
.It Va daily_status_zfs_enable
.Pq Vt bool
Set to
@@ -399,6 +401,16 @@
.Dq Li YES
if you want to run
.Nm netstat Fl i .
+.It Va daily_status_network_netstat_flags
+.Pq Vt str
+Set to additional arguments for the
+.Xr netstat 1
+utility when
+.Va daily_status_network_enable
+is set to
+.Dq Li YES .
+The default is
+.Fl d .
.It Va daily_status_network_usedns
.Pq Vt bool
Set to
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Feb 9, 4:18 AM (22 h, 17 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28535861
Default Alt Text
D2034.diff (1 KB)
Attached To
Mode
D2034: Allow additional flags to be passed to netstat -i in the daily status check.
Attached
Detach File
Event Timeline
Log In to Comment