|
1 | 1 | #! /usr/bin/env python3 |
2 | 2 | """ |
3 | | - wrapper A small tool which wraps services, discovery and poller php scripts |
4 | | - in order to run them as threads with Queue and workers |
| 3 | +wrapper A small tool which wraps services, discovery and poller php scripts |
| 4 | + in order to run them as threads with Queue and workers |
5 | 5 |
|
6 | | - Authors: Orsiris de Jong <contact@netpower.fr> |
7 | | - Neil Lathwood <neil@librenms.org> |
8 | | - Job Snijders <job.snijders@atrato.com> |
| 6 | +Authors: Orsiris de Jong <contact@netpower.fr> |
| 7 | + Neil Lathwood <neil@librenms.org> |
| 8 | + Job Snijders <job.snijders@atrato.com> |
9 | 9 |
|
10 | | - Distributed poller code (c) 2015, GPLv3, Daniel Preussker <f0o@devilcode.org> |
11 | | - All code parts that belong to Daniel are enclosed in EOC comments |
| 10 | + Distributed poller code (c) 2015, GPLv3, Daniel Preussker <f0o@devilcode.org> |
| 11 | + All code parts that belong to Daniel are enclosed in EOC comments |
12 | 12 |
|
13 | | - Date: Sep 2021 |
| 13 | +Date: Sep 2021 |
14 | 14 |
|
15 | | - Usage: This program accepts three command line arguments |
16 | | - - the number of threads (defaults to 1 for discovery / service, and 16 for poller) |
17 | | - - the wrapper type (service, discovery or poller) |
18 | | - - optional debug boolean |
| 15 | +Usage: This program accepts three command line arguments |
| 16 | + - the number of threads (defaults to 1 for discovery / service, and 16 for poller) |
| 17 | + - the wrapper type (service, discovery or poller) |
| 18 | + - optional debug boolean |
19 | 19 |
|
20 | 20 |
|
21 | | - Ubuntu Linux: apt-get install python-mysqldb |
22 | | - FreeBSD: cd /usr/ports/*/py-MySQLdb && make install clean |
23 | | - RHEL 7: yum install MySQL-python |
24 | | - RHEL 8: dnf install mariadb-connector-c-devel gcc && python -m pip install mysqlclient |
| 21 | +Ubuntu Linux: apt-get install python-mysqldb |
| 22 | +FreeBSD: cd /usr/ports/*/py-MySQLdb && make install clean |
| 23 | +RHEL 7: yum install MySQL-python |
| 24 | +RHEL 8: dnf install mariadb-connector-c-devel gcc && python -m pip install mysqlclient |
25 | 25 |
|
26 | | - Tested on: Python 3.6.8 / PHP 7.2.11 / CentOS 8 / AlmaLinux 8.4 |
| 26 | +Tested on: Python 3.6.8 / PHP 7.2.11 / CentOS 8 / AlmaLinux 8.4 |
27 | 27 |
|
28 | | - License: This program is free software: you can redistribute it and/or modify it |
29 | | - under the terms of the GNU General Public License as published by the |
30 | | - Free Software Foundation, either version 3 of the License, or (at your |
31 | | - option) any later version. |
| 28 | +License: This program is free software: you can redistribute it and/or modify it |
| 29 | + under the terms of the GNU General Public License as published by the |
| 30 | + Free Software Foundation, either version 3 of the License, or (at your |
| 31 | + option) any later version. |
32 | 32 |
|
33 | | - This program is distributed in the hope that it will be useful, but |
34 | | - WITHOUT ANY WARRANTY; without even the implied warranty of |
35 | | - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General |
36 | | - Public License for more details. |
| 33 | + This program is distributed in the hope that it will be useful, but |
| 34 | + WITHOUT ANY WARRANTY; without even the implied warranty of |
| 35 | + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General |
| 36 | + Public License for more details. |
37 | 37 |
|
38 | | - You should have received a copy of the GNU General Public License along |
39 | | - with this program. If not, see https://www.gnu.org/licenses/. |
| 38 | + You should have received a copy of the GNU General Public License along |
| 39 | + with this program. If not, see https://www.gnu.org/licenses/. |
40 | 40 |
|
41 | | - LICENSE.txt contains a copy of the full GPLv3 licensing conditions. |
| 41 | + LICENSE.txt contains a copy of the full GPLv3 licensing conditions. |
42 | 42 | """ |
43 | 43 |
|
44 | 44 | import logging |
|
0 commit comments