Archives by Tag 'linux'

Updated checkinstall 1.6.2.2 for Redhat 5 & 6

By jbayer - Last updated: Monday, October 14, 2013

I’ve consolidated the changes I’ve made into a new release: Added ability to remember options between runs Added –os option to specify OS release (ie: el5) Due to the different libraries between OS releases, I have a version for Redhat 5 and another version for Redhat 6  

576 views

Updated Zabbix install script

By jbayer - Last updated: Monday, October 14, 2013

My latest version of the install script, with the following additions: 1.9 Added check for latest zabbix version Added postfix to install 1.10 Updated paths for changes in Sourceforge Added mod_ssl to Apache install Updated version number for epel 1.11 Added Postgresql database option Changed to require custom version of checkinstall Now adds OS version […]

582 views

SSH known_hosts Management with CFEngine

By jbayer - Last updated: Thursday, October 10, 2013

For small sites, a changed Secure Shell (SSH) host key poses only minor problems, as only a few systems might be affected. At larger sites, the host key data should be maintained with configuration management, so that any SSH host key changes can be propogated throughout the site. CFEngine can maintain a global ssh_known_hosts file for OpenSSH. Host Key Collection with ssh-keyscan The […]

605 views

Usin JSON to add a new host in Zabbix 2.0

By jbayer - Last updated: Wednesday, October 2, 2013

This script was originally written by Travis Mathis, from Millicorp back in 2011, for Zabbix 1.8.5.  A link to the original posting on the Zabbix forum is Zabbix Agent/Host Auto Install/Create Script using API   I’ve updated the script to work for Zabbix 2.0 (tested with 2.0.8 and on CentOS 5/6). I’ve also added a […]

3,648 views

Find big files

By jbayer - Last updated: Wednesday, October 2, 2013

Someone is using a lot of space, and you want to find out who.  More specifically, you would like to identify the large files and automatically send them an email about it. This script will do that for you.  It’s called findbig, and can be called by hand or from a cron job.  It will […]

417 views

Copying or Backing up an image of an LVM-based Virtual Machine

By jbayer - Last updated: Wednesday, October 2, 2013

If you are using virtual machines on a Linux system, you may be storing the VM image in an LVM partition.  This can make it difficult to copy or backup an image of the VM. The attached script will do just that.  It displays the list of VMs running on the system and allows you […]

604 views

Locking and unlocking a user account

By jbayer - Last updated: Wednesday, September 18, 2013

This is a script that someone whipped up.  It wasn’t myself, and I have been unable to find an author.  I find it extremely useful when locking down a server.  I cleaned it up a bit and added some error checking before posting here. There are times when you need to disable a user’s access […]

659 views

Adding Space to Linux Partitions

By jbayer - Last updated: Thursday, August 8, 2013

Sometimes after you make a virtual machine, you find that you need to add more space to it.  You are left with two options: Build a new VM and copy everything over Expand the existing VM The first option is slow and subject to error.  It is very easy to miss copying over a file […]

807 views

Detecting hardware virtualization in Linux

By jbayer - Last updated: Friday, May 10, 2013

For historical reasons, most systems which ship have the virtualization flag turned off.  If you aren’t expecting this, and try to install KVM in a Linux system, you can get unusual errors which don’t necessarily indicate the problem. This script performs a few simple tests to see if virtualization is active or not.  I can’t […]

626 views

Zabbix – Automatic Filesystem Discovery Update

By jbayer - Last updated: Saturday, May 4, 2013

On our systems, we use a standard Linux template.  However, many of our systems have different filesystem layouts, and I didn’t want to have to customize each system as it was installed into Zabbix. I wrote the attached script to solve this problem.  Once the Zabbix client is installed and configured, simply run the attached […]

2,282 views
asd