Solving Sophos Virtual Appliance Disk Space Issues

posted on September 11, 2015

If you've built a few VMs for Sophos UTM (and Sophos SUM/ACC4), you may have come across a problem with the /var/storage partition filling up every few days. Constant emails with messages like "Data Disk is filling up - please check. Current usage: 86%" and "[INFO-154] Data Disk is filling up - please check" clog your inbox. The culprit is usually the postgresql database, and while the situation can be temporarily resolved by running /etc/in...
Read more...

Customizing angular-material color palettes

posted on June 11, 2015

Maybe I'm misunderstanding the greater picture with regards to material design, but I need to use the company colors in a new Angular app using angular-material and the palettes provided by Google just won't do. I couldn't find any place to generate the palettes as required by mdThemeProvider so I built one myself. Check it out I recommend you go to paletton to find your col...
Read more...

PRTG Advanced SSH Sensor for APC UPS

posted on March 27, 2015

Here's a custom sensor for working with APC UPS devices and PRTG: I have a github repository with updated versions of these PRTG sensors at: https://github.com/andygajetzki/prtg-sensors #!/bin/bash ...
Read more...

PRTG Advanced SSH Sensor for Monitoring the SMART Values of Independent Hard Drives On Linux

posted on March 27, 2015

I have a github repository with updated versions of these PRTG sensors at: https://github.com/andygajetzki/prtg-sensors Create a new sensor in /var/prtg/scriptsxml with the following contents: #!/bin/sh SMARTCTL="/usr/sbin/smartctl" echo "<prtg>" for DEVICE in `$SMARTCTL --scan-open | grep -o "^/dev/[a-z]*"`; do echo " <resu...
Read more...

Monitoring Drives Attached to HP RAID Controllers in ESXi using PRTG

posted on March 18, 2015

PRTG does not appear to offer a sensor for monitoring P410 and similar RAID controllers in ESXi. I've written a script that will report on both the logical and physical drive statuses provided by HP's hpssacli ESXi utility.  I have a github repository with updated versions of these PRTG sensors at: https://github.com/andygajetzki/prtg-sensors From your ESXi terminal, ...
Read more...

Slow printing with shared Toshiba printers

posted on March 9, 2015

If you are using Toshiba printers on your network and your users are complaing about print jobs that are slow to start, check the 'Configuration' tab in the printer's properties page and uncheck 'Enable SNMP Communication'. The problem here is of course a timeout when client device is not able to communicate with the printer. On our network, the user devices are on a seperate subnet from the printers, and direct communication is disallowed. ...
Read more...

Retrieving Lost Files by Using the Client Side Cache (CSC) and the Windows Previous Versions Feature

posted on March 6, 2015

We had a problem with users losing files after setting up new profile redirection GPOs with Offline Files accidentally enabled. The lost files on the client machine can possibly be retrieved by utilizing two features in Windows: the CSC and Previous Versions. ...
Read more...

Flashing Zenfones

posted on February 20, 2015

I recently picked up an ASUS Zenfone 5 and 6 from fasttech. The price was right ($150 for the 5 and $260 for the 6). Fasttech noted that the phones could be configured in English, but once they arrived, it was obvious that that was not the case. From Fasttech, the phones have China Telecom firmware installed, and it was not possible to simply change this. Luckily, ASUS provides firmwares for these phones, and they come in three flavours: CUCC, TW, and WW. WW is the english version, and WW app...
Read more...

PRTG sensor for determining whether or not a Linux machine is in need of a reboot

posted on February 3, 2015

On Ubuntu (and sometimes Debian systems) the existence of the /var/run/reboot-required file indicates whether or not a reboot is required after updates have been applied. I have a github repository with updated versions of these PRTG sensors at: https://github.com/andygajetzki/prtg-sensors The below script should be placed in /var/prtg/scripts on the machine you wish to monitor. Once an ...
Read more...

Clearing the mail queue on an Sophos / Astaro UTM-110 Security Appliance

posted on September 12, 2012

It came to my attention today that we were having some mail delivery issues. I took a look at the mail logs, and saw a ton of authenticated connections trying to send email from eeproduct98@gmail.com to around 700,000 different email addresses.   It turns out that about a year ago, an account was created with a weak password, and yesterday, a brute-forcer managed to stumble upon it....
Read more...

Re-create courierimapsubscribed with all folders subscribed

posted on May 21, 2012

If you have a lot of folders in your IMAP mailbox, it can be pain to subscribe to all of them by hand. With courier-imap, the subscribed folders lists is one-entry-per-line list of directories in your mailbox. To subscribe to all folders, run the following in your root maildir:

$ find -type d -name ".*"  | tail -n+2 | sed 's/\.\/\./INBOX\./g' > courierimapsubscribed
Read more...

Start console emacs even when DISPLAY is set to an X-server

posted on April 12, 2012

On the command line, I like to keep my DISPLAY variable set so that I can remotely run X apps on my workstation. There is one exception for me, though, and is emacs. With DISPLAY set, starting emacs will automatically start xemacs, along with a 2 or 3 second delay as the initial window is drawn from across the internet. To avoid this and force emacs to start in console mode, simply create an alias: alias emacs="emacs -nw" The '-nw' forc...
Read more...