Archive for 'Administration' Category

Updated Zabbix install script

By jbayer - Last updated: Saturday, May 3, 2014

My latest version of the install script, with the following additions: Fixed missing install of libxml2-devel   Make sure that wget is installed before running the script.  

658 views

Starting & stopping CF-Engine

By jbayer - Last updated: Wednesday, January 15, 2014

We are slowly implementing CF-Engine 3 in our environment.  Inevitably, there are occasionally problems on specific systems.  Sometimes we need to disable CF-Engine while debugging since the files that are being worked on are maintained by CF-Engine and would be overwritten during the debugging process. We also put a line in to /etc/cron.d/cfengine to restart […]

757 views

Updated (again) Zabbix install script

By jbayer - Last updated: Sunday, November 3, 2013

My latest version of the install script, with the following additions:   Changed to require custom version of checkinstall Now adds OS version to RPM names Fixed bug in script when using new version of checkinstall    

787 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 […]

579 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 […]

596 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,442 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 […]

584 views

Zabbix template generator for Dell Openmanage

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

Our hosting company uses Dell systems exclusively.  Strangely enough, they don’t bother to monitor the disks in the systems, which lead to a triple drive failure on one of our RAID 5 systems;  total loss of data, and the backups weren’t complete.   I’ve developed the attached set of files which will address this. The […]

3,190 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 […]

638 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 […]

767 views
asd