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
import sys | |
record=[] | |
for line in sys.stdin: | |
if len(record) < 2 and line != '\n': | |
record.append(line.strip()) | |
elif len(record) == 2: | |
print record | |
record=[] | |
sys.stdout.flush() | |
else: |
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
# This is currently a noop but will be supported in the future. | |
forge 'https://forge.puppetlabs.com' | |
#ROLES/PROFILES | |
mod 'roles', | |
:git => 'git@lnx-gitlab.adeq.lcl:puppet-modules/roles.git' | |
mod 'profiles', | |
:git => 'git@lnx-gitlab.adeq.lcl:puppet-modules/profiles.git' |
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
142 func grokline(match grok.Match) map[string][]string { | |
143 fields := make(map[string][]string) | |
144 defer func() { | |
145 if e:= recover(); e!= nil { | |
146 fmt.Println("Recovering",e) | |
147 } | |
148 }() | |
149 panic("Panicing") | |
150 match.Captures() | |
151 return fields |
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 | |
# nagios plugin check_redisqueue | |
# | |
# check size of redis queue, doesn't use option flags, so | |
# check_redisqueue <queuename> <warn> <crit> | |
# If you don't want graphite set below to 0 | |
#command vars |