diff --git a/monasca_agent/collector/checks/__init__.py b/monasca_agent/collector/checks/__init__.py index ade68955..fe8ef133 100644 --- a/monasca_agent/collector/checks/__init__.py +++ b/monasca_agent/collector/checks/__init__.py @@ -1,3 +1,15 @@ # (C) Copyright 2015 Hewlett Packard Enterprise Development Company LP +# +# 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. from check import AgentCheck # noqa diff --git a/monasca_agent/collector/checks/check.py b/monasca_agent/collector/checks/check.py index 222109a8..79f89462 100644 --- a/monasca_agent/collector/checks/check.py +++ b/monasca_agent/collector/checks/check.py @@ -1,4 +1,16 @@ # (C) Copyright 2015-2017 Hewlett Packard Enterprise Development LP +# 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. + """Base class for Checks. If you are writing your own checks you should subclass the AgentCheck class. diff --git a/monasca_agent/collector/checks/collector.py b/monasca_agent/collector/checks/collector.py index 9c8031b4..d0c92ac2 100644 --- a/monasca_agent/collector/checks/collector.py +++ b/monasca_agent/collector/checks/collector.py @@ -1,4 +1,15 @@ # (C) Copyright 2015-2017 Hewlett Packard Enterprise Development LP +# 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. # Core modules import logging diff --git a/monasca_agent/collector/checks/services_checks.py b/monasca_agent/collector/checks/services_checks.py index 5b22e656..5428c44f 100644 --- a/monasca_agent/collector/checks/services_checks.py +++ b/monasca_agent/collector/checks/services_checks.py @@ -1,4 +1,15 @@ # (C) Copyright 2015-2017 Hewlett Packard Enterprise Development Company LP +# 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. import collections from concurrent import futures diff --git a/monasca_agent/collector/checks/utils.py b/monasca_agent/collector/checks/utils.py index b07323d4..72918bca 100644 --- a/monasca_agent/collector/checks/utils.py +++ b/monasca_agent/collector/checks/utils.py @@ -1,6 +1,17 @@ # (C) Copyright 2015,2017-2018 Hewlett Packard Enterprise Development LP # (C) Copyright 2017 KylinCloud # Copyright 2018 OP5 AB +# 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. import base64 import json diff --git a/monasca_agent/collector/checks_d/a10_system_check.py b/monasca_agent/collector/checks_d/a10_system_check.py index 468614d2..09c9b79a 100644 --- a/monasca_agent/collector/checks_d/a10_system_check.py +++ b/monasca_agent/collector/checks_d/a10_system_check.py @@ -1,4 +1,15 @@ #!/usr/bin/python +# 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. import json from monasca_agent.collector.checks import AgentCheck diff --git a/monasca_agent/collector/checks_d/apache.py b/monasca_agent/collector/checks_d/apache.py index 038556b3..3194f1bc 100644 --- a/monasca_agent/collector/checks_d/apache.py +++ b/monasca_agent/collector/checks_d/apache.py @@ -1,4 +1,16 @@ # (C) Copyright 2015 Hewlett Packard Enterprise Development Company LP +# 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. + # stdlib import logging diff --git a/monasca_agent/collector/checks_d/cacti.py b/monasca_agent/collector/checks_d/cacti.py index ba6ef3a9..758d34f8 100644 --- a/monasca_agent/collector/checks_d/cacti.py +++ b/monasca_agent/collector/checks_d/cacti.py @@ -1,4 +1,15 @@ # (C) Copyright 2015 Hewlett Packard Enterprise Development Company LP +# 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. from collections import namedtuple import os diff --git a/monasca_agent/collector/checks_d/cadvisor_host.py b/monasca_agent/collector/checks_d/cadvisor_host.py index b886bb55..002a5523 100644 --- a/monasca_agent/collector/checks_d/cadvisor_host.py +++ b/monasca_agent/collector/checks_d/cadvisor_host.py @@ -1,4 +1,16 @@ # (C) Copyright 2017 Hewlett Packard Enterprise Development LP +# 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. + import requests from urlparse import urlparse diff --git a/monasca_agent/collector/checks_d/cert_check.py b/monasca_agent/collector/checks_d/cert_check.py index 33157685..e111825d 100644 --- a/monasca_agent/collector/checks_d/cert_check.py +++ b/monasca_agent/collector/checks_d/cert_check.py @@ -1,4 +1,15 @@ # (C) Copyright 2016 Hewlett Packard Enterprise Development LP +# 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. from datetime import datetime import socket diff --git a/monasca_agent/collector/checks_d/congestion.py b/monasca_agent/collector/checks_d/congestion.py index c9c7f1a9..84015da1 100644 --- a/monasca_agent/collector/checks_d/congestion.py +++ b/monasca_agent/collector/checks_d/congestion.py @@ -1,6 +1,16 @@ #!/bin/env python - # Copyright 2017 OrangeLabs +# 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. from copy import deepcopy import json diff --git a/monasca_agent/collector/checks_d/couch.py b/monasca_agent/collector/checks_d/couch.py index f0a9f796..19739ae8 100644 --- a/monasca_agent/collector/checks_d/couch.py +++ b/monasca_agent/collector/checks_d/couch.py @@ -1,4 +1,15 @@ # (C) Copyright 2015 Hewlett Packard Enterprise Development Company LP +# 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. import json import urllib2 diff --git a/monasca_agent/collector/checks_d/couchbase.py b/monasca_agent/collector/checks_d/couchbase.py index 1b09dfbd..235d66fb 100644 --- a/monasca_agent/collector/checks_d/couchbase.py +++ b/monasca_agent/collector/checks_d/couchbase.py @@ -1,4 +1,15 @@ # (C) Copyright 2015 Hewlett Packard Enterprise Development Company LP +# 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. import json import re diff --git a/monasca_agent/collector/checks_d/cpu.py b/monasca_agent/collector/checks_d/cpu.py index 73f041c1..36d2476b 100644 --- a/monasca_agent/collector/checks_d/cpu.py +++ b/monasca_agent/collector/checks_d/cpu.py @@ -1,4 +1,15 @@ # (C) Copyright 2015-2016 Hewlett Packard Enterprise Development Company LP +# 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. import logging import re diff --git a/monasca_agent/collector/checks_d/crash.py b/monasca_agent/collector/checks_d/crash.py index 24eef203..48769420 100644 --- a/monasca_agent/collector/checks_d/crash.py +++ b/monasca_agent/collector/checks_d/crash.py @@ -1,4 +1,15 @@ # (C) Copyright 2015-2016 Hewlett Packard Enterprise Development LP +# 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. import logging import os diff --git a/monasca_agent/collector/checks_d/directory.py b/monasca_agent/collector/checks_d/directory.py index 48897cab..a29c6dce 100644 --- a/monasca_agent/collector/checks_d/directory.py +++ b/monasca_agent/collector/checks_d/directory.py @@ -1,4 +1,15 @@ # (C) Copyright 2015-2016 Hewlett Packard Enterprise Development Company LP +# 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. from monasca_agent.collector.checks import AgentCheck from os.path import abspath diff --git a/monasca_agent/collector/checks_d/disk.py b/monasca_agent/collector/checks_d/disk.py index cc1d3d46..f215fbe0 100644 --- a/monasca_agent/collector/checks_d/disk.py +++ b/monasca_agent/collector/checks_d/disk.py @@ -1,4 +1,15 @@ # (C) Copyright 2015-2016 Hewlett Packard Enterprise Development Company LP +# 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. import logging import os diff --git a/monasca_agent/collector/checks_d/docker.py b/monasca_agent/collector/checks_d/docker.py index dfb4b95c..d177f05a 100644 --- a/monasca_agent/collector/checks_d/docker.py +++ b/monasca_agent/collector/checks_d/docker.py @@ -1,4 +1,15 @@ # (C) Copyright 2015,2016 Hewlett Packard Enterprise Development LP +# 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. from __future__ import absolute_import diff --git a/monasca_agent/collector/checks_d/elastic.py b/monasca_agent/collector/checks_d/elastic.py index 75745724..e241c269 100644 --- a/monasca_agent/collector/checks_d/elastic.py +++ b/monasca_agent/collector/checks_d/elastic.py @@ -1,4 +1,15 @@ # (C) Copyright 2015,2016 Hewlett Packard Enterprise Development Company LP +# 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. import json import socket diff --git a/monasca_agent/collector/checks_d/file_size.py b/monasca_agent/collector/checks_d/file_size.py index 6d5cb71e..1bb59a24 100644 --- a/monasca_agent/collector/checks_d/file_size.py +++ b/monasca_agent/collector/checks_d/file_size.py @@ -1,4 +1,15 @@ # (C) Copyright 2016 Hewlett Packard Enterprise Development Company LP +# 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. from os.path import abspath from os.path import exists diff --git a/monasca_agent/collector/checks_d/gunicorn.py b/monasca_agent/collector/checks_d/gunicorn.py index 53423a8f..2226f3e5 100644 --- a/monasca_agent/collector/checks_d/gunicorn.py +++ b/monasca_agent/collector/checks_d/gunicorn.py @@ -1,4 +1,15 @@ # (C) Copyright 2015 Hewlett Packard Enterprise Development Company LP +# 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. """Collects metrics from the gunicorn web server. diff --git a/monasca_agent/collector/checks_d/haproxy.py b/monasca_agent/collector/checks_d/haproxy.py index 3214bad2..986d20c8 100644 --- a/monasca_agent/collector/checks_d/haproxy.py +++ b/monasca_agent/collector/checks_d/haproxy.py @@ -1,4 +1,15 @@ # (C) Copyright 2015,2016 Hewlett Packard Enterprise Development Company LP +# 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. from collections import defaultdict import urllib2 diff --git a/monasca_agent/collector/checks_d/hdfs.py b/monasca_agent/collector/checks_d/hdfs.py index a46f9216..c5103c5f 100644 --- a/monasca_agent/collector/checks_d/hdfs.py +++ b/monasca_agent/collector/checks_d/hdfs.py @@ -1,4 +1,15 @@ # (C) Copyright 2015,2016 Hewlett Packard Enterprise Development Company LP +# 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. from monasca_agent.collector.checks import AgentCheck diff --git a/monasca_agent/collector/checks_d/host_alive.py b/monasca_agent/collector/checks_d/host_alive.py index f4df1ddf..551230df 100644 --- a/monasca_agent/collector/checks_d/host_alive.py +++ b/monasca_agent/collector/checks_d/host_alive.py @@ -1,5 +1,17 @@ #!/bin/env python # (C) Copyright 2015,2016 Hewlett Packard Enterprise Development LP +# 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. + """Monitoring Agent remote host aliveness checker. """ diff --git a/monasca_agent/collector/checks_d/http_check.py b/monasca_agent/collector/checks_d/http_check.py index 6aaf80d5..5a73cffa 100644 --- a/monasca_agent/collector/checks_d/http_check.py +++ b/monasca_agent/collector/checks_d/http_check.py @@ -1,5 +1,17 @@ #!/bin/env python # (C) Copyright 2015-2016 Hewlett Packard Enterprise Development LP +# 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. + """Monitoring Agent plugin for HTTP/API checks. """ diff --git a/monasca_agent/collector/checks_d/http_metrics.py b/monasca_agent/collector/checks_d/http_metrics.py index 3c2d772d..e2539677 100644 --- a/monasca_agent/collector/checks_d/http_metrics.py +++ b/monasca_agent/collector/checks_d/http_metrics.py @@ -1,5 +1,17 @@ #!/bin/env python # (C) Copyright 2015-2016 Hewlett Packard Enterprise Development LP +# 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. + """Monitoring Agent plugin for HTTP/API checks. """ diff --git a/monasca_agent/collector/checks_d/iis.py b/monasca_agent/collector/checks_d/iis.py index d24991a0..a6735af2 100644 --- a/monasca_agent/collector/checks_d/iis.py +++ b/monasca_agent/collector/checks_d/iis.py @@ -1,4 +1,16 @@ # (C) Copyright 2015 Hewlett Packard Enterprise Development Company LP +# 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. + ''' Check the performance counters from IIS ''' diff --git a/monasca_agent/collector/checks_d/jenkins.py b/monasca_agent/collector/checks_d/jenkins.py index c4f8cfad..64075f45 100644 --- a/monasca_agent/collector/checks_d/jenkins.py +++ b/monasca_agent/collector/checks_d/jenkins.py @@ -1,4 +1,15 @@ # (C) Copyright 2015,2016 Hewlett Packard Enterprise Development Company LP +# 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. from collections import defaultdict from glob import glob diff --git a/monasca_agent/collector/checks_d/json_plugin.py b/monasca_agent/collector/checks_d/json_plugin.py index 0561a4f8..99f4066b 100644 --- a/monasca_agent/collector/checks_d/json_plugin.py +++ b/monasca_agent/collector/checks_d/json_plugin.py @@ -1,5 +1,15 @@ # (C) Copyright 2016 Hewlett Packard Enterprise Development LP - +# 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. from copy import deepcopy import errno diff --git a/monasca_agent/collector/checks_d/kafka_consumer.py b/monasca_agent/collector/checks_d/kafka_consumer.py index 08b7379a..da9a3f98 100644 --- a/monasca_agent/collector/checks_d/kafka_consumer.py +++ b/monasca_agent/collector/checks_d/kafka_consumer.py @@ -1,4 +1,15 @@ # (C) Copyright 2015-2016 Hewlett Packard Enterprise Development Company LP +# 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. import collections import logging diff --git a/monasca_agent/collector/checks_d/kubernetes.py b/monasca_agent/collector/checks_d/kubernetes.py index e683d1ef..6092a1c6 100644 --- a/monasca_agent/collector/checks_d/kubernetes.py +++ b/monasca_agent/collector/checks_d/kubernetes.py @@ -1,4 +1,16 @@ # (C) Copyright 2017,2018 Hewlett Packard Enterprise Development LP +# 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. + import logging import requests diff --git a/monasca_agent/collector/checks_d/kubernetes_api.py b/monasca_agent/collector/checks_d/kubernetes_api.py index c7f8f487..d5b9eb8f 100644 --- a/monasca_agent/collector/checks_d/kubernetes_api.py +++ b/monasca_agent/collector/checks_d/kubernetes_api.py @@ -1,4 +1,16 @@ # (C) Copyright 2017 Hewlett Packard Enterprise Development LP +# 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. + import requests from monasca_agent.collector import checks diff --git a/monasca_agent/collector/checks_d/kyototycoon.py b/monasca_agent/collector/checks_d/kyototycoon.py index 319e64e4..1f0db992 100644 --- a/monasca_agent/collector/checks_d/kyototycoon.py +++ b/monasca_agent/collector/checks_d/kyototycoon.py @@ -1,4 +1,15 @@ # (C) Copyright 2015 Hewlett Packard Enterprise Development Company LP +# 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. from collections import defaultdict import re diff --git a/monasca_agent/collector/checks_d/lighttpd.py b/monasca_agent/collector/checks_d/lighttpd.py index 11482601..3dd33b2a 100644 --- a/monasca_agent/collector/checks_d/lighttpd.py +++ b/monasca_agent/collector/checks_d/lighttpd.py @@ -1,4 +1,15 @@ # (C) Copyright 2015 Hewlett Packard Enterprise Development Company LP +# 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. import urllib2 diff --git a/monasca_agent/collector/checks_d/load.py b/monasca_agent/collector/checks_d/load.py index cd137e43..4c589d9a 100644 --- a/monasca_agent/collector/checks_d/load.py +++ b/monasca_agent/collector/checks_d/load.py @@ -1,4 +1,15 @@ # (C) Copyright 2015 Hewlett Packard Enterprise Development Company LP +# 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. import logging import re diff --git a/monasca_agent/collector/checks_d/mcache.py b/monasca_agent/collector/checks_d/mcache.py index ad191fc0..367d33fc 100644 --- a/monasca_agent/collector/checks_d/mcache.py +++ b/monasca_agent/collector/checks_d/mcache.py @@ -1,4 +1,15 @@ # (C) Copyright 2015 Hewlett Packard Enterprise Development Company LP +# 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. from monasca_agent.collector.checks import AgentCheck diff --git a/monasca_agent/collector/checks_d/memory.py b/monasca_agent/collector/checks_d/memory.py index 0439cede..9b6f0a5c 100644 --- a/monasca_agent/collector/checks_d/memory.py +++ b/monasca_agent/collector/checks_d/memory.py @@ -1,4 +1,15 @@ # (C) Copyright 2015 Hewlett Packard Enterprise Development Company LP +# 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. import logging import psutil diff --git a/monasca_agent/collector/checks_d/mongo.py b/monasca_agent/collector/checks_d/mongo.py index a6bb2f7f..8eb41d44 100644 --- a/monasca_agent/collector/checks_d/mongo.py +++ b/monasca_agent/collector/checks_d/mongo.py @@ -1,4 +1,15 @@ # (C) Copyright 2015,2016 Hewlett Packard Enterprise Development Company LP +# 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. import re import types diff --git a/monasca_agent/collector/checks_d/mysql.py b/monasca_agent/collector/checks_d/mysql.py index 12fca836..12ba4f08 100644 --- a/monasca_agent/collector/checks_d/mysql.py +++ b/monasca_agent/collector/checks_d/mysql.py @@ -1,4 +1,15 @@ # (C) Copyright 2015,2016 Hewlett Packard Enterprise Development Company LP +# 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. import os import re diff --git a/monasca_agent/collector/checks_d/nagios_wrapper.py b/monasca_agent/collector/checks_d/nagios_wrapper.py index 2cc4d1d6..f3bbcd72 100644 --- a/monasca_agent/collector/checks_d/nagios_wrapper.py +++ b/monasca_agent/collector/checks_d/nagios_wrapper.py @@ -1,5 +1,17 @@ #!/bin/env python # (C) Copyright 2015,2016Hewlett Packard Enterprise Development Company LP +# 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. + """Monasca Agent wrapper for Nagios checks. """ diff --git a/monasca_agent/collector/checks_d/network.py b/monasca_agent/collector/checks_d/network.py index b0a60fd9..3affa20d 100644 --- a/monasca_agent/collector/checks_d/network.py +++ b/monasca_agent/collector/checks_d/network.py @@ -1,4 +1,16 @@ # (C) Copyright 2015 Hewlett Packard Enterprise Development Company LP +# 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. + # stdlib import logging import psutil diff --git a/monasca_agent/collector/checks_d/nginx.py b/monasca_agent/collector/checks_d/nginx.py index 2eb15395..423fe88b 100644 --- a/monasca_agent/collector/checks_d/nginx.py +++ b/monasca_agent/collector/checks_d/nginx.py @@ -1,4 +1,15 @@ # (C) Copyright 2015 Hewlett Packard Enterprise Development Company LP +# 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. import re import urllib2 diff --git a/monasca_agent/collector/checks_d/ntp.py b/monasca_agent/collector/checks_d/ntp.py index 7c9d45da..88490b62 100644 --- a/monasca_agent/collector/checks_d/ntp.py +++ b/monasca_agent/collector/checks_d/ntp.py @@ -1,4 +1,15 @@ # (C) Copyright 2015,2016 Hewlett Packard Enterprise Development LP +# 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. import ntplib diff --git a/monasca_agent/collector/checks_d/ovs.py b/monasca_agent/collector/checks_d/ovs.py index 124ce1df..a14a65ae 100644 --- a/monasca_agent/collector/checks_d/ovs.py +++ b/monasca_agent/collector/checks_d/ovs.py @@ -1,7 +1,17 @@ #!/bin/env python - # (C) Copyright 2016 Hewlett Packard Enterprise Development Company LP # Copyright 2017 Fujitsu LIMITED +# 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. from copy import deepcopy import json diff --git a/monasca_agent/collector/checks_d/postfix.py b/monasca_agent/collector/checks_d/postfix.py index 14a452cd..1938af1f 100644 --- a/monasca_agent/collector/checks_d/postfix.py +++ b/monasca_agent/collector/checks_d/postfix.py @@ -1,4 +1,15 @@ # (c) Copyright 2015-2016 Hewlett Packard Enterprise Development Company LP +# 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. import os diff --git a/monasca_agent/collector/checks_d/postgres.py b/monasca_agent/collector/checks_d/postgres.py index f96fd56a..825cbbbf 100644 --- a/monasca_agent/collector/checks_d/postgres.py +++ b/monasca_agent/collector/checks_d/postgres.py @@ -1,4 +1,15 @@ # (C) Copyright 2015 Hewlett Packard Enterprise Development Company LP +# 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. from monasca_agent.collector.checks import AgentCheck from monasca_agent.common.exceptions import CheckException diff --git a/monasca_agent/collector/checks_d/process.py b/monasca_agent/collector/checks_d/process.py index 4697f9e8..177b2d00 100644 --- a/monasca_agent/collector/checks_d/process.py +++ b/monasca_agent/collector/checks_d/process.py @@ -1,4 +1,16 @@ # (C) Copyright 2015-2016 Hewlett Packard Enterprise Development Company LP +# 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. + """Gather metrics on specific processes. """ diff --git a/monasca_agent/collector/checks_d/prometheus.py b/monasca_agent/collector/checks_d/prometheus.py index 7025d16b..e6f3fe85 100644 --- a/monasca_agent/collector/checks_d/prometheus.py +++ b/monasca_agent/collector/checks_d/prometheus.py @@ -1,4 +1,16 @@ # (C) Copyright 2017-2018 Hewlett Packard Enterprise Development LP +# 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. + import math import requests import time diff --git a/monasca_agent/collector/checks_d/rabbitmq.py b/monasca_agent/collector/checks_d/rabbitmq.py index c118529b..3fac3c8c 100644 --- a/monasca_agent/collector/checks_d/rabbitmq.py +++ b/monasca_agent/collector/checks_d/rabbitmq.py @@ -1,4 +1,15 @@ # (C) Copyright 2015,2016 Hewlett Packard Enterprise Development Company LP +# 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. import json import re diff --git a/monasca_agent/collector/checks_d/redisdb.py b/monasca_agent/collector/checks_d/redisdb.py index 2bc02530..bf7ebb2c 100644 --- a/monasca_agent/collector/checks_d/redisdb.py +++ b/monasca_agent/collector/checks_d/redisdb.py @@ -1,4 +1,16 @@ # (C) Copyright 2015 Hewlett Packard Enterprise Development Company LP +# 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. + """Redis checks. """ diff --git a/monasca_agent/collector/checks_d/riak.py b/monasca_agent/collector/checks_d/riak.py index b06f5165..70c7e2b4 100644 --- a/monasca_agent/collector/checks_d/riak.py +++ b/monasca_agent/collector/checks_d/riak.py @@ -1,4 +1,15 @@ # (C) Copyright 2015,2016 Hewlett Packard Enterprise Development Company LP +# 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. from httplib2 import Http from httplib2 import HttpLib2Error diff --git a/monasca_agent/collector/checks_d/solidfire.py b/monasca_agent/collector/checks_d/solidfire.py index 5f4bace0..e9cee92d 100644 --- a/monasca_agent/collector/checks_d/solidfire.py +++ b/monasca_agent/collector/checks_d/solidfire.py @@ -1,3 +1,15 @@ +# 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. + import json import logging import time diff --git a/monasca_agent/collector/checks_d/sqlserver.py b/monasca_agent/collector/checks_d/sqlserver.py index e905d5df..ddcb781b 100644 --- a/monasca_agent/collector/checks_d/sqlserver.py +++ b/monasca_agent/collector/checks_d/sqlserver.py @@ -1,4 +1,16 @@ # (C) Copyright 2015-2016 Hewlett Packard Enterprise Development LP +# 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. + """Check the performance counters from SQL Server. """ diff --git a/monasca_agent/collector/checks_d/swift_diags.py b/monasca_agent/collector/checks_d/swift_diags.py index e3f25483..3f4bee05 100644 --- a/monasca_agent/collector/checks_d/swift_diags.py +++ b/monasca_agent/collector/checks_d/swift_diags.py @@ -1,4 +1,15 @@ # (C) Copyright 2015 Hewlett Packard Enterprise Development Company LP +# 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. import json import logging diff --git a/monasca_agent/collector/checks_d/tcp_check.py b/monasca_agent/collector/checks_d/tcp_check.py index 230e9359..ac2ae98a 100644 --- a/monasca_agent/collector/checks_d/tcp_check.py +++ b/monasca_agent/collector/checks_d/tcp_check.py @@ -1,4 +1,15 @@ # (C) Copyright 2015,2016 Hewlett Packard Enterprise Development Company LP +# 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. import socket import time diff --git a/monasca_agent/collector/checks_d/varnish.py b/monasca_agent/collector/checks_d/varnish.py index 06d6a7b1..341f708b 100644 --- a/monasca_agent/collector/checks_d/varnish.py +++ b/monasca_agent/collector/checks_d/varnish.py @@ -1,4 +1,15 @@ # (C) Copyright 2015 Hewlett Packard Enterprise Development Company LP +# 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. import re import subprocess diff --git a/monasca_agent/collector/checks_d/vcenter.py b/monasca_agent/collector/checks_d/vcenter.py index 98a21a72..b70eff69 100644 --- a/monasca_agent/collector/checks_d/vcenter.py +++ b/monasca_agent/collector/checks_d/vcenter.py @@ -1,4 +1,16 @@ # (C) Copyright 2016-2017 Hewlett Packard Enterprise Development LP +# 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. + """VCenter Only. Generic VCenter check. This check allows you to specify particular metrics that diff --git a/monasca_agent/collector/checks_d/vertica.py b/monasca_agent/collector/checks_d/vertica.py index dc425af7..8781e816 100644 --- a/monasca_agent/collector/checks_d/vertica.py +++ b/monasca_agent/collector/checks_d/vertica.py @@ -1,4 +1,15 @@ # (C) Copyright 2016 Hewlett Packard Enterprise Development LP +# 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. import monasca_agent.collector.checks as checks from monasca_agent.common.util import timeout_command diff --git a/monasca_agent/collector/checks_d/wmi_check.py b/monasca_agent/collector/checks_d/wmi_check.py index 36c8377e..130c7993 100644 --- a/monasca_agent/collector/checks_d/wmi_check.py +++ b/monasca_agent/collector/checks_d/wmi_check.py @@ -1,4 +1,16 @@ # (C) Copyright 2015 Hewlett Packard Enterprise Development Company LP +# 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. + """Windows Only. Generic WMI check. This check allows you to specify particular metrics that you diff --git a/monasca_agent/collector/checks_d/zk.py b/monasca_agent/collector/checks_d/zk.py index e883ebf3..28ef03cd 100644 --- a/monasca_agent/collector/checks_d/zk.py +++ b/monasca_agent/collector/checks_d/zk.py @@ -1,4 +1,16 @@ # (C) Copyright 2015 Hewlett Packard Enterprise Development Company LP +# 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. + """Parses the response from zookeeper's `stat` admin command, which looks like: ``` diff --git a/monasca_agent/collector/daemon.py b/monasca_agent/collector/daemon.py index 33764e63..5432dc18 100644 --- a/monasca_agent/collector/daemon.py +++ b/monasca_agent/collector/daemon.py @@ -1,5 +1,16 @@ #!/usr/bin/env python # (C) Copyright 2015-2017 Hewlett Packard Enterprise Development LP +# 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. # Core modules import glob diff --git a/monasca_agent/collector/jmxfetch.py b/monasca_agent/collector/jmxfetch.py index 8c952dfc..887e4e56 100644 --- a/monasca_agent/collector/jmxfetch.py +++ b/monasca_agent/collector/jmxfetch.py @@ -1,4 +1,15 @@ # (C) Copyright 2015-2016 Hewlett Packard Enterprise Development LP +# 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. import glob import logging diff --git a/monasca_agent/common/aggregator.py b/monasca_agent/common/aggregator.py index 5e508d30..9ed9d8a2 100644 --- a/monasca_agent/common/aggregator.py +++ b/monasca_agent/common/aggregator.py @@ -1,4 +1,16 @@ # (C) Copyright 2015-2017 Hewlett Packard Enterprise Development LP +# 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. + """ Aggregation classes used by the collector and statsd to batch messages sent to the forwarder. """ import json diff --git a/monasca_agent/common/config.py b/monasca_agent/common/config.py index 7311eb1a..4b1d0bf3 100644 --- a/monasca_agent/common/config.py +++ b/monasca_agent/common/config.py @@ -1,5 +1,16 @@ # (C) Copyright 2015-2018 Hewlett Packard Enterprise Development LP # Copyright 2017 Fujitsu LIMITED +# 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. import logging import os diff --git a/monasca_agent/common/daemon.py b/monasca_agent/common/daemon.py index d26e9794..ad659934 100644 --- a/monasca_agent/common/daemon.py +++ b/monasca_agent/common/daemon.py @@ -1,4 +1,16 @@ # (C) Copyright 2015-2016 Hewlett Packard Enterprise Development Company LP +# 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. + """ *** Modified generic daemon class diff --git a/monasca_agent/common/emitter.py b/monasca_agent/common/emitter.py index db10a155..0c23d2d8 100644 --- a/monasca_agent/common/emitter.py +++ b/monasca_agent/common/emitter.py @@ -1,4 +1,15 @@ # (C) Copyright 2015-2016 Hewlett Packard Enterprise Development LP +# 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. from hashlib import md5 import json diff --git a/monasca_agent/common/exceptions.py b/monasca_agent/common/exceptions.py index b3878305..5c739cf0 100644 --- a/monasca_agent/common/exceptions.py +++ b/monasca_agent/common/exceptions.py @@ -1,4 +1,15 @@ # (C) Copyright 2015,2017 Hewlett Packard Enterprise Development LP +# 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. class Infinity(Exception): diff --git a/monasca_agent/common/keystone.py b/monasca_agent/common/keystone.py index dc997225..0e598852 100644 --- a/monasca_agent/common/keystone.py +++ b/monasca_agent/common/keystone.py @@ -1,5 +1,16 @@ # (C) Copyright 2015 Hewlett Packard Enterprise Development Company LP # Copyright 2017 Fujitsu LIMITED +# 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. import logging diff --git a/monasca_agent/common/metrics.py b/monasca_agent/common/metrics.py index b4e58ad6..f25d9e20 100644 --- a/monasca_agent/common/metrics.py +++ b/monasca_agent/common/metrics.py @@ -1,4 +1,16 @@ # (C) Copyright 2015-2016 Hewlett Packard Enterprise Development LP +# 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. + """ Metric data types """ import logging diff --git a/monasca_agent/common/singleton.py b/monasca_agent/common/singleton.py index e6bcd830..b5fcdfea 100644 --- a/monasca_agent/common/singleton.py +++ b/monasca_agent/common/singleton.py @@ -1,4 +1,15 @@ # (C) Copyright 2015 Hewlett Packard Enterprise Development Company LP +# 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. class Singleton(type): diff --git a/monasca_agent/common/util.py b/monasca_agent/common/util.py index 8ccf99f7..220b6b8d 100644 --- a/monasca_agent/common/util.py +++ b/monasca_agent/common/util.py @@ -1,4 +1,15 @@ # (C) Copyright 2015-2017 Hewlett Packard Enterprise Development LP +# 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. import argparse import glob diff --git a/monasca_agent/forwarder/api/monasca_api.py b/monasca_agent/forwarder/api/monasca_api.py index 54029236..836331c3 100644 --- a/monasca_agent/forwarder/api/monasca_api.py +++ b/monasca_agent/forwarder/api/monasca_api.py @@ -1,5 +1,17 @@ # (C) Copyright 2015-2016,2018 Hewlett Packard Enterprise Development LP # Copyright 2017 Fujitsu LIMITED +# +# 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. import collections import copy diff --git a/monasca_agent/forwarder/daemon.py b/monasca_agent/forwarder/daemon.py index e8cc27ba..2af77462 100644 --- a/monasca_agent/forwarder/daemon.py +++ b/monasca_agent/forwarder/daemon.py @@ -1,5 +1,17 @@ #!/usr/bin/env python # (C) Copyright 2015,2016 Hewlett Packard Enterprise Development LP +# +# 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. """ Licensed under Simplified BSD License (see LICENSE) (C) Boxed Ice 2010 all rights reserved diff --git a/monasca_agent/statsd/daemon.py b/monasca_agent/statsd/daemon.py index 4f8ba959..b4b9820d 100644 --- a/monasca_agent/statsd/daemon.py +++ b/monasca_agent/statsd/daemon.py @@ -1,5 +1,16 @@ #!/usr/bin/env python # (C) Copyright 2015,2016 Hewlett Packard Enterprise Development Company LP +# 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. """ A Python Statsd implementation with dimensions added diff --git a/monasca_agent/statsd/reporter.py b/monasca_agent/statsd/reporter.py index c84828f6..1a2c2abf 100644 --- a/monasca_agent/statsd/reporter.py +++ b/monasca_agent/statsd/reporter.py @@ -1,4 +1,15 @@ # (C) Copyright 2015,2016 Hewlett Packard Enterprise Development Company LP +# 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. import json import logging diff --git a/monasca_agent/statsd/udp.py b/monasca_agent/statsd/udp.py index c9fb5163..0c54a13c 100644 --- a/monasca_agent/statsd/udp.py +++ b/monasca_agent/statsd/udp.py @@ -1,4 +1,15 @@ # (C) Copyright 2015,2016 Hewlett Packard Enterprise Development LP +# 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. import ast import logging diff --git a/monasca_setup/agent_config.py b/monasca_setup/agent_config.py index 888900b2..668c80a2 100644 --- a/monasca_setup/agent_config.py +++ b/monasca_setup/agent_config.py @@ -1,4 +1,15 @@ # (C) Copyright 2015-2016 Hewlett Packard Enterprise Development LP +# 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. """Classes to aid in configuration of the agent.""" diff --git a/monasca_setup/detection/__init__.py b/monasca_setup/detection/__init__.py index 894902d3..a528a2a4 100644 --- a/monasca_setup/detection/__init__.py +++ b/monasca_setup/detection/__init__.py @@ -1,4 +1,15 @@ # (C) Copyright 2015,2016 Hewlett Packard Enterprise Development Company LP +# 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. from args_plugin import ArgsPlugin # noqa from plugin import Plugin # noqa diff --git a/monasca_setup/detection/args_plugin.py b/monasca_setup/detection/args_plugin.py index 59a9e711..ef2efca3 100644 --- a/monasca_setup/detection/args_plugin.py +++ b/monasca_setup/detection/args_plugin.py @@ -1,4 +1,15 @@ # (C) Copyright 2015 Hewlett Packard Enterprise Development Company LP +# 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. import logging diff --git a/monasca_setup/detection/plugin.py b/monasca_setup/detection/plugin.py index fa3f542f..b11b7e58 100644 --- a/monasca_setup/detection/plugin.py +++ b/monasca_setup/detection/plugin.py @@ -1,4 +1,15 @@ # (C) Copyright 2015 Hewlett Packard Enterprise Development Company LP +# 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. """Classes for detection of running resources to be monitored. diff --git a/monasca_setup/detection/plugins/apache.py b/monasca_setup/detection/plugins/apache.py index 292a2ef6..8a2d26a2 100644 --- a/monasca_setup/detection/plugins/apache.py +++ b/monasca_setup/detection/plugins/apache.py @@ -1,4 +1,15 @@ # (C) Copyright 2015,2016 Hewlett Packard Enterprise Development Company LP +# 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. import logging import os diff --git a/monasca_setup/detection/plugins/barbican.py b/monasca_setup/detection/plugins/barbican.py index 157a690a..d90d831d 100644 --- a/monasca_setup/detection/plugins/barbican.py +++ b/monasca_setup/detection/plugins/barbican.py @@ -1,3 +1,15 @@ +# 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. + import monasca_setup.detection diff --git a/monasca_setup/detection/plugins/cassandra.py b/monasca_setup/detection/plugins/cassandra.py index e0c5e73b..ab72b171 100644 --- a/monasca_setup/detection/plugins/cassandra.py +++ b/monasca_setup/detection/plugins/cassandra.py @@ -1,4 +1,3 @@ - # Copyright 2018 SUSE LLC # # Licensed under the Apache License, Version 2.0 (the "License"); you may diff --git a/monasca_setup/detection/plugins/ceilometer.py b/monasca_setup/detection/plugins/ceilometer.py index e8779cbf..9a4b8654 100644 --- a/monasca_setup/detection/plugins/ceilometer.py +++ b/monasca_setup/detection/plugins/ceilometer.py @@ -1,4 +1,15 @@ # (C) Copyright 2015 Hewlett Packard Enterprise Development Company LP +# 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. import monasca_setup.detection diff --git a/monasca_setup/detection/plugins/cert_check.py b/monasca_setup/detection/plugins/cert_check.py index 8915016d..fc080f68 100644 --- a/monasca_setup/detection/plugins/cert_check.py +++ b/monasca_setup/detection/plugins/cert_check.py @@ -1,4 +1,15 @@ # (C) Copyright 2016 Hewlett Packard Enterprise Development LP +# 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. import logging diff --git a/monasca_setup/detection/plugins/check_mk_local.py b/monasca_setup/detection/plugins/check_mk_local.py index 2715d5d6..a5001879 100644 --- a/monasca_setup/detection/plugins/check_mk_local.py +++ b/monasca_setup/detection/plugins/check_mk_local.py @@ -1,4 +1,15 @@ # (C) Copyright 2015 Hewlett Packard Enterprise Development Company LP +# 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. """Detection plugin for the existence of check_mk_agent, whose <<>> check output may parsed for metrics.""" diff --git a/monasca_setup/detection/plugins/cinder.py b/monasca_setup/detection/plugins/cinder.py index 3cf0d401..849fc9c9 100644 --- a/monasca_setup/detection/plugins/cinder.py +++ b/monasca_setup/detection/plugins/cinder.py @@ -1,4 +1,15 @@ # (C) Copyright 2015 Hewlett Packard Enterprise Development Company LP +# 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. import monasca_setup.detection diff --git a/monasca_setup/detection/plugins/congestion.py b/monasca_setup/detection/plugins/congestion.py index 602d7d89..aed91340 100644 --- a/monasca_setup/detection/plugins/congestion.py +++ b/monasca_setup/detection/plugins/congestion.py @@ -1,4 +1,15 @@ # Copyright 2017 OrangeLabs +# 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. import ConfigParser import logging diff --git a/monasca_setup/detection/plugins/crash.py b/monasca_setup/detection/plugins/crash.py index de66b50b..ffdf31d6 100644 --- a/monasca_setup/detection/plugins/crash.py +++ b/monasca_setup/detection/plugins/crash.py @@ -1,4 +1,15 @@ # (C) Copyright 2015 Hewlett Packard Enterprise Development Company LP +# 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. import logging import os diff --git a/monasca_setup/detection/plugins/cue.py b/monasca_setup/detection/plugins/cue.py index 97bea3ef..0ab271d8 100644 --- a/monasca_setup/detection/plugins/cue.py +++ b/monasca_setup/detection/plugins/cue.py @@ -1,4 +1,15 @@ # (C) Copyright 2015 Hewlett Packard Enterprise Development Company LP +# 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. import monasca_setup.detection diff --git a/monasca_setup/detection/plugins/designate.py b/monasca_setup/detection/plugins/designate.py index b79d4e4a..17db0a58 100644 --- a/monasca_setup/detection/plugins/designate.py +++ b/monasca_setup/detection/plugins/designate.py @@ -1,3 +1,15 @@ +# 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. + import monasca_setup.detection diff --git a/monasca_setup/detection/plugins/directory.py b/monasca_setup/detection/plugins/directory.py index 107073d5..a827632e 100644 --- a/monasca_setup/detection/plugins/directory.py +++ b/monasca_setup/detection/plugins/directory.py @@ -1,4 +1,15 @@ # (C) Copyright 2016 Hewlett Packard Enterprise Development Company LP +# 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. import monasca_setup.detection diff --git a/monasca_setup/detection/plugins/file_size.py b/monasca_setup/detection/plugins/file_size.py index f30ad59a..9fffec93 100644 --- a/monasca_setup/detection/plugins/file_size.py +++ b/monasca_setup/detection/plugins/file_size.py @@ -1,4 +1,15 @@ # (C) Copyright 2016 Hewlett Packard Enterprise Development Company LP +# 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. import monasca_setup.detection diff --git a/monasca_setup/detection/plugins/freezer.py b/monasca_setup/detection/plugins/freezer.py index 6b13f4b7..8034ad07 100644 --- a/monasca_setup/detection/plugins/freezer.py +++ b/monasca_setup/detection/plugins/freezer.py @@ -1,4 +1,15 @@ # (C) Copyright 2016 Hewlett Packard Enterprise Development LP +# 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. import monasca_setup.detection diff --git a/monasca_setup/detection/plugins/glance.py b/monasca_setup/detection/plugins/glance.py index 1407aa24..4014a595 100644 --- a/monasca_setup/detection/plugins/glance.py +++ b/monasca_setup/detection/plugins/glance.py @@ -1,4 +1,15 @@ # (C) Copyright 2015 Hewlett Packard Enterprise Development Company LP +# 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. import monasca_setup.detection diff --git a/monasca_setup/detection/plugins/haproxy.py b/monasca_setup/detection/plugins/haproxy.py index 77eecfc5..5239387d 100644 --- a/monasca_setup/detection/plugins/haproxy.py +++ b/monasca_setup/detection/plugins/haproxy.py @@ -1,4 +1,15 @@ # (C) Copyright 2015 Hewlett Packard Enterprise Development Company LP +# 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. import logging import os diff --git a/monasca_setup/detection/plugins/heat.py b/monasca_setup/detection/plugins/heat.py index 97b72c56..0d242bb4 100644 --- a/monasca_setup/detection/plugins/heat.py +++ b/monasca_setup/detection/plugins/heat.py @@ -1,4 +1,15 @@ # (C) Copyright 2015 Hewlett Packard Enterprise Development Company LP +# 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. import monasca_setup.detection diff --git a/monasca_setup/detection/plugins/host_alive.py b/monasca_setup/detection/plugins/host_alive.py index 2e8695cd..a2222e30 100644 --- a/monasca_setup/detection/plugins/host_alive.py +++ b/monasca_setup/detection/plugins/host_alive.py @@ -1,4 +1,15 @@ # (C) Copyright 2015,2016 Hewlett Packard Enterprise Development LP +# 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. import logging diff --git a/monasca_setup/detection/plugins/http_check.py b/monasca_setup/detection/plugins/http_check.py index e15ff01a..f8d830e9 100644 --- a/monasca_setup/detection/plugins/http_check.py +++ b/monasca_setup/detection/plugins/http_check.py @@ -1,4 +1,15 @@ # (C) Copyright 2015-2016 Hewlett Packard Enterprise Development Company LP +# 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. import ast diff --git a/monasca_setup/detection/plugins/ironic.py b/monasca_setup/detection/plugins/ironic.py index 9cf29003..fd869e22 100644 --- a/monasca_setup/detection/plugins/ironic.py +++ b/monasca_setup/detection/plugins/ironic.py @@ -1,3 +1,15 @@ +# 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. + import logging import monasca_setup.detection diff --git a/monasca_setup/detection/plugins/json_plugin.py b/monasca_setup/detection/plugins/json_plugin.py index 39d9f039..891b87ba 100644 --- a/monasca_setup/detection/plugins/json_plugin.py +++ b/monasca_setup/detection/plugins/json_plugin.py @@ -1,4 +1,15 @@ # (c) Copyright 2016 Hewlett Packard Enterprise Development LP +# 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. from monasca_setup import agent_config import monasca_setup.detection diff --git a/monasca_setup/detection/plugins/kafka_consumer.py b/monasca_setup/detection/plugins/kafka_consumer.py index bed29e34..70f5eb08 100644 --- a/monasca_setup/detection/plugins/kafka_consumer.py +++ b/monasca_setup/detection/plugins/kafka_consumer.py @@ -1,5 +1,16 @@ # (C) Copyright 2015,2016 Hewlett Packard Enterprise Development LP # Copyright 2016-2017 FUJITSU LIMITED +# 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. import logging from os import path diff --git a/monasca_setup/detection/plugins/keystone.py b/monasca_setup/detection/plugins/keystone.py index 369003a1..b00ab266 100644 --- a/monasca_setup/detection/plugins/keystone.py +++ b/monasca_setup/detection/plugins/keystone.py @@ -1,4 +1,15 @@ # (C) Copyright 2015 Hewlett Packard Enterprise Development Company LP +# 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. import monasca_setup.detection diff --git a/monasca_setup/detection/plugins/libvirt.py b/monasca_setup/detection/plugins/libvirt.py index 6dc19d00..0d9b510d 100644 --- a/monasca_setup/detection/plugins/libvirt.py +++ b/monasca_setup/detection/plugins/libvirt.py @@ -1,6 +1,17 @@ # (c) Copyright 2015-2016 Hewlett Packard Enterprise Development LP # Copyright 2017 Fujitsu LIMITED # Copyright 2017 SUSE Linux GmbH +# 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. import logging import os diff --git a/monasca_setup/detection/plugins/magnum.py b/monasca_setup/detection/plugins/magnum.py index 05d0120f..80645f7b 100644 --- a/monasca_setup/detection/plugins/magnum.py +++ b/monasca_setup/detection/plugins/magnum.py @@ -1,3 +1,14 @@ +# 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. ################################################################ # # Copyright (c) 2017 SUSE Linux Products GmbH diff --git a/monasca_setup/detection/plugins/mk_livestatus.py b/monasca_setup/detection/plugins/mk_livestatus.py index e29dc9b6..f280d416 100644 --- a/monasca_setup/detection/plugins/mk_livestatus.py +++ b/monasca_setup/detection/plugins/mk_livestatus.py @@ -1,4 +1,15 @@ # (C) Copyright 2015 Hewlett Packard Enterprise Development Company LP +# 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. """Detection Plugin for MK_Livestatus Nagios/Icinga Event Broker Module This monasca_setup detection plugin will determine if either Nagios or diff --git a/monasca_setup/detection/plugins/mon.py b/monasca_setup/detection/plugins/mon.py index e9add74a..aa8a3663 100644 --- a/monasca_setup/detection/plugins/mon.py +++ b/monasca_setup/detection/plugins/mon.py @@ -1,6 +1,17 @@ # (C) Copyright 2015-2016 Hewlett Packard Enterprise Development LP # Copyright 2016 FUJITSU LIMITED # Copyright 2017 SUSE Linux GmbH +# 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. """Classes for monitoring the monitoring server stack. diff --git a/monasca_setup/detection/plugins/mysql.py b/monasca_setup/detection/plugins/mysql.py index 39d93582..54b800c5 100644 --- a/monasca_setup/detection/plugins/mysql.py +++ b/monasca_setup/detection/plugins/mysql.py @@ -1,4 +1,15 @@ # (C) Copyright 2015,2016 Hewlett Packard Enterprise Development Company LP +# 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. import logging import os diff --git a/monasca_setup/detection/plugins/neutron.py b/monasca_setup/detection/plugins/neutron.py index 3d663da2..9cfa1847 100644 --- a/monasca_setup/detection/plugins/neutron.py +++ b/monasca_setup/detection/plugins/neutron.py @@ -1,4 +1,15 @@ # (C) Copyright 2015,2016 Hewlett Packard Enterprise Development Company LP +# 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. import monasca_setup.detection diff --git a/monasca_setup/detection/plugins/nova.py b/monasca_setup/detection/plugins/nova.py index 7ad78e97..cec59450 100644 --- a/monasca_setup/detection/plugins/nova.py +++ b/monasca_setup/detection/plugins/nova.py @@ -1,4 +1,15 @@ # (C) Copyright 2015 Hewlett Packard Enterprise Development Company LP +# 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. import monasca_setup.detection diff --git a/monasca_setup/detection/plugins/ntp.py b/monasca_setup/detection/plugins/ntp.py index 41b4a09f..9682372a 100644 --- a/monasca_setup/detection/plugins/ntp.py +++ b/monasca_setup/detection/plugins/ntp.py @@ -1,4 +1,15 @@ # (C) Copyright 2015,2016 Hewlett Packard Enterprise Development LP +# 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. import logging import os diff --git a/monasca_setup/detection/plugins/ovs.py b/monasca_setup/detection/plugins/ovs.py index d26b9de8..5df2758c 100644 --- a/monasca_setup/detection/plugins/ovs.py +++ b/monasca_setup/detection/plugins/ovs.py @@ -1,4 +1,15 @@ # (C) Copyright 2016 Hewlett Packard Enterprise Development Company LP +# 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. import ConfigParser import logging diff --git a/monasca_setup/detection/plugins/ovsvapp.py b/monasca_setup/detection/plugins/ovsvapp.py index 74478309..de20ee32 100644 --- a/monasca_setup/detection/plugins/ovsvapp.py +++ b/monasca_setup/detection/plugins/ovsvapp.py @@ -1,4 +1,15 @@ # (C) Copyright 2015 Hewlett Packard Enterprise Development Company LP +# 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. import monasca_setup.detection diff --git a/monasca_setup/detection/plugins/postfix.py b/monasca_setup/detection/plugins/postfix.py index 27f3ab23..df96723e 100644 --- a/monasca_setup/detection/plugins/postfix.py +++ b/monasca_setup/detection/plugins/postfix.py @@ -1,6 +1,17 @@ # (c) Copyright 2015-2016 Hewlett Packard Enterprise Development LP # Copyright 2017 Fujitsu LIMITED # Copyright 2017 SUSE Linux GmbH +# 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. import logging import os diff --git a/monasca_setup/detection/plugins/process.py b/monasca_setup/detection/plugins/process.py index c6d6a2c7..c437f302 100644 --- a/monasca_setup/detection/plugins/process.py +++ b/monasca_setup/detection/plugins/process.py @@ -1,4 +1,15 @@ # (C) Copyright 2016 Hewlett Packard Enterprise Development LP +# 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. import json import logging diff --git a/monasca_setup/detection/plugins/rabbitmq.py b/monasca_setup/detection/plugins/rabbitmq.py index 6c10f09b..28752eb8 100644 --- a/monasca_setup/detection/plugins/rabbitmq.py +++ b/monasca_setup/detection/plugins/rabbitmq.py @@ -1,4 +1,15 @@ # (C) Copyright 2015-2016 Hewlett Packard Enterprise Development LP +# 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. import logging import urllib2 diff --git a/monasca_setup/detection/plugins/swift.py b/monasca_setup/detection/plugins/swift.py index 3f4dfedc..489640bb 100644 --- a/monasca_setup/detection/plugins/swift.py +++ b/monasca_setup/detection/plugins/swift.py @@ -1,4 +1,15 @@ # (C) Copyright 2015 Hewlett Packard Enterprise Development Company LP +# 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. import monasca_setup.detection diff --git a/monasca_setup/detection/plugins/system.py b/monasca_setup/detection/plugins/system.py index 420f700b..84518b17 100644 --- a/monasca_setup/detection/plugins/system.py +++ b/monasca_setup/detection/plugins/system.py @@ -1,4 +1,15 @@ # (C) Copyright 2015-2016 Hewlett Packard Enterprise Development LP +# 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. import logging import os diff --git a/monasca_setup/detection/plugins/trove.py b/monasca_setup/detection/plugins/trove.py index efd950ce..3af50741 100644 --- a/monasca_setup/detection/plugins/trove.py +++ b/monasca_setup/detection/plugins/trove.py @@ -1,3 +1,15 @@ +# 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. + import logging import monasca_setup.detection diff --git a/monasca_setup/detection/plugins/vcenter.py b/monasca_setup/detection/plugins/vcenter.py index d4b7e3c5..7d377eb1 100644 --- a/monasca_setup/detection/plugins/vcenter.py +++ b/monasca_setup/detection/plugins/vcenter.py @@ -1,4 +1,15 @@ # (C) Copyright 2016-2017 Hewlett Packard Enterprise Development LP +# 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. import ConfigParser import logging diff --git a/monasca_setup/detection/plugins/vertica.py b/monasca_setup/detection/plugins/vertica.py index 0b5860f6..9dff3e99 100644 --- a/monasca_setup/detection/plugins/vertica.py +++ b/monasca_setup/detection/plugins/vertica.py @@ -1,4 +1,15 @@ # (C) Copyright 2016 Hewlett Packard Enterprise Development Company LP +# 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. import logging diff --git a/monasca_setup/detection/service_plugin.py b/monasca_setup/detection/service_plugin.py index 8902cff6..ff36c619 100644 --- a/monasca_setup/detection/service_plugin.py +++ b/monasca_setup/detection/service_plugin.py @@ -1,4 +1,15 @@ # (C) Copyright 2015-2016 Hewlett Packard Enterprise Development LP +# 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. import logging import urlparse diff --git a/monasca_setup/detection/utils.py b/monasca_setup/detection/utils.py index 9e26aa6a..8032b372 100644 --- a/monasca_setup/detection/utils.py +++ b/monasca_setup/detection/utils.py @@ -1,6 +1,17 @@ # (C) Copyright 2015-2016 Hewlett Packard Enterprise Development LP # Copyright 2017 SUSE Linux GmbH # Copyright 2017 OP5 AB +# 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. """ Util functions to assist in detection. """ diff --git a/monasca_setup/main.py b/monasca_setup/main.py index 472d6179..227511e6 100644 --- a/monasca_setup/main.py +++ b/monasca_setup/main.py @@ -1,6 +1,17 @@ #!/usr/bin/env python # (C) Copyright 2015-2018 Hewlett Packard Enterprise Development LP # Copyright 2017 Fujitsu LIMITED +# 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. """ Detect running daemons then configure and start the agent. """ diff --git a/monasca_setup/service/__init__.py b/monasca_setup/service/__init__.py index be4afbd8..cf4b0e35 100644 --- a/monasca_setup/service/__init__.py +++ b/monasca_setup/service/__init__.py @@ -1,3 +1,14 @@ # (C) Copyright 2015 Hewlett Packard Enterprise Development Company LP +# 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. from service import Service # noqa diff --git a/monasca_setup/service/detection.py b/monasca_setup/service/detection.py index 2cd28bcf..b2252d5c 100644 --- a/monasca_setup/service/detection.py +++ b/monasca_setup/service/detection.py @@ -1,4 +1,15 @@ # (C) Copyright 2015 Hewlett Packard Enterprise Development Company LP +# 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. import logging import platform diff --git a/monasca_setup/service/linux.py b/monasca_setup/service/linux.py index 7747660d..8d3e1512 100644 --- a/monasca_setup/service/linux.py +++ b/monasca_setup/service/linux.py @@ -1,4 +1,15 @@ # (C) Copyright 2015 Hewlett Packard Enterprise Development Company LP +# 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. """ Systemd based service """ diff --git a/monasca_setup/service/service.py b/monasca_setup/service/service.py index 8ac949c3..af1ffb80 100644 --- a/monasca_setup/service/service.py +++ b/monasca_setup/service/service.py @@ -1,4 +1,15 @@ # (C) Copyright 2015 Hewlett Packard Enterprise Development Company LP +# 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. """Code to handle various service managers used on different OS diff --git a/monasca_setup/utils.py b/monasca_setup/utils.py index a1080241..215e3bb0 100644 --- a/monasca_setup/utils.py +++ b/monasca_setup/utils.py @@ -1,4 +1,15 @@ # (C) Copyright 2015 Hewlett Packard Enterprise Development Company LP +# 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. import glob import imp diff --git a/tests/__init__.py b/tests/__init__.py index 1ba08e18..ab009726 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -1,3 +1,15 @@ +# 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. + import os import sys diff --git a/tests/checks_d/test_host_alive.py b/tests/checks_d/test_host_alive.py index 95e2e8ad..f1a18b95 100644 --- a/tests/checks_d/test_host_alive.py +++ b/tests/checks_d/test_host_alive.py @@ -1,4 +1,15 @@ # (C) Copyright 2016 Hewlett Packard Enterprise Development LP +# 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. import mock import unittest @@ -67,4 +78,4 @@ class TestHostAlive(unittest.TestCase): self._run_check(host_name, self._instance, (True, None)) self._gauge.assert_called_with(HOST_ALIVE_STATUS, SUCCESS, - dimensions=self._base_dimensions) \ No newline at end of file + dimensions=self._base_dimensions) diff --git a/tests/checks_d/test_json_plugin.py b/tests/checks_d/test_json_plugin.py index c932449e..7dff86c7 100644 --- a/tests/checks_d/test_json_plugin.py +++ b/tests/checks_d/test_json_plugin.py @@ -1,4 +1,15 @@ # (C) Copyright 2016-2017 Hewlett Packard Enterprise Development LP +# 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. import fcntl import json diff --git a/tests/checks_d/test_kubernetes_api.py b/tests/checks_d/test_kubernetes_api.py index 0d7db5b2..b8477030 100644 --- a/tests/checks_d/test_kubernetes_api.py +++ b/tests/checks_d/test_kubernetes_api.py @@ -1,4 +1,15 @@ # (C) Copyright 2017 Hewlett Packard Enterprise Development LP +# 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. import mock import unittest diff --git a/tests/common.py b/tests/common.py index e4676c7a..178326b0 100644 --- a/tests/common.py +++ b/tests/common.py @@ -1,3 +1,15 @@ +# 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. + import os import sys import inspect diff --git a/tests/detection/test_cert_check.py b/tests/detection/test_cert_check.py index f4a47e59..2d6431e6 100644 --- a/tests/detection/test_cert_check.py +++ b/tests/detection/test_cert_check.py @@ -1,4 +1,15 @@ # (C) Copyright 2016 Hewlett Packard Enterprise Development Company LP +# 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. import logging import unittest diff --git a/tests/detection/test_host_alive.py b/tests/detection/test_host_alive.py index f15f2060..a2097558 100644 --- a/tests/detection/test_host_alive.py +++ b/tests/detection/test_host_alive.py @@ -1,4 +1,15 @@ # (C) Copyright 2016 Hewlett Packard Enterprise Development LP +# 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. import mock import unittest @@ -81,4 +92,4 @@ class TestHostAliveDetect(unittest.TestCase): host_names = ['aaaa', 'bbbb', 'cccc'] target_hostnames = ['dddd', 'eeee', 'ffff', 'gggg'] with self.assertRaises(Exception): - self._run_build_config(host_names, target_hostnames) \ No newline at end of file + self._run_build_config(host_names, target_hostnames) diff --git a/tests/detection/test_json_plugin.py b/tests/detection/test_json_plugin.py index d15f179b..f7aba26b 100644 --- a/tests/detection/test_json_plugin.py +++ b/tests/detection/test_json_plugin.py @@ -1,4 +1,15 @@ # (C) Copyright 2016 Hewlett Packard Enterprise Development Company LP +# 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. import os import shutil diff --git a/tests/detection/test_ovs.py b/tests/detection/test_ovs.py index aa61b8ba..3c4fc184 100644 --- a/tests/detection/test_ovs.py +++ b/tests/detection/test_ovs.py @@ -1,4 +1,15 @@ # (C) Copyright 2016 Hewlett Packard Enterprise Development Company LP +# 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. import ConfigParser import contextlib diff --git a/tests/detection/test_process_check.py b/tests/detection/test_process_check.py index c6ee8c09..03ffa444 100644 --- a/tests/detection/test_process_check.py +++ b/tests/detection/test_process_check.py @@ -1,4 +1,15 @@ # (C) Copyright 2016 Hewlett Packard Enterprise Development LP +# 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. import contextlib import logging diff --git a/tests/test_agent_check.py b/tests/test_agent_check.py index 65645120..5d654dbf 100644 --- a/tests/test_agent_check.py +++ b/tests/test_agent_check.py @@ -1,4 +1,16 @@ # (C) Copyright 2017 Hewlett Packard Enterprise Development Company LP +# 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. + import unittest import os diff --git a/tests/test_aggregator.py b/tests/test_aggregator.py index 771d32b6..4c47b437 100644 --- a/tests/test_aggregator.py +++ b/tests/test_aggregator.py @@ -1,4 +1,16 @@ # (C) Copyright 2015-2017 Hewlett Packard Enterprise Development Company LP +# 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. + import unittest import monasca_agent.common.aggregator as aggregator diff --git a/tests/test_checks_utils.py b/tests/test_checks_utils.py index 296ed0c1..065b399f 100644 --- a/tests/test_checks_utils.py +++ b/tests/test_checks_utils.py @@ -1,3 +1,15 @@ +# 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. + import os import time import unittest diff --git a/tests/test_config.py b/tests/test_config.py index d4fc1e71..3a4b424f 100644 --- a/tests/test_config.py +++ b/tests/test_config.py @@ -1,4 +1,15 @@ # -*- coding: latin-1 -*- +# 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. import mock import os.path diff --git a/tests/test_metrics.py b/tests/test_metrics.py index 06976e9d..66a8cb33 100644 --- a/tests/test_metrics.py +++ b/tests/test_metrics.py @@ -1,4 +1,16 @@ # (C) Copyright 2016 Hewlett Packard Enterprise Development LP +# 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. + import unittest import monasca_agent.common.metrics as metrics diff --git a/tests/test_modify_config.py b/tests/test_modify_config.py index e8ad36fc..30784f3a 100644 --- a/tests/test_modify_config.py +++ b/tests/test_modify_config.py @@ -1,4 +1,15 @@ # (C) Copyright 2016 Hewlett Packard Enterprise Development LP +# 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. import collections import mock diff --git a/tests/test_process.py b/tests/test_process.py index ae81d676..736f7dc2 100644 --- a/tests/test_process.py +++ b/tests/test_process.py @@ -1,3 +1,15 @@ +# 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. + import mock import unittest diff --git a/tests/test_service_plugin.py b/tests/test_service_plugin.py index 6a35c1da..64a56ab1 100644 --- a/tests/test_service_plugin.py +++ b/tests/test_service_plugin.py @@ -1,3 +1,15 @@ +# 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. + import monasca_setup.detection import socket import unittest diff --git a/tests/test_services_check.py b/tests/test_services_check.py index 9a1b2d58..8de7b344 100644 --- a/tests/test_services_check.py +++ b/tests/test_services_check.py @@ -1,4 +1,15 @@ # (C) Copyright 2017 Hewlett Packard Enterprise Development LP +# 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. from unittest import TestCase from eventlet.green import time diff --git a/tests_to_fix/common.py b/tests_to_fix/common.py index 46eda2db..1690f2a9 100644 --- a/tests_to_fix/common.py +++ b/tests_to_fix/common.py @@ -1,3 +1,15 @@ +# 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. + import sys import inspect import os diff --git a/tests_to_fix/performance/benchmark_aggregator.py b/tests_to_fix/performance/benchmark_aggregator.py index 8eed5615..4c706741 100644 --- a/tests_to_fix/performance/benchmark_aggregator.py +++ b/tests_to_fix/performance/benchmark_aggregator.py @@ -1,3 +1,15 @@ +# 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. + """ Performance tests for the agent/dogstatsd metrics aggregator. """ diff --git a/tests_to_fix/target_module.py b/tests_to_fix/target_module.py index 834811ee..06684299 100644 --- a/tests_to_fix/target_module.py +++ b/tests_to_fix/target_module.py @@ -1,2 +1,14 @@ +# 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. + default_target = 'DEFAULT' specified_target = 'SPECIFIED' diff --git a/tests_to_fix/test_cacti.py b/tests_to_fix/test_cacti.py index aad402dc..715bc994 100644 --- a/tests_to_fix/test_cacti.py +++ b/tests_to_fix/test_cacti.py @@ -1,3 +1,15 @@ +# 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. + from common import get_check import unittest diff --git a/tests_to_fix/test_cassandra_jmx.py b/tests_to_fix/test_cassandra_jmx.py index e318e3cd..19284dc3 100644 --- a/tests_to_fix/test_cassandra_jmx.py +++ b/tests_to_fix/test_cassandra_jmx.py @@ -1,3 +1,15 @@ +# 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. + import unittest import time import threading diff --git a/tests_to_fix/test_check_status.py b/tests_to_fix/test_check_status.py index 1e87f819..12206182 100644 --- a/tests_to_fix/test_check_status.py +++ b/tests_to_fix/test_check_status.py @@ -1,3 +1,15 @@ +# 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. + import nose.tools as nt from monasca_agent.collector.checks import AgentCheck diff --git a/tests_to_fix/test_common.py b/tests_to_fix/test_common.py index 669f665d..a03c9e74 100644 --- a/tests_to_fix/test_common.py +++ b/tests_to_fix/test_common.py @@ -1,3 +1,15 @@ +# 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. + import time import unittest import logging diff --git a/tests_to_fix/test_couch.py b/tests_to_fix/test_couch.py index 93d0427f..a18f8f54 100644 --- a/tests_to_fix/test_couch.py +++ b/tests_to_fix/test_couch.py @@ -1,3 +1,15 @@ +# 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. + import unittest from tests.common import load_check from nose.plugins.skip import SkipTest diff --git a/tests_to_fix/test_couchbase.py b/tests_to_fix/test_couchbase.py index 3472b8bb..5708a799 100644 --- a/tests_to_fix/test_couchbase.py +++ b/tests_to_fix/test_couchbase.py @@ -1,3 +1,15 @@ +# 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. + import unittest from tests.common import load_check diff --git a/tests_to_fix/test_crash.py b/tests_to_fix/test_crash.py index a90ab479..bd5f980c 100644 --- a/tests_to_fix/test_crash.py +++ b/tests_to_fix/test_crash.py @@ -1,3 +1,15 @@ +# 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. + import os import shutil import unittest diff --git a/tests_to_fix/test_elastic.py b/tests_to_fix/test_elastic.py index 8c445a8e..fee925a4 100644 --- a/tests_to_fix/test_elastic.py +++ b/tests_to_fix/test_elastic.py @@ -1,3 +1,15 @@ +# 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. + import unittest import logging logging.basicConfig() diff --git a/tests_to_fix/test_gearman.py b/tests_to_fix/test_gearman.py index 3ec734c0..70ab6878 100644 --- a/tests_to_fix/test_gearman.py +++ b/tests_to_fix/test_gearman.py @@ -1,3 +1,15 @@ +# 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. + import unittest from tests.common import load_check from nose.plugins.skip import SkipTest diff --git a/tests_to_fix/test_haproxy.py b/tests_to_fix/test_haproxy.py index a3c1310a..fd0177cc 100644 --- a/tests_to_fix/test_haproxy.py +++ b/tests_to_fix/test_haproxy.py @@ -1,3 +1,15 @@ +# 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. + import unittest import subprocess import time diff --git a/tests_to_fix/test_iis.py b/tests_to_fix/test_iis.py index 99f4a3d0..24977310 100644 --- a/tests_to_fix/test_iis.py +++ b/tests_to_fix/test_iis.py @@ -1,3 +1,15 @@ +# 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. + import unittest import logging from nose.plugins.attrib import attr diff --git a/tests_to_fix/test_java_jmx.py b/tests_to_fix/test_java_jmx.py index 898ef64a..38fe2110 100644 --- a/tests_to_fix/test_java_jmx.py +++ b/tests_to_fix/test_java_jmx.py @@ -1,3 +1,15 @@ +# 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. + import unittest import time import threading diff --git a/tests_to_fix/test_laconic.py b/tests_to_fix/test_laconic.py index 45143656..b1d6c210 100644 --- a/tests_to_fix/test_laconic.py +++ b/tests_to_fix/test_laconic.py @@ -1,3 +1,15 @@ +# 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. + import logging import unittest from cStringIO import StringIO diff --git a/tests_to_fix/test_mcache.py b/tests_to_fix/test_mcache.py index 0571f283..6eac9d34 100644 --- a/tests_to_fix/test_mcache.py +++ b/tests_to_fix/test_mcache.py @@ -1,3 +1,15 @@ +# 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. + import unittest import os import time diff --git a/tests_to_fix/test_modules.py b/tests_to_fix/test_modules.py index f00d288b..83847bac 100644 --- a/tests_to_fix/test_modules.py +++ b/tests_to_fix/test_modules.py @@ -1,3 +1,15 @@ +# 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. + import sys import os import logging diff --git a/tests_to_fix/test_mongo.py b/tests_to_fix/test_mongo.py index c3a42e13..02b01f0d 100644 --- a/tests_to_fix/test_mongo.py +++ b/tests_to_fix/test_mongo.py @@ -1,3 +1,15 @@ +# 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. + import unittest import logging import subprocess diff --git a/tests_to_fix/test_monstatsd.py b/tests_to_fix/test_monstatsd.py index 1fd9a96f..861b55cd 100644 --- a/tests_to_fix/test_monstatsd.py +++ b/tests_to_fix/test_monstatsd.py @@ -1,3 +1,15 @@ +# 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. + import random import time import unittest diff --git a/tests_to_fix/test_mysql.py b/tests_to_fix/test_mysql.py index e6900633..fae96026 100644 --- a/tests_to_fix/test_mysql.py +++ b/tests_to_fix/test_mysql.py @@ -1,3 +1,15 @@ +# 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. + import unittest from tests.common import load_check import time diff --git a/tests_to_fix/test_postfix.py b/tests_to_fix/test_postfix.py index aa5073ef..23e20ec9 100644 --- a/tests_to_fix/test_postfix.py +++ b/tests_to_fix/test_postfix.py @@ -1,3 +1,15 @@ +# 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. + from common import get_check from random import shuffle, sample diff --git a/tests_to_fix/test_redis.py b/tests_to_fix/test_redis.py index 41029f3e..1ba51f90 100644 --- a/tests_to_fix/test_redis.py +++ b/tests_to_fix/test_redis.py @@ -1,3 +1,15 @@ +# 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. + """ Redis check tests. """ diff --git a/tests_to_fix/test_solr.py b/tests_to_fix/test_solr.py index b80ce457..cdd15aa7 100644 --- a/tests_to_fix/test_solr.py +++ b/tests_to_fix/test_solr.py @@ -1,3 +1,15 @@ +# 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. + import unittest import time import threading diff --git a/tests_to_fix/test_sqlserver.py b/tests_to_fix/test_sqlserver.py index 97aa6ffc..e9405815 100644 --- a/tests_to_fix/test_sqlserver.py +++ b/tests_to_fix/test_sqlserver.py @@ -1,3 +1,15 @@ +# 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. + import unittest import logging from nose.plugins.attrib import attr diff --git a/tests_to_fix/test_system.py b/tests_to_fix/test_system.py index a73c5530..74d7b2d6 100644 --- a/tests_to_fix/test_system.py +++ b/tests_to_fix/test_system.py @@ -1,3 +1,15 @@ +# 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. + from functools import reduce import logging import platform diff --git a/tests_to_fix/test_tail.py b/tests_to_fix/test_tail.py index bcb8adf3..380f29c9 100644 --- a/tests_to_fix/test_tail.py +++ b/tests_to_fix/test_tail.py @@ -1,3 +1,15 @@ +# 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. + import logging import subprocess import tempfile diff --git a/tests_to_fix/test_tomcat.py b/tests_to_fix/test_tomcat.py index 337bafc8..c6b86eb9 100644 --- a/tests_to_fix/test_tomcat.py +++ b/tests_to_fix/test_tomcat.py @@ -1,3 +1,15 @@ +# 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. + import unittest import time import threading diff --git a/tests_to_fix/test_transaction.py b/tests_to_fix/test_transaction.py index 7c6fa712..99b4b07f 100644 --- a/tests_to_fix/test_transaction.py +++ b/tests_to_fix/test_transaction.py @@ -1,3 +1,15 @@ +# 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. + import unittest from datetime import timedelta, datetime diff --git a/tests_to_fix/test_varnish.py b/tests_to_fix/test_varnish.py index 76b65f71..8df2b946 100644 --- a/tests_to_fix/test_varnish.py +++ b/tests_to_fix/test_varnish.py @@ -1,3 +1,15 @@ +# 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. + import logging import os import time diff --git a/tests_to_fix/test_web.py b/tests_to_fix/test_web.py index 6c228a1d..ad6b6650 100644 --- a/tests_to_fix/test_web.py +++ b/tests_to_fix/test_web.py @@ -1,3 +1,15 @@ +# 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. + import unittest import logging diff --git a/tests_to_fix/test_win32.py b/tests_to_fix/test_win32.py index ac9a3bb3..80eda42c 100644 --- a/tests_to_fix/test_win32.py +++ b/tests_to_fix/test_win32.py @@ -1,3 +1,15 @@ +# 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. + # stdlib import unittest import logging diff --git a/tests_to_fix/test_win32_event_log.py b/tests_to_fix/test_win32_event_log.py index 4e173765..312cb418 100644 --- a/tests_to_fix/test_win32_event_log.py +++ b/tests_to_fix/test_win32_event_log.py @@ -1,3 +1,15 @@ +# 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. + import unittest import logging import win32evtlog diff --git a/tests_to_fix/test_zookeeper.py b/tests_to_fix/test_zookeeper.py index c7267e92..5e15b205 100644 --- a/tests_to_fix/test_zookeeper.py +++ b/tests_to_fix/test_zookeeper.py @@ -1,3 +1,15 @@ +# 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. + import unittest from StringIO import StringIO