Commit graph

47 commits

Author SHA1 Message Date
e5cc2a4596 Made the logger an object to be multiprocessing compatible.
The initialization of the Configuration() object can not log anymore since the Log() object initialization requires the Configuration(). Maybe I will find a better solution in the future. For now, it fixes bugs and makes my life easier.
2022-10-11 02:57:13 +02:00
4ae153f3be Added process name and thread ID to logging. 2022-10-11 01:14:24 +02:00
8a2bc8046b Moved lish plugin to bin/lish since it should not be part of the core.
Lish can be used when the RPC plugin is loaded. Renamed Lish plugin to RPC. It is better to make Lish a own program since it would not work in daemon mode.
2022-10-06 23:51:53 +02:00
851505bff3 Some more configuration changes and inline comments. 2022-10-06 23:40:36 +02:00
ec39acfb02 Small logging fixes and more inline comments to explain this feature in detail. 2022-10-06 23:28:55 +02:00
7806511884 Reverted some of the last commit. Megabytes make sense for log_file_size. 2022-10-06 23:20:37 +02:00
d179e478eb Some logging configuration fixes.
log_file_size is now in bytes only. megabytes are obsolete since we all have a calculator... ;)
2022-10-06 23:14:28 +02:00
e5dbdc7264 Some more config stuff for better debugging in identifier test_test1. 2022-10-06 22:56:17 +02:00
04e30b3301 Changes the name of a monitors job_id to monitor_id.
The job id should be only part of the job to not be confused.
2022-10-06 22:32:34 +02:00
ddc20342d6 Some more logging stuff. 2022-10-06 05:30:05 +02:00
5d99640480 Some more logging stuff. 2022-10-06 05:05:41 +02:00
390f768172 Added a default job interval if not configured in core or monitor configuration. 2022-10-06 04:08:19 +02:00
a2fe8e8196 Some more error handling and logging. 2022-10-06 03:24:16 +02:00
fc925d1d82 Made the monitor interval optional and set 300 seconds to default. 2022-10-06 03:08:16 +02:00
7e228a3196 Some more logging stuff. log is now a global function as argument.
Don't know if it is good, but it made things easier to me.
2022-10-06 02:42:15 +02:00
e665933bfb Some more logging stuff... 2022-10-05 05:50:13 +02:00
60d4cd9dd8 Added log_file_size_bytes to configuration. It can be used when log_file_size is not set. 2022-10-04 23:23:36 +02:00
5ca94ec14b Added FritzboxPhoneStatusService service and some cosmetic changes. 2022-10-04 22:59:04 +02:00
dfedaa5d2e Configuration and monitor configuration update. 2022-10-04 02:19:18 +02:00
6b89907ee7 Some more inline comments and cosmetic changes. 2022-10-03 12:31:47 +02:00
118445404f Some more scheduling config stuff in core/linspector.py. 2022-10-03 05:28:30 +02:00
f4e3b9c01b Cosmetic changes and some more inline comments. 2022-10-01 22:02:32 +02:00
9c9274f0b4 Mostly cleanups and added comments to the config files. 2022-10-01 10:25:42 +02:00
70e59f571c Bug fixes. There are still more in monitor.py! 2022-10-01 06:18:08 +02:00
2178452f39 Simplified logging, enabled start_date in monitor configuration and enabled timezone configuration. 2022-10-01 06:05:30 +02:00
549510c3a4 Lot of bug fixing, optimizations and refactoring. 2022-10-01 04:37:35 +02:00
ee423c01bb Backup commit. Many internally changes. Known issues still need to be fixed. 2022-09-30 05:43:35 +02:00
8808b657c4 Basic scheduling works now but execution of services is not available. Lot of stuff done... 2022-09-30 02:14:36 +02:00
ca6b424473 Added basic scheduler code. 2022-09-29 22:21:31 +02:00
2c7a870fc7 README and linspector.conf update. 2022-09-29 07:04:44 +02:00
dbb0e23091 Added file logging and a new parameter (-s) for logging to stdout. 2022-09-29 02:59:40 +02:00
e4ffdedb56 Refactoring, fixes and really a lot of new ideas... 2022-09-28 08:27:51 +02:00
3de67966f4 Lot of new ideas defined in configuration files and tons of refactoring. 2022-09-28 02:04:50 +02:00
947a14bdde Added dynamic plugin loading. Made all dict keys lowercase so configuation keys are not case sensitive. And even some fixes. 2022-09-27 23:19:10 +02:00
98fa44f6ff Renamed .ini files to .conf. Look more familiar to me. Some fixes too. 2022-09-27 21:37:04 +02:00
c17b061fd0 Fixed dynamic loading of notifications, tasks and service. My last implementation was wrong and ugly. Now it seems to be the pythonic way. 2022-09-27 21:18:47 +02:00
8dcacfb4e5 Lot of optimizing and many fixes. Refactoring like every day... ;) 2022-09-27 09:25:28 +02:00
8d9ec5c73b Added dynamic loading of tasks and services, refactoring and fixes. 2022-09-27 07:00:17 +02:00
a0892d0980 Added dynamic loading of notifications and services, refactoring and lot of fixes. 2022-09-27 06:07:55 +02:00
2384c789a7 Enabled loading of monitors in etc/, some refactoring and fixes. 2022-09-27 02:28:09 +02:00
7d5e372410 Cleanups and README update. 2022-09-26 23:37:40 +02:00
e77af2a7e0 Refactoring and README update. 2022-09-25 18:10:37 +02:00
37b08cb565 Reverted a lot to find an error but maybe it is better like this. Maybe subdirs wil become a good idea again but it makes it harder to configure. 2022-09-25 07:31:48 +02:00
c7913c0481 Lot of fixes to be more Linspector style. 2022-09-25 06:47:10 +02:00
cb6488d7da Added lot more Linspector design conepts. 2022-09-25 06:31:36 +02:00
6dac6a1f66 Implemented more Linspector design ideas. 2022-09-25 04:29:45 +02:00
0c64555155 Initial commit after complete rewrite of Linspector. 2022-09-25 00:39:51 +02:00