This file contains 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
# You may need to manually edit this file to fit your needs. | |
# This configuration assumes the default installation prefix | |
# of /opt/graphite/, if you installed graphite somewhere else | |
# you will need to change all the occurances of /opt/graphite/ | |
# in this file to your chosen install location. | |
<VirtualHost *:80> | |
ServerName <HOST PARA ACESSO AOS RELATORIOS> | |
DocumentRoot "/opt/graphite/webapp" | |
ErrorLog /opt/graphite/storage/log/webapp/error.log |
This file contains 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
logster --output=graphite --graphite-host=localhost:2003 MetricLogster /tmp/auditoria.log | |
--dry-run - só usar essa opção para testes |
This file contains 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/sh | |
# FOR CENTOS 6 | |
# Andrew Diller Jan 2012 | |
# Modified by Fabricio Leotti Aug 2012 | |
# Get EPEL Repo installed | |
rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-7.noarch.rpm | |
# Comment all "mirrorlist=" lines in /etc/yum.repos.d/epel.repo | |
sed -i s/^mirrorlist=/#mirrorlist=/g /etc/yum.repos.d/epel.repo |
This file contains 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
# Fabricio Leotti Aug 2012 | |
# Instal Logcheck | |
yum -y install logcheck | |
# Download Logster | |
git clone https://github.com/etsy/logster.git | |
# Install Logster | |
cd logster |
This file contains 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/sh | |
usage() { | |
cat <<EOF | |
USAGE: $0 -h HOSTNAME [-p PORT] -f LOGFILE [-d -r] | |
HOSTNAME - hostname or IP address for the graphite server | |
PORT - port where the graphite server listens | |
LOGFILE - the path for the logfile that will be parsed | |
d - debug mode on |
This file contains 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
1. Click Start, click Run, and type "control userpasswords2" without quotes. | |
2. Highlight your account and uncheck the "Users must enter a username and password to use this computer". | |
3. Click Apply. | |
4. Enter the password, then click OK. | |
5. Click OK again and you're all done. |
This file contains 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 | |
# | |
# kick_api.sh | |
# | |
# please set your host | |
address="http://[your management server]:8080" | |
# please set your api key | |
api_key="QVOObVBiTodKl5L0vPQFCCELsxbtEHHysXU42XTFFwhBHWWFV7GaiH5oJG0yHHsqFzCcgflH8Ee8Ttk4m_qJLQ" | |
# please set your secret key | |
secret_key="zTl4qQtSZPijMkNYgkX1lQh6QlEUXyjSKeXSPZQl2MJifzOBFhNDA5cQlfK7Ds5BFEM_ua_5ELMPL-z4JNJBIA" |
This file contains 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/sh | |
# GRAPHITE 0.9.10 | |
# FOR CENTOS 6 | |
# Andrew Diller Jan 2012 | |
# Modified by Fabricio Leotti Nov 2012 | |
# THIS SCRIPT DEPENDS ON PYTHON 2.6 (NO MORE, NO LESS) | |
# Get EPEL Repo installed | |
rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-7.noarch.rpm |
This file contains 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
<VirtualHost *:80> | |
ServerName local.busca.abril.com.br | |
ServerAlias local.busca.abril.com.br | |
DocumentRoot "/home/fabricio/workspace/abrilbusca" | |
Alias /libc/busca /home/fabricio/workspace/interface-bsc/libc/busca | |
<Directory /home/fabricio/workspace/abrilbusca> | |
Options +Includes +FollowSymLinks | |
AllowOverride All |
This file contains 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 | |
#################################################################### | |
# Script based on three references: | |
# https://github.com/sstephenson/rbenv | |
# https://github.com/sstephenson/ruby-build | |
# https://gist.github.com/jpfuentes2/2002954 | |
#################################################################### | |
# Run this script as a commom user (no need to 'sudo' it) | |
# However you will need to install these requirements before run this |
OlderNewer