Skip to content

Instantly share code, notes, and snippets.

$ 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
<?php
/**
* Observium
* @package observium
* @subpackage webui
* @author Rick Heil (rickheil@partnersandsimons.com)
*/
echo ("SENDING SLACK NOTIFICATION\n");
<?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>
$ 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"
@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;
@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;
include apt
class {'elasticsearch':
ensure => present,
config => { 'cluster.name' => 'graylog',
'network.host' => '127.0.0.1',
'script.disable_dynamic' => True
}
}
include apt
include '::mongodb::server'
include 'elasticsearch'
class {'graylog2::repo':
version => '1.1'
} ->
class {'graylog2::server':
password_secret => '64-char-secret-here',
root_password_sha2 => 'sha256-hash-of-your-password-here',
<?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>SupportedBoardIds</key>
<array>
<string>Mac-031B6874CF7F642A</string>
<string>Mac-F2268DC8</string>
<string>Mac-F22587C8</string>
<string>Mac-50619A408DB004DA</string>
<?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>Description</key>
<string>Downloads latest version of Tower and imports into a Munki repo.</string>
<key>Identifier</key>
<string>com.github.rickheil.psautopkg.munki.Tower</string>
<key>Input</key>
<dict>