This file contains hidden or 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
include apt | |
class {'elasticsearch': | |
ensure => present, | |
config => { 'cluster.name' => 'graylog', | |
'network.host' => '127.0.0.1', | |
'script.disable_dynamic' => True | |
} | |
} |
This file contains hidden or 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
server { | |
listen 80; | |
return 301 https://$host$request_uri; | |
} | |
server { | |
listen 443; | |
server_name graylog.example.com; |
This file contains hidden or 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
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; |
This file contains hidden or 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
$ 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" |
This file contains hidden or 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
<?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> |
This file contains hidden or 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
<?php | |
/** | |
* Observium | |
* @package observium | |
* @subpackage webui | |
* @author Rick Heil ([email protected]) | |
*/ | |
echo ("SENDING SLACK NOTIFICATION\n"); |
This file contains hidden or 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
$ 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 |
This file contains hidden or 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
$ 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'], |
This file contains hidden or 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
$ 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... |
This file contains hidden or 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
<?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> |