miércoles, 9 de diciembre de 2015

First gnuplot graphic

I had to check the temperature behavior on a device and had to sample each second creating a text file.

Cleaning the raw text file to get only the temperature column with awk, something like: awk '{print $10}' output.log > celcius.log was the second step.

And finally a small gnuplot script to fetch the celcius.log file which contained only 2 digits by row:
45
43
44
40
45
40
.
.
.

Gnuplot script to generate a png file:

set term png
set output "celcius.png"
set ylabel "C"
set xtic auto
plot "celcius.log"

And the final result:


Correct fail2ban filter for sshd on Amazon Linux

Fail2ban does not catch the regular expression for Invalid or Illegal ssh logins on Amazon Linux. So far the fix goes like this: Not match...