Skip to content

Instantly share code, notes, and snippets.

#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007f8fff205e30, pid=23572, tid=140255540520704
#
# JRE version: 6.0_24-b24
# Java VM: OpenJDK 64-Bit Server VM (20.0-b12 mixed mode linux-amd64 compressed oops)
# Derivative: IcedTea6 1.11.5
# Distribution: Ubuntu 12.04 LTS, package 6b24-1.11.5-0ubuntu1~12.04.1
# Problematic frame:
@remh
remh / gist:5515207
Created May 3, 2013 23:48
cassandra.yaml
instances:
- host: localhost
port: 7199
name: cassandra_instance
init_config:
conf:
- include:
domain: org.apache.cassandra.db
instances:
- host: localhost
port: 7199
name: cassandra_instance
init_config:
conf:
- include:
domain: org.apache.cassandra.db
@remh
remh / activemq.yaml
Created August 29, 2013 17:02
Activemq check configuration file for activemq 5.8.0
instances:
- host: localhost
port: 1099
# user: username
# password: password
name: localhost
# java_bin_path: /usr/bin/java
# List of metrics to be collected by the integration
init_config:
instances:
- host: m1.pg
port: 7999
name: jmx_instance_m1.pg
user: username
password: password
java_bin_path: /usr/bin/java
conf:
import numpy as np
import timeit
metric_series_count = 3
test_data = [2.10723804e+03,1.26780400e+04, 1.47227500e+04, 1.62780752e+04, 1.71822812e+04 , 1.64260996e+04 , 2.72706328e+04 , 1.57876689e+04, 1.47809004e+04 , 1.43575615e+04 , 1.55860273e+04 , 1.55252500e+04, 1.70042930e+04 , 1.54317500e+04 , 2.22643242e+04 , 1.54446250e+04, 1.45285752e+04 , 1.52491279e+04 , 1.42818574e+04 , 1.85883770e+04, 1.90738242e+04 , 2.76426113e+04 , 1.51628740e+04 , 1.66276758e+04, 2.91944414e+04 , 1.79294004e+04 , 1.85493008e+04 , 5.05975156e+04, 5.97016328e+04 , 1.36698350e+04 , 1.75005508e+04 , 1.48950996e+04, 2.98080750e+05 , 1.28499795e+04 , 2.33493750e+04 , 1.87940508e+04, 3.70170000e+04 , 1.99230508e+04 , 1.57387549e+04 , 1.64653398e+04, 1.52441250e+04 , 1.71265371e+04 , 1.45260479e+04 , 2.36466992e+04, 1.49441504e+04 , 1.56413750e+04 , 1.53727500e+04 , 1.65995508e+04, 2.31307363e+04 , 3.10398047e+04 , 2.02409023e+04 , 2.81140957e+04, 2.01719004e+04 , 1.7934150
@remh
remh / win32_event_log.yaml
Created September 4, 2013 17:04
Event viewer integration
init_config:
instances:
# Each Event Log instance lets you define the type of events you want to
# match and how to tag those events. You can use the following filters:
#
# - type: Warning, Error, Information
#
# - log_file: Application, System, Setup, Security
#
import urllib2
import urlparse
from checks import AgentCheck
from util import json
QUEUE_ATTRIBUTES = [
'active_consumers',
'consumers',
'memory',
@remh
remh / tomcat.yaml
Created December 3, 2013 17:18
Add last request processing time to tomcat metrics
instances:
# - host: localhost
# port: 7199
# user: username
# password: password
# name: tomcat_instance
# #java_bin_path: /path/to/java #Optional, should be set if the agent cannot find your java executable
# #trust_store_path: /path/to/trustStore.jks # Optional, should be set if ssl is enabled
# #trust_store_password: password
import simplejson as json
content = """{
"glossary": {
"title": "example glossary",
"GlossDiv": {
"title": "S",
"GlossList": {
"GlossEntry": {
"ID": "SGML",