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 bash | |
if [ $# -lt 2 ] | |
then | |
echo "Usage: neltest.sh report_to test" | |
echo "" | |
echo "report_to: is the host to send the error report to" | |
echo "" | |
echo "test: 1 | 2 | 3" | |
echo " 1: single NEL report test" |
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
diff --git a/src/analyzer/alerters.py b/src/analyzer/alerters.py | |
index edf076b..04f4209 100644 | |
--- a/src/analyzer/alerters.py | |
+++ b/src/analyzer/alerters.py | |
@@ -39,7 +39,7 @@ def alert_smtp(alert, metric): | |
msg['Subject'] = '[skyline alert] ' + metric[1] | |
msg['From'] = sender | |
msg['To'] = recipient | |
- link = '%s/render/?width=588&height=308&target=%s' % (settings.GRAPHITE_HOST, metric[1]) | |
+ link = settings.GRAPH_URL % (metric[1]) |
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
var fs = require('fs'), | |
path = require('path'); | |
function NginxParseTreeNode(name, value, parent, children) { | |
this.name = name || ''; | |
this.value = value || ''; | |
this.parent = parent || null; | |
this.children = children || []; | |
this.comments = []; | |
} |
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
var express = require('express') | |
, app = express(); | |
app.use(express.bodyParser()) | |
.get('/', function(req, res){ | |
res.send('<form action="/" method="POST"><input type="text" name="test"><input type="submit" value="Submit"></form>'); | |
}) | |
.post('/', function(req, res){ | |
res.send(req.body); | |
}).listen(3003); |
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
Sample logs at fresh startup/empty redis (horizon is started first a few seconds before analyzer in this case): | |
--------------------------------------------------------------------- | |
started with pid 18445 | |
2013-10-16 08:58:16 :: 18445 :: starting skyline analyzer | |
2013-10-16 08:58:16 :: 18445 :: seconds to run :: 0.35 | |
2013-10-16 08:58:16 :: 18445 :: total metrics :: 40249 | |
2013-10-16 08:58:16 :: 18445 :: total analyzed :: -1 | |
2013-10-16 08:58:16 :: 18445 :: total anomalies :: 0 | |
2013-10-16 08:58:16 :: 18445 :: exception stats :: {'Incomplete': 40250} | |
2013-10-16 08:58:16 :: 18445 :: anomaly breakdown :: {} |
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
diff --git a/KibanaConfig.rb b/KibanaConfig.rb | |
index 93ebdcc..ed33a83 100644 | |
--- a/KibanaConfig.rb | |
+++ b/KibanaConfig.rb | |
@@ -12,6 +12,11 @@ module KibanaConfig | |
#Set the Net::HTTP read/open timeouts for the connection to the ES backend | |
ElasticsearchTimeout = 500 | |
+ # A search timeout, bounding the search request to be executed within the | |
+ # specified time value and bail with the hits accumulated up to that point |
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
diff php-example.php php-example1.php | |
93,94d92 | |
< static $fp = null; | |
< | |
117c115 | |
< if (! $fp) { $fp = fsockopen("udp://$host", $port, $errno, $errstr);} | |
--- | |
> $fp = fsockopen("udp://$host", $port, $errno, $errstr); | |
121a120 | |
> fclose($fp); |
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
backendEvents.once('process_metrics', function (){ | |
pm.process_metrics(metrics_hash, flushInterval, time_stamp, function emitFlush() { | |
// Flush metrics to each backend. | |
backendEvents.emit('flush', time_stamp, metrics_hash); | |
}); | |
}); | |
backendEvents.emit('process_metrics', time_stamp, metrics_hash); |
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
diff --git a/plugins/email_plugin.php b/plugins/email_plugin.php | |
index 98b12b5..f51807b 100644 | |
--- a/plugins/email_plugin.php | |
+++ b/plugins/email_plugin.php | |
@@ -43,14 +43,14 @@ function email_plugin_send_methods(){ | |
} | |
//email plugin | |
-function email_plugin_notify($check,$check_result,$subscription,$alt_email=false) { | |
+function email_plugin_notify($check,$check_result,$subscription,$alt_email=false,$data='') { |
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
diff -u definition.rb.orig definition.rb | |
--- definition.rb.orig 2011-03-15 21:44:28.607976997 -0400 | |
+++ definition.rb 2011-04-09 06:25:10.209508002 -0400 | |
@@ -8,15 +8,15 @@ | |
:cpu_count => '1', :memory_size=> '768', | |
:disk_size => '10140', :disk_format => 'VDI',:disk_size => '10240' , | |
:os_type_id => 'FreeBSD', | |
- :iso_file => "PCBSD8.2-x86-DVD.iso", | |
- :iso_src => "ftp://mirrors.isc.org/pub/pcbsd/8.2/i386/PCBSD8.2-x86-DVD.iso", | |
- :iso_md5 => "6433a8abf6073b177750d48398bed341", |
NewerOlder