Recently I’ve been using Ansible to push out updates to vSphere environments that have a lot of hosts, but no working installation of VMWare Update Manager available. During the creation of the below playbook, I found a few interesting caveats to using Ansible to manage your ESXI hosts and vCenter. To resolve this, I’ve created a playbook that does the following:
- Puts targeted hosts in mainteance mode and evacuates VM’s
- Copies VIB to the host
- Checks for existing installation of VIB, Uninstall if found
- Installs VIB
- Takes host out of maintenance mode.
Continue reading “Using Ansible to Update ESXI VIB’s and manage vCenter at scale.”
If you have an Onkyo receiver, you probably notice odd issues with the network stack at times, causing various services (Spotify, DLNA, Etc) to stop responding to requests. The only resolution for fixing this state on the receiver is a physical power cycle (A soft reboot will not work). This is a well documented issue. It’s been blamed on faulty hardware, but it’s really a bug in the network stack somewhere causing this state.
Continue reading “Onkyo Receiver Service Monitoring and remediation with Python/Grafana/InfluxDB and Vera”
Packaging Python scripts with Docker
In Part 1 of this post I covered the creation of the initial MyUsps notification script. There’s quite a few dependencies in the environment required for running this script. At a bare minimum you will need a functional Linux or Windows environment with the following dependencies
Selenium 3.11 (pip install selenium)
imgurpython (pip install imgurpython )
Pushbullet Python Library (pip install pushbullet.py)
There’s some challenges getting all of these things to work well together. It’s also very difficult to keep all of these applications in sync and distribute a working installation script to allow users to clone your environment.
Enter Docker. Continue reading “Checking your snail mail with Python/Docker and Slack. (Part 2)”
Recently I became aware of a service for USPS called “Informed Delivery”. This service will allow you to view mail items coming to your physical mailbox before they arrive, as well as a get an email with the same information.
This is a very cool service but unfortunately there is no way to get push notifications about this information, or have any kind of notification at all besides a email that doesn’t allow for any customization, or even show all of your mail items. There are apps for various platforms, but they are simple webkit wrappers around the USPS website and have fairly terrible reviews.
Obviously we are going to need to automate this. I decided to use python to automate grabbing this information and making it more useful. Continue reading “Checking your snail mail with Python/Docker and Slack. (Part 1)”
I’ve been working on practicing my Python skills by working on getting various temperature statistics from my home server room into Influxdb, Then charting them with Grafana. It’s pretty amazing what you can do with a minimal investment of parts, and a little time. It’s also a chance to get down and dirty on some basic hardware circuit design. Here’s a little overview of a simple project I did to create a very cheap Server Room Temperature Monitor. Continue reading “Cheap environmental monitoring with Raspberry Pi/Grafana/InfluxDB”