Ansible and Monit for simple server monitoring and documentation

A month ago a customer asked me to help him with his server monitoring. My first step was to evaluate what servers were running what services, so I turned to the customer’s developers for a list of services per host. Long story short – there wasn’t any kind of server documentation. So a second task emerged: Write a server documentation. Why not kill two birds with one stone? Continue reading

Digital Ocean Blocking IPv6 Mail Traffic && A Python Search and Replace One Liner

I got nearly insane yesterday, so let this be your warning: Digital Ocean is blocking IPv6 mail traffic…. on purpose.

To deactivate IPv6 in RHEL 7, go to /etc/sysconfig/network-scripts/ifcfg-eth0, change IPV6INIT=yes to IPV6INIT=no and reboot. I have to admit, it would have been far better to leave IPv6 enabled and route mail traffic over IPv4. Anyway, I got distracted by list comprehensions and generator expressions, which resulted in this one-liner to deactivate IPv6 “automatically” (valid only for RHEL derivates and Python > 3.3):

Continue reading

Changing lost Admin Passphrase on Windows 7 Bitlocker encrypted drives

I don’t know what happened, but a customer of mine forgot the Admin account passphrase. Maybe forgot was not the right way to put it, as the one it should have been did not work anymore. My best guess was my customer changed it himself and couldn’t remember. But saying that out loud would be treason so I just kept my mouth shut and was looking for a way to reset the passphrase. Something that turned out to be a nightmare as my customer did not make a recovery cd.

Continue reading