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
class PHPFpmStatus < Scout::Plugin | |
needs 'open-uri', 'json' | |
OPTIONS=<<-EOS | |
url: | |
name: FPM Status Url | |
default: "http://localhost/status?json" | |
EOS | |
def build_report |
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
# MySQL Statistics by Eric Lindvall <[email protected]> | |
# MySQLTuner integration by Andre Lewis <@[email protected]> | |
class MysqlQueryStatistics < Scout::Plugin | |
ENTRIES = %w(Com_insert Com_select Com_update Com_delete) | |
require 'shellwords' | |
OPTIONS=<<-EOS | |
user: | |
name: MySQL username |
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
# A Scout plugin to perform simple count of files in a directory using regex. | |
# | |
# path - Provide the path to a directory you would like to check. | |
# file_regex - Provide the regex you want to use to look for file under the path. | |
# http://ruby-doc.org/core-2.0/Dir.html#method-c-glob | |
# | |
# Created by Gerric Chaplin <[email protected]> | |
class SimpleFileCount < Scout::Plugin | |
OPTIONS=<<-EOS |
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
#!/bin/bash | |
# This is the current stable release to default to, with Omnibus patch level (e.g. 10.12.0-1) | |
# Note that the chef template downloads 'x.y.z' not 'x.y.z-r' which should be a duplicate of the latest -r | |
use_shell=0 | |
prerelease="false" | |
# Check whether a command exists - returns 0 if it does, 1 if it does not | |
exists() { |
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 | |
# This example bash script file is located here: /home/your-username/scripts/scout_cron.sh for our example, but could be anywhere on your server. | |
# Make sure you remember to make this file an executable script by: chmod +x /home/your-username/scripts/scout_cron.sh. | |
# Loading the RVM Environment files. To find your unique rvm path use: rvm env --path -- ruby-version[@gemset-name]. | |
# For example: rvm env --path -- 1.9.3-p194@projectX | |
source /home/deploy/.rvm/environments/ruby-1.9.3-p374 | |
# Changing directories to our rails project. The example below is a Capistrano path. |
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
# MySQL Statistics by Eric Lindvall <[email protected]> | |
# MySQLTuner integration by Andre Lewis <@[email protected]> | |
class MysqlQueryStatistics < Scout::Plugin | |
ENTRIES = %w(Com_insert Com_select Com_update Com_delete) | |
OPTIONS=<<-EOS | |
user: | |
name: MySQL username | |
notes: Specify the username to connect with | |
default: root |
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
require 'time' | |
require 'date' | |
class MysqlReplicationMonitor < Scout::Plugin | |
needs 'mysql' | |
OPTIONS=<<-EOS | |
host: | |
name: Host | |
notes: The slave host to monitor | |
default: 127.0.0.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
#!/bin/sh | |
# | |
# killtrough | |
# Remove (presumably erroneous) troughs from RRD files | |
# | |
# Matt Zimmerman <[email protected]>, 05/2002 | |
# | |
# Modified by Andre Lewis to kill troughs instead of peaks 10/2012 |
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
Process: Cloud [43188] | |
Path: /Users/USER/Downloads/Cloud.app/Contents/MacOS/Cloud | |
Identifier: com.linebreak.Cloud | |
Version: 2.0 beta (42) | |
Code Type: X86-64 (Native) | |
Parent Process: launchd [226] | |
Date/Time: 2012-10-05 10:33:45.238 -0700 | |
OS Version: Mac OS X 10.7.4 (11E53) | |
Report Version: 9 |
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
class Counter < Scout::Plugin | |
def build_report | |
value =`ls -1 ~ | wc -l`.to_i | |
report(:count=>value) | |
end | |
end |