From 4571e52cde1e29e6600da8b519668f10c86b245d Mon Sep 17 00:00:00 2001 From: Johannes Findeisen Date: Tue, 8 Oct 2013 00:08:47 +0200 Subject: [PATCH] added license header to all code files --- lib/backends/backend.py | 17 +++++++++++++++++ lib/backends/https.py | 17 +++++++++++++++++ lib/backends/xmpp.py | 17 +++++++++++++++++ lib/config/config.py | 17 +++++++++++++++++ lib/config/hostgroups.py | 20 ++++++++++++++++++++ lib/config/layouts.py | 20 ++++++++++++++++++++ lib/config/members.py | 19 +++++++++++++++++++ lib/config/parser.py | 20 ++++++++++++++++++++ lib/config/periods.py | 21 +++++++++++++++++++++ lib/core/command.py | 19 +++++++++++++++++++ lib/core/daemon.py | 20 ++++++++++++++++++++ lib/core/interface.py | 17 +++++++++++++++++ lib/core/job.py | 17 +++++++++++++++++ lib/core/linspector_daemon.py | 19 +++++++++++++++++++ lib/core/logger.py | 19 +++++++++++++++++++ lib/core/scheduler.py | 18 ++++++++++++++++++ lib/frontends/frontend.py | 17 +++++++++++++++++ lib/frontends/lish.py | 17 +++++++++++++++++ lib/parsers/parser.py | 20 ++++++++++++++++++++ lib/parsers/shell.py | 19 +++++++++++++++++++ lib/processors/mariadb.py | 17 +++++++++++++++++ lib/processors/mongodb.py | 17 +++++++++++++++++ lib/processors/processor.py | 17 +++++++++++++++++ lib/processors/syslog.py | 17 +++++++++++++++++ lib/services/http.py | 17 +++++++++++++++++ lib/services/ping.py | 17 +++++++++++++++++ lib/services/service.py | 18 ++++++++++++++++++ lib/services/shell.py | 17 +++++++++++++++++ lib/services/snmpget.py | 17 +++++++++++++++++ lib/services/ssh.py | 17 +++++++++++++++++ lib/services/tcpconnect.py | 17 +++++++++++++++++ lib/tasks/jabber.py | 17 +++++++++++++++++ lib/tasks/mail.py | 19 ++++++++++++++++++- lib/tasks/sms.py | 17 +++++++++++++++++ lib/tasks/task.py | 17 +++++++++++++++++ lib/tasks/tweet.py | 17 +++++++++++++++++ linspector | 19 +++++++++++++++++++ 37 files changed, 663 insertions(+), 1 deletion(-) diff --git a/lib/backends/backend.py b/lib/backends/backend.py index 507331c..89e6f68 100644 --- a/lib/backends/backend.py +++ b/lib/backends/backend.py @@ -3,6 +3,23 @@ Backends can be a http service or xml-rpc service; let's say background threads should run as background threads. Backends are absolutely no requirement for running Linspector. + +Copyright (c) 2011-2013 "Johannes Findeisen and Rafael Timmerberg" + +This file is part of Linspector (http://linspector.org). + +Linspector is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as +published by the Free Software Foundation, either version 3 of the +License, or (at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . """ diff --git a/lib/backends/https.py b/lib/backends/https.py index 89811ad..9e71203 100644 --- a/lib/backends/https.py +++ b/lib/backends/https.py @@ -3,6 +3,23 @@ A HTTPS backend to the current Linspector instance. A Webserver listening for requests to give information about the internal state of linspector. (maybe providing a JSON API to the instance too...) + +Copyright (c) 2011-2013 "Johannes Findeisen and Rafael Timmerberg" + +This file is part of Linspector (http://linspector.org). + +Linspector is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as +published by the Free Software Foundation, either version 3 of the +License, or (at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . """ from lib.backends.backend import Backend diff --git a/lib/backends/xmpp.py b/lib/backends/xmpp.py index c1d25dc..88853af 100644 --- a/lib/backends/xmpp.py +++ b/lib/backends/xmpp.py @@ -3,6 +3,23 @@ The Linspector XMPP Frontend... Just for the fun in it... Linspector connects to a XMPP Server and are accepting commands from special users and can give back information. The Linspector admin client will then be any Jabber Client... ;) + +Copyright (c) 2011-2013 "Johannes Findeisen and Rafael Timmerberg" + +This file is part of Linspector (http://linspector.org). + +Linspector is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as +published by the Free Software Foundation, either version 3 of the +License, or (at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . """ from lib.backends.backend import Backend diff --git a/lib/config/config.py b/lib/config/config.py index 0ea9beb..bcefe8a 100644 --- a/lib/config/config.py +++ b/lib/config/config.py @@ -1,5 +1,22 @@ """ The LinspectorConfig class. + +Copyright (c) 2011-2013 "Johannes Findeisen and Rafael Timmerberg" + +This file is part of Linspector (http://linspector.org). + +Linspector is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as +published by the Free Software Foundation, either version 3 of the +License, or (at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . """ diff --git a/lib/config/hostgroups.py b/lib/config/hostgroups.py index 047bf13..4cc8175 100644 --- a/lib/config/hostgroups.py +++ b/lib/config/hostgroups.py @@ -1,3 +1,23 @@ +""" +Copyright (c) 2011-2013 "Johannes Findeisen and Rafael Timmerberg" + +This file is part of Linspector (http://linspector.org). + +Linspector is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as +published by the Free Software Foundation, either version 3 of the +License, or (at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . +""" + + class HostGroupException(Exception): def __init__(self, msg): self.msg = msg diff --git a/lib/config/layouts.py b/lib/config/layouts.py index a12affb..52da1c0 100644 --- a/lib/config/layouts.py +++ b/lib/config/layouts.py @@ -1,3 +1,23 @@ +""" +Copyright (c) 2011-2013 "Johannes Findeisen and Rafael Timmerberg" + +This file is part of Linspector (http://linspector.org). + +Linspector is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as +published by the Free Software Foundation, either version 3 of the +License, or (at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . +""" + + class LayoutException(Exception): def __init__(self, msg): self.msg = msg diff --git a/lib/config/members.py b/lib/config/members.py index f028c96..334405b 100644 --- a/lib/config/members.py +++ b/lib/config/members.py @@ -1,3 +1,22 @@ +""" +Copyright (c) 2011-2013 "Johannes Findeisen and Rafael Timmerberg" + +This file is part of Linspector (http://linspector.org). + +Linspector is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as +published by the Free Software Foundation, either version 3 of the +License, or (at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . +""" + import re diff --git a/lib/config/parser.py b/lib/config/parser.py index f711e50..12fdca7 100644 --- a/lib/config/parser.py +++ b/lib/config/parser.py @@ -1,7 +1,27 @@ +""" +Copyright (c) 2011-2013 "Johannes Findeisen and Rafael Timmerberg" + +This file is part of Linspector (http://linspector.org). + +Linspector is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as +published by the Free Software Foundation, either version 3 of the +License, or (at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . +""" + from os.path import isfile from os.path import join import json import imp + from layouts import Layout from hostgroups import HostGroup from members import Member diff --git a/lib/config/periods.py b/lib/config/periods.py index 22c8140..cb94577 100644 --- a/lib/config/periods.py +++ b/lib/config/periods.py @@ -1,3 +1,24 @@ +""" + +Copyright (c) 2011-2013 "Johannes Findeisen and Rafael Timmerberg" + +This file is part of Linspector (http://linspector.org). + +Linspector is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as +published by the Free Software Foundation, either version 3 of the +License, or (at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . +""" + + class Period(object): def __init__(self, name): self.name = name diff --git a/lib/core/command.py b/lib/core/command.py index d00b895..18e3ec3 100644 --- a/lib/core/command.py +++ b/lib/core/command.py @@ -1,3 +1,22 @@ +""" +Copyright (c) 2011-2013 "Johannes Findeisen and Rafael Timmerberg" + +This file is part of Linspector (http://linspector.org). + +Linspector is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as +published by the Free Software Foundation, either version 3 of the +License, or (at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . +""" + import subprocess as sp from subprocess import Popen from subprocess import CalledProcessError diff --git a/lib/core/daemon.py b/lib/core/daemon.py index 1b85f42..c80bb2d 100644 --- a/lib/core/daemon.py +++ b/lib/core/daemon.py @@ -1,3 +1,23 @@ +""" + +Copyright (c) 2011-2013 "Johannes Findeisen and Rafael Timmerberg" + +This file is part of Linspector (http://linspector.org). + +Linspector is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as +published by the Free Software Foundation, either version 3 of the +License, or (at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . +""" + import sys import os import time diff --git a/lib/core/interface.py b/lib/core/interface.py index 26a7d88..c2457d6 100644 --- a/lib/core/interface.py +++ b/lib/core/interface.py @@ -1,5 +1,22 @@ """ The interface class should contain all stuff for frontend/backend communication to the Linspector core. + +Copyright (c) 2011-2013 "Johannes Findeisen and Rafael Timmerberg" + +This file is part of Linspector (http://linspector.org). + +Linspector is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as +published by the Free Software Foundation, either version 3 of the +License, or (at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . """ diff --git a/lib/core/job.py b/lib/core/job.py index 4b88c1b..3743556 100644 --- a/lib/core/job.py +++ b/lib/core/job.py @@ -1,6 +1,23 @@ """ This is what job_function needs as parameter for each job to successfully execute. + +Copyright (c) 2011-2013 "Johannes Findeisen and Rafael Timmerberg" + +This file is part of Linspector (http://linspector.org). + +Linspector is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as +published by the Free Software Foundation, either version 3 of the +License, or (at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . """ from datetime import datetime diff --git a/lib/core/linspector_daemon.py b/lib/core/linspector_daemon.py index cfdd8c4..2e01f10 100644 --- a/lib/core/linspector_daemon.py +++ b/lib/core/linspector_daemon.py @@ -1,3 +1,22 @@ +""" +Copyright (c) 2011-2013 "Johannes Findeisen and Rafael Timmerberg" + +This file is part of Linspector (http://linspector.org). + +Linspector is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as +published by the Free Software Foundation, either version 3 of the +License, or (at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . +""" + from ..core import logger from ..core.daemon import Daemon diff --git a/lib/core/logger.py b/lib/core/logger.py index 9acc559..087f992 100644 --- a/lib/core/logger.py +++ b/lib/core/logger.py @@ -1,3 +1,22 @@ +""" +Copyright (c) 2011-2013 "Johannes Findeisen and Rafael Timmerberg" + +This file is part of Linspector (http://linspector.org). + +Linspector is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as +published by the Free Software Foundation, either version 3 of the +License, or (at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . +""" + import logging import logging.handlers import os diff --git a/lib/core/scheduler.py b/lib/core/scheduler.py index 6cee297..b5ccb79 100644 --- a/lib/core/scheduler.py +++ b/lib/core/scheduler.py @@ -1,3 +1,21 @@ +""" +Copyright (c) 2011-2013 "Johannes Findeisen and Rafael Timmerberg" + +This file is part of Linspector (http://linspector.org). + +Linspector is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as +published by the Free Software Foundation, either version 3 of the +License, or (at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . +""" from apscheduler.scheduler import Scheduler diff --git a/lib/frontends/frontend.py b/lib/frontends/frontend.py index 91ff5b3..42d58e0 100644 --- a/lib/frontends/frontend.py +++ b/lib/frontends/frontend.py @@ -3,6 +3,23 @@ Frontends are GUI interfaces to Linspector. This could be a shell or other termi Frontends are absolutely no requirement for running Linspector. If no frontend is selected Linspector will just log stuff to stdout. + +Copyright (c) 2011-2013 "Johannes Findeisen and Rafael Timmerberg" + +This file is part of Linspector (http://linspector.org). + +Linspector is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as +published by the Free Software Foundation, either version 3 of the +License, or (at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . """ diff --git a/lib/frontends/lish.py b/lib/frontends/lish.py index 8b91de9..5f1f11b 100644 --- a/lib/frontends/lish.py +++ b/lib/frontends/lish.py @@ -2,6 +2,23 @@ Lish is the Linspector Interactive Shell... This will become a commandline interface to Linspector. Think of a network switch or router like those from Cisco. + +Copyright (c) 2011-2013 "Johannes Findeisen and Rafael Timmerberg" + +This file is part of Linspector (http://linspector.org). + +Linspector is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as +published by the Free Software Foundation, either version 3 of the +License, or (at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . """ diff --git a/lib/parsers/parser.py b/lib/parsers/parser.py index 8ba3028..2a81437 100644 --- a/lib/parsers/parser.py +++ b/lib/parsers/parser.py @@ -1,3 +1,23 @@ +""" +Copyright (c) 2011-2013 "Johannes Findeisen and Rafael Timmerberg" + +This file is part of Linspector (http://linspector.org). + +Linspector is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as +published by the Free Software Foundation, either version 3 of the +License, or (at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . +""" + + class Parser: def __init__(self, **kwargs): pass diff --git a/lib/parsers/shell.py b/lib/parsers/shell.py index c767cb3..5c7ec91 100644 --- a/lib/parsers/shell.py +++ b/lib/parsers/shell.py @@ -1,3 +1,22 @@ +""" +Copyright (c) 2011-2013 "Johannes Findeisen and Rafael Timmerberg" + +This file is part of Linspector (http://linspector.org). + +Linspector is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as +published by the Free Software Foundation, either version 3 of the +License, or (at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . +""" + from lib.parsers.parser import Parser diff --git a/lib/processors/mariadb.py b/lib/processors/mariadb.py index 2d09875..e31e94e 100644 --- a/lib/processors/mariadb.py +++ b/lib/processors/mariadb.py @@ -1,5 +1,22 @@ """ The MariaDB processor + +Copyright (c) 2011-2013 "Johannes Findeisen and Rafael Timmerberg" + +This file is part of Linspector (http://linspector.org). + +Linspector is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as +published by the Free Software Foundation, either version 3 of the +License, or (at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . """ from lib.processors.processor import Processor diff --git a/lib/processors/mongodb.py b/lib/processors/mongodb.py index 52ba222..b5cbe0f 100644 --- a/lib/processors/mongodb.py +++ b/lib/processors/mongodb.py @@ -1,5 +1,22 @@ """ The MongoDB processor + +Copyright (c) 2011-2013 "Johannes Findeisen and Rafael Timmerberg" + +This file is part of Linspector (http://linspector.org). + +Linspector is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as +published by the Free Software Foundation, either version 3 of the +License, or (at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . """ from lib.processors.processor import Processor diff --git a/lib/processors/processor.py b/lib/processors/processor.py index 08d5c88..787cfb1 100644 --- a/lib/processors/processor.py +++ b/lib/processors/processor.py @@ -1,5 +1,22 @@ """ The processor class for postprocessing polled data. + +Copyright (c) 2011-2013 "Johannes Findeisen and Rafael Timmerberg" + +This file is part of Linspector (http://linspector.org). + +Linspector is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as +published by the Free Software Foundation, either version 3 of the +License, or (at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . """ diff --git a/lib/processors/syslog.py b/lib/processors/syslog.py index be5c0cf..5060188 100644 --- a/lib/processors/syslog.py +++ b/lib/processors/syslog.py @@ -1,5 +1,22 @@ """ The syslog processor + +Copyright (c) 2011-2013 "Johannes Findeisen and Rafael Timmerberg" + +This file is part of Linspector (http://linspector.org). + +Linspector is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as +published by the Free Software Foundation, either version 3 of the +License, or (at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . """ from lib.processors.processor import Processor diff --git a/lib/services/http.py b/lib/services/http.py index 6e8dfda..b9db8ef 100644 --- a/lib/services/http.py +++ b/lib/services/http.py @@ -6,6 +6,23 @@ content could be fetched and compared.HTTPS is not validating the server certifi This should just return 0 on success and NOT 0 on error. Just to make internals generic to just report this code and not use a parser. + +Copyright (c) 2011-2013 "Johannes Findeisen and Rafael Timmerberg" + +This file is part of Linspector (http://linspector.org). + +Linspector is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as +published by the Free Software Foundation, either version 3 of the +License, or (at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . """ import urllib diff --git a/lib/services/ping.py b/lib/services/ping.py index d123ae0..b102869 100644 --- a/lib/services/ping.py +++ b/lib/services/ping.py @@ -1,5 +1,22 @@ """ The ping service in pure Python. + +Copyright (c) 2011-2013 "Johannes Findeisen and Rafael Timmerberg" + +This file is part of Linspector (http://linspector.org). + +Linspector is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as +published by the Free Software Foundation, either version 3 of the +License, or (at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . """ # http://code.activestate.com/recipes/409689-icmplib-library-for-creating-and-reading-icmp-pack/ diff --git a/lib/services/service.py b/lib/services/service.py index d1540e4..f6459af 100644 --- a/lib/services/service.py +++ b/lib/services/service.py @@ -1,3 +1,21 @@ +""" +Copyright (c) 2011-2013 "Johannes Findeisen and Rafael Timmerberg" + +This file is part of Linspector (http://linspector.org). + +Linspector is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as +published by the Free Software Foundation, either version 3 of the +License, or (at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . +""" KEY_PARSER = "parser" KEY_COMMENT = "comment" diff --git a/lib/services/shell.py b/lib/services/shell.py index 65878fb..26512a6 100644 --- a/lib/services/shell.py +++ b/lib/services/shell.py @@ -1,5 +1,22 @@ """ The shell service. This is for executing local shell commands and retrieve the output. + +Copyright (c) 2011-2013 "Johannes Findeisen and Rafael Timmerberg" + +This file is part of Linspector (http://linspector.org). + +Linspector is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as +published by the Free Software Foundation, either version 3 of the +License, or (at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . """ from lib.services.service import Service diff --git a/lib/services/snmpget.py b/lib/services/snmpget.py index ec07b3f..dc59827 100644 --- a/lib/services/snmpget.py +++ b/lib/services/snmpget.py @@ -1,5 +1,22 @@ """ The snmpget service in pure Python. + +Copyright (c) 2011-2013 "Johannes Findeisen and Rafael Timmerberg" + +This file is part of Linspector (http://linspector.org). + +Linspector is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as +published by the Free Software Foundation, either version 3 of the +License, or (at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . """ #from pysnmp.entity.rfc3413.oneliner import cmdgen diff --git a/lib/services/ssh.py b/lib/services/ssh.py index 7bc083e..3ce2766 100644 --- a/lib/services/ssh.py +++ b/lib/services/ssh.py @@ -2,6 +2,23 @@ The ssh service This is for executing remote shell commands and retrieve the output. This service is using paramiko (http://www.lag.net/paramiko/). + +Copyright (c) 2011-2013 "Johannes Findeisen and Rafael Timmerberg" + +This file is part of Linspector (http://linspector.org). + +Linspector is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as +published by the Free Software Foundation, either version 3 of the +License, or (at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . """ import paramiko diff --git a/lib/services/tcpconnect.py b/lib/services/tcpconnect.py index 86b1b66..d1edf38 100644 --- a/lib/services/tcpconnect.py +++ b/lib/services/tcpconnect.py @@ -3,6 +3,23 @@ The tcpconnect service. This is to check if a service on a specific port is reac This should just return 0 on success and NOT 0 on error. Just to make internals generic to just report this code and not use a parser. + +Copyright (c) 2011-2013 "Johannes Findeisen and Rafael Timmerberg" + +This file is part of Linspector (http://linspector.org). + +Linspector is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as +published by the Free Software Foundation, either version 3 of the +License, or (at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . """ import socket diff --git a/lib/tasks/jabber.py b/lib/tasks/jabber.py index a3bc4cd..f1e9476 100644 --- a/lib/tasks/jabber.py +++ b/lib/tasks/jabber.py @@ -2,6 +2,23 @@ The Jabber (XMPP) task. Uses: http://xmpppy.sourceforge.net/ + +Copyright (c) 2011-2013 "Johannes Findeisen and Rafael Timmerberg" + +This file is part of Linspector (http://linspector.org). + +Linspector is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as +published by the Free Software Foundation, either version 3 of the +License, or (at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . """ import xmpp diff --git a/lib/tasks/mail.py b/lib/tasks/mail.py index 60c11e4..5551c2f 100644 --- a/lib/tasks/mail.py +++ b/lib/tasks/mail.py @@ -1,7 +1,24 @@ """ The mail task. -http://docs.python.org/2/library/email-examples.html +http://docs.python.org/2/library/email-examples.html# + +Copyright (c) 2011-2013 "Johannes Findeisen and Rafael Timmerberg" + +This file is part of Linspector (http://linspector.org). + +Linspector is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as +published by the Free Software Foundation, either version 3 of the +License, or (at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . """ import datetime diff --git a/lib/tasks/sms.py b/lib/tasks/sms.py index 203ab4d..79d07dd 100644 --- a/lib/tasks/sms.py +++ b/lib/tasks/sms.py @@ -1,5 +1,22 @@ """ The sms task. + +Copyright (c) 2011-2013 "Johannes Findeisen and Rafael Timmerberg" + +This file is part of Linspector (http://linspector.org). + +Linspector is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as +published by the Free Software Foundation, either version 3 of the +License, or (at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . """ from lib.tasks.task import Task diff --git a/lib/tasks/task.py b/lib/tasks/task.py index cf88f03..5085e00 100644 --- a/lib/tasks/task.py +++ b/lib/tasks/task.py @@ -1,5 +1,22 @@ """ The task class. + +Copyright (c) 2011-2013 "Johannes Findeisen and Rafael Timmerberg" + +This file is part of Linspector (http://linspector.org). + +Linspector is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as +published by the Free Software Foundation, either version 3 of the +License, or (at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . """ diff --git a/lib/tasks/tweet.py b/lib/tasks/tweet.py index 0c58fd2..388c7c2 100644 --- a/lib/tasks/tweet.py +++ b/lib/tasks/tweet.py @@ -2,6 +2,23 @@ The tweet/twitter task. Uses: tweepy + +Copyright (c) 2011-2013 "Johannes Findeisen and Rafael Timmerberg" + +This file is part of Linspector (http://linspector.org). + +Linspector is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as +published by the Free Software Foundation, either version 3 of the +License, or (at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . """ import tweepy diff --git a/linspector b/linspector index 4b696b7..8ba8a1d 100755 --- a/linspector +++ b/linspector @@ -1,5 +1,24 @@ #!/usr/bin/python2.7 -tt +""" +Copyright (c) 2011-2013 "Johannes Findeisen and Rafael Timmerberg" + +This file is part of Linspector (http://linspector.org). + +Linspector is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as +published by the Free Software Foundation, either version 3 of the +License, or (at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . +""" + __version__ = "0.6/TCPCONNECT" __default_config__ = "./examples/minimal.json"