I hereby claim:
- I am joeashcraft on github.
- I am joeashcraft (https://keybase.io/joeashcraft) on keybase.
- I have a public key whose fingerprint is AF3B 884B E749 F82C 94A1 A126 F484 FA94 C201 0643
To claim this, I am signing this object:
#!/usr/bin/python | |
"""Test if a file exists and is not group-writable. | |
AUTHOR: joe.ashcraft@rackspace.com | |
""" | |
from __future__ import print_function | |
import os, stat, sys | |
type : remote.http | |
label : HTTP WAN-IP example.com | |
disabled : false | |
period : 60 | |
timeout : 30 | |
target_alias : access_ip1_v4 | |
monitoring_zones_poll : [ mzdfw, mziad, mzord, mzlon ] | |
details : | |
url : "http://example.com" |
for d in google.com www.google.com rackspace.com www.rackspace.com ; do | |
echo -n "$d : " | |
result=$(dig +short "$d" | tail -n1) | |
if [ -z "$result" ]; then | |
echo NONE | |
else | |
echo "$result" | |
fi | |
done | column -t |
#!/bin/bash | |
getent passwd | awk -F':' '{ if ($3 >= '$(awk '/^UID_MIN/ {print $2}' /etc/login.defs)') print }' | |
exit 0 |
type : agent.mysql | |
label : "MySQL Metrics" | |
disabled : false | |
period : 60 | |
timeout : 30 | |
details : | |
username : "raxmon" | |
password : "password" | |
alarms: | |
alarm1: |
#!/usr/bin/perl | |
eval "use diagnostics; 1" or die("\n[ FATAL ] Could not load the Diagnostics module.\n\nTry:\n\n sudo apt-get install perl-modules\n\nThen try running this script again.\n\n"); | |
use Getopt::Long qw(:config no_ignore_case bundling pass_through); | |
use POSIX; | |
use strict; | |
use File::Find; | |
############################################################################################################ | |
# __ ___ __ __ __ __ | |
# ____ ____ ____ ______/ /_ ___ |__ \ / /_ __ ______/ /___/ /_ __ ____ / / |
I hereby claim:
To claim this, I am signing this object: