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
graph "Java Virtual Machine Uptime" do | |
title "#{instance.title} - Uptime" | |
vlabel "Days" | |
category "Tomcat" | |
args "--base 1000 --lower-limit 0 --no-gridfit --slope-mode" | |
scale "no" | |
source "uptime" | |
source['uptime']['draw'] = 'LINE1' # Override default AREA ... | |
end |
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
source "uptime" do | |
label "Uptime" | |
info "Uptime in days" | |
type "GAUGE" | |
draw "AREA" | |
min "0" | |
mbean "java.lang:type=Runtime", "Uptime" | |
uptime = (data['value'].to_f / 1000) / 86400 |
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
Graph definition file: | |
graph "Uptime" do | |
title "Uptime - #{instance.title}" | |
vlabel "Days" | |
category "Tomcat" | |
args "--base 1000 --lower-limit 0 --slope-mode" | |
scale "no" | |
source "uptime" |
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
# | |
# random_crontab_minutes.rb | |
# | |
module Puppet::Parser::Functions | |
newfunction(:random_crontab_minutes, :type => :rvalue, :doc => <<-EOS | |
EOS | |
) do |arguments| | |
raise(Puppet::ParseError, "Wrong number of arguments " + |
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
# | |
# persistent_crontab_minutes.rb | |
# | |
module Puppet::Parser::Functions | |
newfunction(:persistent_crontab_minutes, :type => :rvalue, :doc => <<-EOS | |
EOS | |
) do |arguments| | |
raise(Puppet::ParseError, "Wrong number of arguments " + |
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
module Puppet::Parser::Functions | |
newfunction(:testfunction, :type => :rvalue) do |*a| | |
p a | |
p a.class | |
end | |
end | |
$a = inline_template("<%= scope.function_testfunction('a', 'b', 'c') %>") | |
$b = inline_template("<%= scope.function_testfunction('a') %>") | |
$c = inline_template("<%= scope.function_testfunction(['a', 'b', 'c']) %>") |
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
Package: rubygems-fpm | |
Version: 0.3.7 | |
Date: Thu, 18 Aug 2011 15:22:56 +0100 | |
Architecture: all | |
Maintainer: Jordan Sissel <[email protected]> | |
Uploaders: Krzysztof Wilczynski <[email protected]> | |
Standards-Version: 3.9.1 | |
Section: interpreters, languages, development | |
Priority: optional | |
Essential: no |
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
diff --git a/src/conntrack.c b/src/conntrack.c | |
index 5364eaa..2e3d654 100644 | |
--- a/src/conntrack.c | |
+++ b/src/conntrack.c | |
@@ -548,7 +548,7 @@ extension_help(struct ctproto_handler *h, int protonum) | |
static void __attribute__((noreturn)) | |
exit_tryhelp(int status) | |
{ | |
- fprintf(stderr, "Try `%s -h' or '%s --help' for more information.\n", | |
+ fprintf(stderr, "Try `%s -h' or `%s --help' for more information.\n", |
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
# | |
# exists.rb | |
# | |
# Copyright 2011 Puppet Labs Inc. | |
# Copyright 2011 Krzysztof Wilczynski | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# |
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 file_exists_notice { | |
$exists = exists($name) | |
notice "File ${name} exists: ${exists}" | |
} | |
file_exists_notice { '/etc/hosts': } | |
file_exists_notice { '/abc': } | |
notice: Scope(File_exists_notice[/etc/hosts]): File /etc/hosts exists: true | |
notice: Scope(File_exists_notice[/abc]): File /abc exists: false |