Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Linux Module
#2
Hi No_One911,

I'm not sure the generic_data module can hold that command. Note that it's printing every single value of the sixth column of every line that has the string "eps" in it. So, if there were more than one line containing that 'eps' string within the last hundred of the log, awk would print more than one value, which is not compatible with the way a module works (as it only evaluates one value at a time).

Maybe you could try with something as  awk ' BEGIN {sum=0}{sum+=$6}END{print sum/NR}'    instead (not sure if the syntax is 100% correct).
Hope it helps.

Kind regards,
Kevin.
 Reply
Messages In This Thread
Linux Module - by No_One911 - 04-05-2016, 08:39 AM
Re: Linux Module - by AKevin - 04-05-2016, 04:00 PM
Re: Linux Module - by No_One911 - 04-06-2016, 09:29 AM
Re: Linux Module - by No_One911 - 04-06-2016, 09:41 AM
Re: Linux Module - by AKevin - 04-06-2016, 02:39 PM
RE: Linux Module - by ananev - 05-14-2020, 07:11 AM


Users browsing this thread: 3 Guest(s)


(c) 2006-2018 Artica Soluciones Tecnológicas. Contents of this wiki are under Create Common Attribution v3 licence. | pandorafms.com | pandorafms.org

Theme © MyBB Themes