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
# Based on https://github.com/ripienaar/mcollective-plugins/blob/master/agent/urltest/urltest.rb | |
require 'net/http' | |
require 'socket' | |
req_url = "http://www.google.com" | |
url = URI.parse(req_url) |
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/sh | |
# | |
# Logstash Start/Stop logstash | |
# | |
# chkconfig: 345 99 99 | |
# description: Logstash | |
# processname: logstash | |
logstash_bin="/usr/java/latest/bin/java -jar /opt/logstash/logstash.jar" | |
logstash_conf="/etc/logstash/logstash.conf" |
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
Stick the PHP file in your Ganglia Web directory. Then in | |
$RUNDECK_HOME/projects/Default/etc/project.properties | |
add following lines | |
project.resources.file = /opt/rundeck/projects/Default/etc/resources.yaml | |
project.resources.url = http://ganglia.local/ganglia/rundeck.php | |
In Rundeck web UI there will be a link that says |
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
--- webapp/graphite/storage.py 2009-12-07 05:58:32 +0000 | |
+++ webapp/graphite/storage.py 2010-10-14 16:36:07 +0000 | |
@@ -262,7 +262,8 @@ | |
def getDataSources(self): | |
try: | |
info = rrdtool.info(self.fs_path) | |
- return [RRDDataSource(self, source) for source in info['ds']] | |
+ #return [RRDDataSource(self, source) for source in info['ds']] | |
+ return [RRDDataSource(self, source) for source in ["sum"]] | |
except: |
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/ruby | |
require "rexml/document" | |
require 'socket' | |
ganglia_hostname = 'localhost' | |
ganglia_port = 8649 | |
graphite_host = "localhost" | |
graphite_port = "2003" | |
begin |
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
Run #1: ./tiotest -t 8 -f 2048 -r 500 -b 4096 -d /mnt/fio/test -TTT | |
Unit information | |
================ | |
File size = megabytes | |
Blk Size = bytes | |
Rate = megabytes per second | |
CPU% = percentage of CPU used during the test | |
Latency = milliseconds | |
Lat% = percent of requests that took longer than X seconds |
NewerOlder