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
(tagged-all "test_app" | |
(where (service #"^app.handler.req.m1_rate") | |
(by :service (coalesce | |
(smap folds/sum | |
(with :host "testcoalesce" | |
prn)))))) |
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
[cache:a] | |
LOCAL_DATA_DIR = /opt/graphite/storage/whisper/ | |
USER = | |
MAX_CACHE_SIZE = inf | |
MAX_UPDATES_PER_SECOND = 1000 | |
MAX_CREATES_PER_MINUTE = inf | |
LINE_RECEIVER_INTERFACE = 0.0.0.0 | |
LINE_RECEIVER_PORT = 2103 |
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
; (5556) | |
(let [host "0.0.0.0"] | |
(tcp-server :host host) | |
(udp-server :host host) | |
(ws-server :host host) | |
(graphite-server :host host)) | |
(streams |
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
#!/usr/bin/ruby | |
require 'yaml' | |
require 'puppet' | |
require 'json' | |
require 'stomp' | |
def empty_event | |
{ "name" => "puppet-report", |
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
"mailer": { | |
"type": "pipe", | |
"command": "/etc/sensu/handlers/mailer.rb" | |
} | |
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
{ | |
"checks": { | |
"letshelp_check": { | |
"handlers": ["default","mailer"], | |
"command": "/etc/sensu/plugins/check-http.rb -u http://a.b.c/ -r", | |
"interval": 90, | |
"subscribers": [ "mailservers" ] | |
} | |
} | |
} |
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
{ | |
"checks": { | |
"letshelp_check": { | |
"handlers": ["default","mailer"], | |
"command": "/etc/sensu/plugins/check-http.rb -u http://a.b.c/ -r", | |
"interval": 90, | |
"subscribers": [ "mailservers" ] | |
} | |
} | |
} |
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
{ | |
"checks": { | |
"letshelp_check": { | |
"handlers": ["default","mailer"], | |
"command": "/etc/sensu/plugins/check-http.rb -u http://a.b.c/ -r", | |
"interval": 90, | |
"subscribers": [ "mailservers" ] | |
} | |
} | |
} |
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
#!/usr/bin/env perl | |
use Error qw(:try); | |
use RT::Client::REST; | |
my $id = $ARGV[0]; | |
my $rt = RT::Client::REST->new( | |
server => 'http://RTURL', | |
timeout => 30, | |
); |
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
use XML::Simple; | |
use Data::Dumper; | |
sub trim($) | |
{ | |
my $string = shift; | |
$string =~ s/^\s+//; | |
$string =~ s/\s+$//; | |
return $string; | |
} |
NewerOlder