From 2acd334aeccc25e2a16f763a48c6e86d929ded44 Mon Sep 17 00:00:00 2001 From: "Ruben S. Montero" Date: Thu, 10 Feb 2011 23:36:58 +0100 Subject: [PATCH] added license header to files --- src/mad/ruby/Ganglia.rb | 18 +++++++++++++++++- src/vmm_mad/remotes/poll_ganglia.rb | 16 ++++++++++++++++ 2 files changed, 33 insertions(+), 1 deletion(-) diff --git a/src/mad/ruby/Ganglia.rb b/src/mad/ruby/Ganglia.rb index 36448630cf..5929846e24 100644 --- a/src/mad/ruby/Ganglia.rb +++ b/src/mad/ruby/Ganglia.rb @@ -1,3 +1,18 @@ +# ----------------------------------------------------------------------------- +# Copyright 2002-2010, OpenNebula Project Leads (OpenNebula.org) +# +# 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 +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ----------------------------------------------------------------------------- require 'socket' require 'pp' @@ -11,8 +26,9 @@ rescue LoadError $nokogiri_enabled=false end - +# ----------------------------------------------------------------------------- # This class holds the parsing code of ganglia xml monitoring data +# ----------------------------------------------------------------------------- class GangliaHost # Gets monitoring data from ganglia or file diff --git a/src/vmm_mad/remotes/poll_ganglia.rb b/src/vmm_mad/remotes/poll_ganglia.rb index 81f20a9faa..b285517fb5 100755 --- a/src/vmm_mad/remotes/poll_ganglia.rb +++ b/src/vmm_mad/remotes/poll_ganglia.rb @@ -1,5 +1,21 @@ #!/usr/bin/env ruby +# ----------------------------------------------------------------------------- +# Copyright 2002-2010, OpenNebula Project Leads (OpenNebula.org) +# +# 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 +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ----------------------------------------------------------------------------- + # Adds current directory to the library search path (make the script # compatible with ruby 1.9.2) $: << '.'