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
define command { | |
command_name notify-service-ganglia | |
command_line /usr/bin/wget -q -O /dev/null "$CONTACTEMAIL$/api/events.php?action=add&start_time=now&summary=$NOTIFICATIONTYPE$ $SERVICEDESC$ $SERVICESTATE$&description=$SERVICEOUTPUT$&host_regex=$HOSTNAME$" | |
} | |
define command { | |
command_name notify-host-ganglia | |
command_line /usr/bin/wget -q -O /dev/null "$CONTACTEMAIL$/api/events.php?action=add&start_time=now&summary=$NOTIFICATIONTYPE$ $HOSTSTATE$&description=$HOSTOUTPUT$&host_regex=$HOSTNAME$" | |
} |
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
## Prep | |
my $from = '[email protected]'; | |
if (lc($self->TicketObj->RequestorAddresses) ne $from) { | |
$RT::Logger->info("Ticket is NOT from $from"); | |
return 0; | |
} else { | |
$RT::Logger->info("Ticket IS from $from"); | |
return 1; |
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
# ./check_v46 --wrapper-hostname ns1.ems.psu.edu --plugin-hostname-arg="-s" /usr/lib64/nagios/plugins/check_dns --no-proto-arg --debug -H smith.ait.psu.edu -a 128.118.58.69 | |
debug: Doing protocol IPv6 | |
debug: Lookup of ns1.ems.psu.edu for 10 returned: 2610:8:7800:20::66 | |
debug: checking address 2610:8:7800:20::66 | |
debug: Running '/usr/lib64/nagios/plugins/check_dns -H smith.ait.psu.edu -a 128.118.58.69 -s 2610:8:7800:20::66 | |
debug: Plugin output 1st line: 'DNS OK: 1.914 second response time. smith.ait.psu.edu returns 128.118.58.69|time=1.914483s;;;0.000000' | |
debug: Reformatted performance data: 'ipv6_a1_time=1.914483s;;;0.000000' | |
debug: Plugin result: 0 (OK) | |
debug: Doing protocol IPv4 | |
debug: Lookup of ns1.ems.psu.edu for 2 returned: 146.186.163.66 |
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
body common control { | |
bundlesequence => { "main" }; | |
} | |
bundle agent main { | |
vars: | |
"var1" string => "this is var1"; | |
"out1" string => string_mustache("{{vars.main.var1}}"); | |
"out2" string => string_mustache("{{vars.main.var2}}"); |
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
$ cf-agent -K -f `pwd`/test.cf | |
R: var1 = this is var1 | |
R: var2 = | |
R: var2 w/ default = default |
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
body common control { | |
bundlesequence => { "main" }; | |
} | |
bundle agent main { | |
vars: | |
"notempty" string => "foo"; | |
"notempty2" string => "bar"; | |
"data_string" string => string_mustache("not empty = {{vars.main.notempty}} ; empty = {{^vars.main.empty}}default{{/vars.main.empty}} ; not empty with default = {{^vars.main.notempty2}}default{{/vars.main.notempty2}}"); | |
reports: |
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
vars: | |
any:: | |
"el6_64_install_packages" slist => { | |
"cosign-psu-cgi", | |
"cosign-psu-factor-duo", | |
"jansson", | |
"perl-RPC-XML", | |
"perl-Crypt-SSLeay" | |
}; |
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
$ strace -fc -e trace=access curl 'https://www.google.com' > /dev/null | |
% Total % Received % Xferd Average Speed Time Time Time Current | |
Dload Upload Total Spent Left Speed | |
100 11576 0 11576 0 0 36381 0 --:--:-- --:--:-- --:--:-- 161k | |
% time seconds usecs/call calls errors syscall | |
------ ----------- ----------- --------- --------- ---------------- | |
100.00 0.000133 0 1506 1503 access | |
------ ----------- ----------- --------- --------- ---------------- | |
100.00 0.000133 1506 1503 total |
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
# Kerberos krb5kdc/kadmind/kpropd | |
if [program] == "kadmind" { | |
grok { | |
match => { "syslog_msg" => "^Request: %{DATA:kadmind_request}, client=%{DATA:kadmind_client}, service=%{DATA:kadmind_service}, addr=%{IP:kadmind_addr}$" } | |
match => { "syslog_msg" => "^%{DATA:kadmind_other}$" } | |
add_tag => [ "kadmind" ] | |
} | |
} | |
if [program] == "krb5kdc" { | |
grok { |
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
for key in .git-crypt/keys/default/0/* ; do gpg -k $(echo $(basename $key) | sed -e 's/.gpg//') ; done ; |
OlderNewer