nginx upstream timeout and php5-fpm

Ever since I’d moved my hosting from vanilla EC2 to docker, I’d been getting plagued by timeouts between NGINX and php-fpm. At first, the issue appeared to be on the fpm side, as these NGINX error-logs showed with a message saying ‘nginx upstream timed out’ Logging the heck out of it When you don’t know … Read more

Network Automation and Endian

If you are in the business of Architecting and Automating Networks, then some level of proficiency in programming is mandatory. Sixteen years ago, when I started in the field of Networking, this was barely considered to be something necessary. Interviews for Network Architects zoned in on protocols, network types, design methodologies, and safely sidestepped automation … Read more

Automate backups to USB as soon as it is plugged in: Linux!

Simple’ were the requirements for this evening: When I plug in my USB drive into my Openstack(ubuntu) server, i want it to automatically start backing up vm-harddisks. Well, that sounds easy. But ubuntu doesn’t always assign the same device-node to my usb drive. Sometimes its /dev/sdc1 and sometimes its /dev/sdb1 … so first order of … Read more

fastsnmpy

Superfast parallel snmpbulkwalk Fastsnmpy is a module that leverages python-extensions that come with net-snmp and provide highly parallelized faster-methods to walk oid-trees on devices. In addition, it provides a method to bulkwalk mib-trees.. BulkWalk methods are missing from native python-bindings for net-snmp. By creating a wrapper around the GetBulk method instead, and maintaining state while … Read more