Skip to content

Check_MK – configuring legacy check

I am running OMD 1.20 -latest according to official website, Check_MK 1.2.4p5 community edition on an Ubuntu 14.04.3 LTS machine. I need to configure a FTP check that will check also the credentials and reading/writing a file. The standard plugins do not offer such a feature from what I know so I am trying to…

Tshark custom grep

So my command is: So my output is: How can I get Apple_90:ea:8e + SSID=Broadcast and whats the logic behind the grep? Is it possible with grep? Considering that: Apple_90:ea:8e and Broadcast will always change! Answer The grep option -o says “only return what was matched, not the whole line” and -…

fwrite fopen blocking threads

I have a multithreaded linux app written in c running on a i.mx6 arm. I have a 25lc256 spi eeprom mapped to the file system. Writes are relatively slow at the driver level, not much can be done there. The problem is that file functions are blocking other threads for too long. usleep additions don’t seem…

TCL Expect is injecting an extra null character to stdout

It seems that expect is adding an extra null character or something to stdout. For example: What is this extra character and how do I get rid of it? Answer It’s not a null character. You can use a tool like xxd to see exactly what output expect is producing: This shows that you are getting a standard CR…