diff --git a/.idea/misc.xml b/.idea/misc.xml index be346b96..59427579 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -1,6 +1,6 @@ - + diff --git a/.idea/quokka.iml b/.idea/quokka.iml index 844e0185..3682b108 100644 --- a/.idea/quokka.iml +++ b/.idea/quokka.iml @@ -4,7 +4,7 @@ - + diff --git a/quokka/__init__.py b/quokka/__init__.py index 131b2f5d..a553196f 100644 --- a/quokka/__init__.py +++ b/quokka/__init__.py @@ -61,6 +61,7 @@ import quokka.views.worker_views import quokka.models + db.create_all() from quokka.models.apis import ( @@ -69,23 +70,12 @@ import_services, import_workers, ) -from quokka.models.apis import get_all_devices, set_facts -from quokka.models.Host import Host import_devices(filename="devices.yaml", filetype="yaml") import_compliance(filename="compliance.yaml") import_services(filename="services.yaml") import_workers(filename="workers.yaml", filetype="yaml") -# Host.query.delete() - -# Reset time-series data tables -from quokka.models.DeviceStatus import DeviceStatus -from quokka.models.HostStatus import HostStatus -from quokka.models.ServiceStatus import ServiceStatus - -db.session.commit() - from quokka.controller.ThreadManager import ThreadManager ThreadManager.start_device_threads( @@ -100,15 +90,12 @@ ThreadManager.start_worker_thread(worker_monitor_interval) ThreadManager.start_db_maintenance_thread() -from quokka.controller.CaptureManager import CaptureManager - -capture_manager = CaptureManager() -from quokka.controller.PortscanManager import PortscanManager - -portscan_manager = PortscanManager() -from quokka.controller.TracerouteManager import TracerouteManager - -traceroute_manager = TracerouteManager() +# from quokka.controller.CaptureManager import CaptureManager +# capture_manager = CaptureManager() +# from quokka.controller.PortscanManager import PortscanManager +# portscan_manager = PortscanManager() +# from quokka.controller.TracerouteManager import TracerouteManager +# traceroute_manager = TracerouteManager() def shutdown():