2023-06-30 11:40:48 +00:00
|
|
|
import os
|
|
|
|
|
|
|
|
#Client configuration
|
|
|
|
client = ['client 1','client 2']
|
|
|
|
|
|
|
|
#SSH configuration
|
|
|
|
class ssh_conf:
|
|
|
|
port = 22
|
|
|
|
username = '<user>'
|
|
|
|
password ='/<user_home>/.ssh/id_rsa.pub'
|
|
|
|
|
|
|
|
#Flask configuration
|
|
|
|
class flask_conf:
|
|
|
|
port = 8090
|
|
|
|
host = "0.0.0.0"
|
2023-07-02 17:44:37 +00:00
|
|
|
thread = True
|
2023-06-30 11:40:48 +00:00
|
|
|
debug = False
|
|
|
|
reloader = False
|
|
|
|
title = 'Pymonit'
|
|
|
|
|
|
|
|
#Path configuration
|
|
|
|
class paths :
|
|
|
|
basedir = os.path.abspath(os.path.dirname(__file__))
|
|
|
|
agent_path = basedir+'/agent.py'
|
|
|
|
remote_path = '/var/tmp/script.py'
|
|
|
|
|