27 lines
537 B
Python
27 lines
537 B
Python
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"
|
|
thread = True
|
|
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'
|
|
|