Skip to content

Instantly share code, notes, and snippets.

include apt
class {'elasticsearch':
ensure => present,
config => { 'cluster.name' => 'graylog',
'network.host' => '127.0.0.1',
'script.disable_dynamic' => True
}
}
@rickheil
rickheil / 00-graylog-proxy
Last active August 29, 2021 11:43
nginx configuration for graylog reverse proxy, HTTPS forced
server {
listen 80;
return 301 https://$host$request_uri;
}
server {
listen 443;
server_name graylog.example.com;
@rickheil
rickheil / 00-graylog-proxy
Created July 2, 2015 18:33
nginx configuration for graylog reverse proxy
server {
listen 80;
server_name graylog.example.com;
access_log /var/log/nginx/graylog.access.log;
location / {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
$ rrdtool lastupdate app-crashplan-PRO_Server.rrd
totalBytes usedBytes usedPercentage freeBytes freePercentage coldBytes coldPctOfUsed coldPctOfTotal archiveBytes selectedBytes remainingBytes inboundBandwidth outboundBandwidth orgCount userCount computerCount onlineComputerCount backupSessionCount
1436374836: 17591842062336 12909590953984 73 4682251108352 27 0 0 0 12856655362173 10064576710414 29715427602 230017 630 0 0 106 74 58
$ rrdtool graph test.png -w 785 -h 120 -a PNG 'DEF:a=app-crashplan-PRO_Server.rrd:userCount:AVERAGE' 'LINE1:a#006400:userCount' 'GPRINT:a:MAX:User Count\:%2.4lf'
$ rrdtool info app-crashplan-PRO_Server.rrd
filename = "app-crashplan-PRO_Server.rrd"
rrd_version = "0003"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>org.observium.agent</string>
<key>OnDemand</key>
<true/>
<key>ProgramArguments</key>
<array>
<?php
/**
* Observium
* @package observium
* @subpackage webui
* @author Rick Heil ([email protected])
*/
echo ("SENDING SLACK NOTIFICATION\n");
$ curl -I https://packages.graylog2.org/releases/graylog-collector/graylog-collector-0.4.0.zip
HTTP/1.1 302
Server: Cowboy
Connection: keep-alive
Date: Thu, 03 Sep 2015 15:37:02 GMT
Location: http://graylog2-releases.s3.amazonaws.com/graylog-collector/graylog-collector-0.4.0.zip?AWSAccessKeyId=AKIAIJSI6MCSPXFVDPIA&Expires=1441295222&Signature=0486nAsDen4WpRhsWqCfCvlzXUM%3D
Via: 1.1 vegur
$ autopkg run graylog-collector.download.recipe -vvvvv
Processing graylog-collector.download.recipe...
{'AUTOPKG_VERSION': u'0.5.1',
u'GIT_PATH': u'/Applications/Xcode.app/Contents/Developer/usr/bin/git',
u'MUNKI_REPO': u'/Volumes/munki_repo',
u'NAME': u'GraylogCollector',
'PARENT_RECIPES': [],
'RECIPE_CACHE_DIR': u'/Users/rickheil/Library/AutoPkg/Cache/com.github.rickheil.psautopkg.download.graylog-collector',
'RECIPE_DIR': '/Users/rickheil/Development/psautopkg/graylog collector',
'RECIPE_OVERRIDE_DIRS': ['~/Library/AutoPkg/RecipeOverrides'],
@rickheil
rickheil / a.rb
Created September 30, 2015 18:53
$ sudo ./createOSXinstallPkg --source=/Applications/Install\ OS\ X\ El\ Capitan.app
Password:
Examining and verifying source...
----------------------------------------------------------------
InstallESD.dmg: /Applications/Install OS X El Capitan.app/Contents/SharedSupport/InstallESD.dmg
OS Version: 10.11
OS Build: 15A284
----------------------------------------------------------------
Output path: /Users/rickheil/Development/createOSXinstallPkg/InstallOSX_10.11_15A284.pkg
Creating package wrapper...
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>org.observium.agent</string>
<key>OnDemand</key>
<true/>
<key>ProgramArguments</key>
<array>