This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ "$1" = "" ]; | |
then | |
echo "Please provide an argument, e.g frontend or nc" | |
exit 1 | |
fi | |
echo "" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
attach_volume () { | |
volId=$1 | |
grep vd[a-z]$ /proc/partitions | awk "{print \$4;}" > /tmp/before | |
sleep 2 | |
# attach the volume | |
echo "Attaching $volId to $instanceId" | |
euca-attach-volume -i $instanceId $volId -d /dev/vdc |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# from storage database | |
# eucalyptus_storage=# SELECT volume_name, storename, lv_name from iscsivolumeinfo ; | |
# save this to <iscsiinfo> file | |
# remove the snapshots | |
#sed -i '/snap/d' iscsiinfo | |
#sed -i 's/|//g' iscsiinfo | |
while read line | |
do |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!/usr/bin/env bash | |
# set -x | |
get_next_multiplier() { | |
current_multiplier=$1 | |
multiplier=$(( ${current_multiplier} * 2 )) | |
} | |
set_variables() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# set -x | |
# DEBUG='echo' | |
device=$1 | |
[ ! -f "${device}" ] && exit 1 | |
output_dir=$( echo "${device}" | sed 's/.img//g' ) | |
[ -d "${output_dir}" ] && exit 1 | |
mkdir -p "${output_dir}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
## CONFIG START ## | |
EUCACOMMIT="<eucalyptus commit-yyyy-mm-dd-nn>" | |
ENTRCOMMIT="<enterprise commit-yyyy-mm-dd-nn>" | |
CLCW00="<primary clc walrus ip>" | |
CCSC00="<primary cc sc ip>" | |
NC00="<node controller ip> <node controller ip>" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# allow security group | |
euca-authorize -P tcp -p 22 default | |
euca-authorize -P tcp -p 80 default | |
################################ | |
# Install Ganglia on Meta Node # | |
################################ | |
# install EPEL repo | |
yum install http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm -y |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# disable selinux | |
# fix/disable iptables | |
################# | |
# Nagios Server # | |
################# | |
yum install nagios nagios-plugins-all nagios-plugins-nrpe nrpe -y |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* This configuration is as close to 2.5.x default behavior as possible | |
The values closely match ./gmond/metric.h definitions in 2.5.x */ | |
globals { | |
daemonize = yes | |
setuid = yes | |
user = ganglia | |
debug_level = 0 | |
max_udp_msg_len = 1472 | |
mute = no | |
deaf = no |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
SERVERIP="" | |
if [ "$1" == "" ]; | |
then | |
read -p "Please provide Ganglia/Nagios server IP: " SERVERIP | |
else | |
SERVERIP=$1 | |
fi |