O'Brien Labs

  • Home
  • Portfolio
  • WordPress
    • Plugins
    • WordPress Tips
  • Random Post
  • About

Keyboard Shortcuts

R - Load a random post.
? - Open this dialog window.
Keyboard Shortcuts

Using Nagios to monitor your power outlets

August 15, 2017 by Pat Leave a Comment

I’m a huge fan of Nagios. I’ve installed it at work and it provides us simple up/down information, as well as detailed service information. Being able to customize the level of monitoring detail has been a huge benefit. Nagios doesn’t just stop at the workplace — I run it at home too. I’m monitoring my weather station, Raspberry Pis, SmartThings hub, IoT WiFi devices, my small lab Asterisk PBX and websites I’ve created for businesses, family and friends. It’s important to me that I run a healthy environment — whether it’s in my house or not. I had a situation recently where the GFCI outlet that my air conditioner’s condensate pump was plugged into had popped it’s breaker and turned [Read More…]

Setup a Raspberry Pi Kiosk with Chromium

February 26, 2017 by Pat 35 Comments

I’ve setup my Raspberry Pi 3 to be a digital signage kiosk. I’ve installed the Adafruit 3.5″ PiTFT Plus touch screen, and am using it to show my weather station data in real time. This is done by having the Raspberry Pi auto log in and run Chromium to open a webpage. I’ve shared how I’ve setup a full digital signage system using Ubuntu and Chromium for Kiosk mode. This post will repeat a lot of the same in that article, but tailor it to the Raspberry Pi. Here’s how I did it: Setup Raspbian The first step is to get Raspbian Jesse installed, perform sudo apt-get update && sudo apt-get upgrade and if you have the Adafruit 3.5″ touchscreen installed, run through their [Read More…]

Setup a Kiosk with Ubuntu and Chromium

February 26, 2017 by Pat 17 Comments

Recently I’ve had the need to setup 2 kiosk stations to display an array of data on a digital signage screen which has no keyboard or mouse attached to it. The idea in this post is to explain how I did it. I installed Ubuntu with the Unity desktop, set some auto-login tasks and run Chromium in kiosk mode. Then using xdotool to cycle through the Chrome tabs at a set interval. Lastly, the unclutter package will remove the mouse cursor from the screen, giving a clean automated look. I also show how I’ve set this up for a Raspberry Pi. It’s mostly the same, but a few things are different. Check it out if you have a Raspberry Pi [Read More…]

Using grep on live active log files

February 20, 2017 by Pat Leave a Comment

I had a need recently to where I needed to grep an Apache httpd log file to see if a certain web subfolder was accessed. I wanted to grep the access log file which has historical and live data coming into it, and found this to be a great solution. Sharing it here in case it helps someone in the future! In this example, dd87946d06c23e was the name of the folder I was looking to see was accessed. tail -f -n 5000 /var/log/httpd/access_log | grep –line-buffered dd87946d06c23e

Use GeoIP and htaccess to deny countries access to your website

October 19, 2016 by Pat 3 Comments

I run about a dozen websites, and one of them switched over to the XenForo forum software. The problem with forums is once the spambots find it, they’re registering like crazy. My best efforts to use CAPTCHA didn’t work well. Then I added a question which uses AJAX to verify the answer against an external API. That helped but they were still able to figure out a valid answer. They then were manually verifying the registration via email. My best efforts to stop them really only slowed them down. I wanted it to end. Using a self-hosted Piwik analytics instance (I love Piwik) I was able to determine that most of the spammers came from India and China. I could have added those two countries known IPs [Read More…]

  • « Previous Page
  • 1
  • 2
  • 3
  • 4
  • …
  • 6
  • Next Page »

About

The purpose of this site is for me to share my DIY technical experiences as a place to document them publicly. Hopefully somewhere along the way they are helpful for you.

Recent Posts

  • How to setup your own MQTT Broker
  • Nest Thermostat Push Notifications
  • mailx – Send automated Linux email with gmail
  • simplemonitor – who watches the Nagios watchman?
  • Raspberry Pi and Nagios for reliable low cost monitoring

Tags

ad adblock amp Asterisk AutoHotKey battery block Camera car code codesnips database developer Emergency halloween Heat Home Inverter Linux load Nagios night plugins portfolio Power Project Raspberry Pi simplemonitor snippets Tech Tips Timelapse tips Tutorial ublock vision Weather Station webcam website weewx WordPress

Copyright © 2010–2019 O'Brien Labs – All Rights Reserved – Use without permission is illegal.

Please support this website by adding us to your whitelist in your ad blocker. Ads are what helps us bring you premium content! Thank you!