File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -32,16 +32,16 @@ bundle common inventory_linux
32
32
"proc_1_process" string => filestat($(proc_1_cmdline), "linktarget");
33
33
34
34
any::
35
- "proc_routes" data => data_readstringarrayidx("/proc/net/route",
35
+ "proc_routes" data => data_readstringarrayidx("/proc/$(this.promiser_pid)/ net/route",
36
36
"#[^\n]*","\s+",40,4k),
37
- if => fileexists("/proc/net/route");
37
+ if => fileexists("/proc/$(this.promiser_pid)/ net/route");
38
38
"routeidx" slist => getindices("proc_routes");
39
39
"dgw_ipv4_iface" string => "$(proc_routes[$(routeidx)][0])",
40
40
comment => "Name of the interface where default gateway is routed",
41
41
if => strcmp("$(proc_routes[$(routeidx)][1])", "00000000");
42
42
43
43
linux::
44
- "mounts" string => "/proc/mounts";
44
+ "mounts" string => "/proc/$(this.promiser_pid)/ mounts";
45
45
46
46
"nfs_mounts"
47
47
slist => grep( ".* nfs .*",
You can’t perform that action at this time.
0 commit comments