Category Archives: Linux

rsyslogd auto-configuration

To have rsyslogd automatically create directories and files with whatever you send at it, just put this in your rsyslog.conf file (or a .conf file in /etc/rsyslog.d): # provide UDP syslog reception $ModLoad imudp $UDPServerRun 514 $template DynFile,”/var/log/syslogs/%fromhost-ip%-%fromhost%/%$YEAR%-%$MONTH%-%syslogfacility-text%” # log … Continue reading

Posted in Computer, Linux | Tagged , , , | Leave a comment

Active Directory export script to import into SME Server

I had to migrate users from an Active Directory/Exchange combo to a SME server for temporary disaster recovery event. Here’s the script I wrote to create the export and recreate the users and their aliases in the SME server. The … Continue reading

Posted in Computer, Exchange, Linux, Microsoft | Tagged , , , | Leave a comment

VMware vCSA 5.1 password expiration

A few months ago, I was unable to login on my vCSA. At that time, I thought it ws a glitch, I rebooted (didn’t fix the issue) and changed the password of the users, which fixed the issue. Recently, I … Continue reading

Posted in Computer, Linux, Virtualization, VMware | Tagged , , , | Leave a comment

Nagios and Exim queue size

A simple script to check Exim queue size for Nagios NRPE: #!/bin/bash #arg1 = warning count #arg2 = critical count if [ -z “$1” ] || [ -z “$2” ] then         echo “Usage: ${0} warningcount criticalcount” else         if … Continue reading

Posted in Computer, Linux | Tagged , , , , | Leave a comment

Ubuntu “reboot” on Supermicro X9SCI/X9SCA shuts down

On two recent Supermicro servers, typing reboot actually shuts down the server. Thanks to Google and this blogpost, major.io/2013/06/03/supermicro-x9scix9sca-server-does-a-shutdown-rather-than-a-reboot/ no longer have this issue. Short story: just blacklist the module named “mei” and you’re good.

Posted in Computer, Linux | Tagged , , , , , , | Leave a comment

Mikrotik DHCP and PXE boot

If you want to boot with DHCP/PXE/TFTP method and your DHCP is handled by a Mikrotik router and your TFTP server is on another server, then you need to set the next-server and boot-file-name parameters in the network definition. Do … Continue reading

Posted in Computer, Linux, Mikrotik, Networking | 5 Comments

Ubnt AirVision, AirCam and me

This weekend, I finally had time to install a few network cameras from Ubiquiti in my house. The goal was to replace the previous system, which was composed of cheap USB webcams and the software motion , that has been … Continue reading

Posted in Computer, Linux, Networking, surveillance, Ubiquiti | Tagged , , , , , , , | Leave a comment

Nagios and SNMP traps

It has been explained many times over the internet, so I won’t cover that. One thing you have to pay attention to is, if you run snmptt as a daemon, be sure that it has the right to write to … Continue reading

Posted in Computer, Linux, Networking, Virtualization | 1 Comment

Ubuntu netbooting needs a “new” kernel parameter

After a few hours spent trying to find why Ubuntu 12.04 would not download a preseed file while netbooting, I stumbled upon this bug bugs.launchpad.net/ubuntu/+source/casper/+bug/923219 . I needed to add “IPAPPEND 2” after the APPEND directive in the pxelinux config … Continue reading

Posted in Computer, Linux | Leave a comment

Exim, DNS blacklists and fail2ban

Last week, I saw an huge “spam” outbreak on my MX servers. Instead of ~200k rejected SMTP connections, I had ~3M connections and it was rising. This caused some minor issues with the frequent log parsing as the log file … Continue reading

Posted in Computer, Linux | 2 Comments