Closed virus2500 closed 2 years ago
Hello,
i was using the default freebsd agent previously and with this agent the memory section is now missing.
I think it is just this section
# Statgrab # To install: pkg install libstatgrab if inpath statgrab; then statgrab_vars="const. disk. general. page. proc. user." statgrab_vars_mem="mem. swap." statgrab_sections="proc disk page" statgrab $statgrab_vars | grep -v md 1> /tmp/statgrab.$$ statgrab $statgrab_vars_mem 1>>/tmp/statgrab.$$ for s in $statgrab_sections do echo "<<<statgrab_$s>>>" grep "^${s}\." /tmp/statgrab.$$ | cut -d. -f2-99 | sed 's/ *= */ /' done echo '<<<statgrab_net>>>' statgrab net. 2>&1 | cut -d. -f2-99 | sed 's/ *= */ /' echo '<<<statgrab_mem>>>' egrep "^(swap|mem)\." /tmp/statgrab.$$ | sed 's/ *= */ /' [ -f /tmp/statgrab.$$ ] && rm -f /tmp/statgrab.$$ fi
Maybe you could add this to the next release?
Thanks and best regards Mike
just tested it. Seems to be working nicely. Thank you 👍
Hello,
i was using the default freebsd agent previously and with this agent the memory section is now missing.
I think it is just this section
Maybe you could add this to the next release?
Thanks and best regards Mike