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
3232 "proc_1_process" string => filestat($(proc_1_cmdline), "linktarget");
3333
3434 any::
35- "proc_routes" data => data_readstringarrayidx("/proc/net/route",
35+ "proc_routes" data => data_readstringarrayidx("/proc/$(this.promiser_pid)/ net/route",
3636 "#[^\n]*","\s+",40,4k),
37- if => fileexists("/proc/net/route");
37+ if => fileexists("/proc/$(this.promiser_pid)/ net/route");
3838 "routeidx" slist => getindices("proc_routes");
3939 "dgw_ipv4_iface" string => "$(proc_routes[$(routeidx)][0])",
4040 comment => "Name of the interface where default gateway is routed",
4141 if => strcmp("$(proc_routes[$(routeidx)][1])", "00000000");
4242
4343 linux::
44- "mounts" string => "/proc/mounts";
44+ "mounts" string => "/proc/$(this.promiser_pid)/ mounts";
4545
4646 "nfs_mounts"
4747 slist => grep( ".* nfs .*",
You can’t perform that action at this time.
0 commit comments