File tree 3 files changed +8
-6
lines changed
3 files changed +8
-6
lines changed Original file line number Diff line number Diff line change 31
31
[[inputs.exec]]
32
32
# Machine Metrics -m
33
33
commands = ['bash -c "\"$PANSIFT_SCRIPTS\"/osx_default_script.sh -m"']
34
- interval= "10m "
34
+ interval= "2h "
35
35
timeout = "10s"
36
36
data_format = "influx"
37
37
[[inputs.exec]]
38
38
# Network Metrics -n
39
39
commands = ['bash -c "\"$PANSIFT_SCRIPTS\"/osx_default_script.sh -n"']
40
- interval= "60s "
40
+ interval= "30s "
41
41
timeout = "35s"
42
42
data_format = "influx"
43
43
[[inputs.exec]]
66
66
[[inputs.system]]
67
67
# Takes the interval from the main agent config.
68
68
name_prefix = "pansift_osx_default_"
69
+ interval= "5m"
69
70
[[inputs.cpu]]
70
71
name_prefix = "pansift_osx_default_"
71
72
## Whether to report per-cpu stats or not
83
84
#[[inputs.diskio]]
84
85
[[inputs.mem]]
85
86
name_prefix = "pansift_osx_default_"
87
+ interval = "1m"
86
88
[[inputs.net]]
87
89
name_prefix = "pansift_osx_default_"
88
90
interfaces = ["en*"]
Original file line number Diff line number Diff line change @@ -122,7 +122,7 @@ system_measure () {
122
122
123
123
124
124
network_measure () {
125
- if [ $osx_mainline == 11 ]; then
125
+ if [[ " $osx_mainline " == " 11 " ] ]; then
126
126
netstat4_print_position=4 # 11.x Big Sur onwards
127
127
else
128
128
netstat4_print_position=6 # 10.x
@@ -159,9 +159,9 @@ network_measure () {
159
159
dg6_interface_ether=" none"
160
160
dg6_router_ether=" none"
161
161
fi
162
-
163
- dg4_response=$( echo -n " $netstat4 " | grep -qi default || { echo -n 0; exit 0; }; [[ ! " $dg4_ip " == " none" ]] && ping -c1 -i1 -o " $dg4_ip " | tail -n1 | cut -d' ' -f4 | cut -d' /' -f2 || echo -n 0)
164
- dg6_response=$( echo -n " $netstat6 " | grep -qi default || { echo -n 0; exit 0; }; [[ ! " $dg6_ip " == " none" ]] && ping6 -c1 -i1 -o " $dg6_fullgw " | tail -n1 | cut -d' ' -f4 | cut -d' /' -f2 || echo -n 0)
162
+ # We've possibly been hitting WLAN powersave in quiet times with dropping packets so increased count to 3
163
+ dg4_response=$( echo -n " $netstat4 " | grep -qi default || { echo -n 0; exit 0; }; [[ ! " $dg4_ip " == " none" ]] && ping -c3 -i1 -o " $dg4_ip " | tail -n1 | cut -d' ' -f4 | cut -d' /' -f2 || echo -n 0)
164
+ dg6_response=$( echo -n " $netstat6 " | grep -qi default || { echo -n 0; exit 0; }; [[ ! " $dg6_ip " == " none" ]] && ping6 -c3 -i1 -o " $dg6_fullgw " | tail -n1 | cut -d' ' -f4 | cut -d' /' -f2 || echo -n 0)
165
165
166
166
if [[ " $dg4_response " > 0 ]] || [[ " $dg6_respone " > 0 ]]; then
167
167
locally_connected=" true"
You can’t perform that action at this time.
0 commit comments