Linux related

How to just send logs from files to graylog2

That solution allows to read logs from file and just send them to remote syslog/graylog server. Logs will not influent on current syslog settings, you won’t need to filter them out of any syslog facility (like local7), all you need – the rsyslog (I’ve used v8). My task was to send logs which wrote by […]

Tags: , , , ,

Posted in Linux related, Security related | No Comments »

Fixing startup error of STMCubeMX on linux

After STMCubeMX was upgraded from version 4 to version 5, it can’t start. I’ve tried to reinstall it, but without result. Last messages in console after application stuck looks like: 2019-01-24 21:03:54,692 [INFO] PluginManage:339 – Loaded plugin projectmanager (category:projectmanager,tabindex:3) 2019-01-24 21:04:38,908 [ERROR] IntegrityCheckThread:90 – Cannot obtain updater plugin 2019-01-24 21:04:38,909 [INFO] IntegrityCheckThread:94 – End integrity […]

Tags: ,

Posted in Linux related | No Comments »

Fixing Gutenberg error “The editor has encountered an unexpected error”

After update to WP 5, I’ve faced with next issue, I’ve couldn’t add new post or edit existed. Looks like error happens because of misconfigured nginx and when new ‘Gutenberg’ editor is active (which is true by default for wordpress 5.0 and above). Earlier I had nginx location / configured in next manner: location / […]

Tags: , ,

Posted in Linux related, Web related | No Comments »

How to configure redmine service via terraform with persistent storage on amazon ECS

First of all, I have very little experience of AWS and terraform, so it can be obviously for them who have enough experience, but it definitely saved me a lot of time if I found article like that early. It wasn’t simple to figure out how to run redmine container on ECS.The main problem was […]

Tags: , , , , , ,

Posted in Linux related | No Comments »

How to block IP ranges of specified autonomous system

If you want to prohibit access to your host for specified AS, you can use solution below. I made it some time ago, when I found out, that mail.ru hunting for hosts which help to bypass telegram censorship. It’s not perfect because I didn’t make much effort to it. Whois can return sub-networks and networks […]

Tags: , , ,

Posted in Linux related, Security related | No Comments »

Galaxy S3: /efs/prox_cal doesn’t affect calibration settings under LineageOS

Few days ago I replaced front glass on samsung i9300 and flashed LineageOS 14.1. After that I’ve found that proximity sensor stays in triggered state, it may happened because of lack of experience (I’ve used too much UV-glue, so it was everywhere) or because of additional screen protector which been installed. Anyway, always-triggered-proximity-sensor made phone […]

Tags: , , ,

Posted in Linux related, Security related | No Comments »

How to update puppet 3 to puppet 4 on ubuntu 16

I spent near month to figured out why i can’t update puppet on ubuntu 16 with specially designed puppet_agent module. It was task full of confusing experience. So, let’s start. For a beginning you shouldn’t debug update process from a console, because one of a bug related to puppet  service. You could solve all problem […]

Tags: , ,

Posted in Linux related | No Comments »

Converting SNMP enumerations to Zabbix value mappings

Many of those, who tried to use Zabbix for monitoring SNMP capable devices faced with need of creating value mappings. It’s ok to create them by hands if mapping contain few values and you don’t have many metrics that uses ‘named-numbers’. For those who have not had fortune to face with this, I will explain. […]

Tags: , ,

Posted in Linux related | No Comments »

Dirty hack to add values mappings in Zabbix

“I’ll be brief.” © Here is two things about script published in ZBXNEXT-1424, first it can help you to automate creation of large mappings (and it’s cool), second it will broke your DB (not so cool, maaan). When you will try to add mapping in broken DB you will see something like this: The “Error […]

Tags: , , , ,

Posted in Linux related | No Comments »

LVM recovery

Few days ago i made mistake and forced fsck to check partition that contain LVM instead of logic volume, as result i got broken LVM metadata. I was unable to see volume group an logic volumes. pvs output looked like that: # pvs -v Scanning for physical volume names Incorrect metadata area header checksum I […]

Tags: , ,

Posted in Linux related | No Comments »


Powered by WordPress. Designed by Försäkra Online.