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: | |
"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
# ./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
## 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
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$" | |
} |
NewerOlder