28 lines
559 B
Python
28 lines
559 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 = False
|
||
|
debug = False
|
||
|
reloader = False
|
||
|
ssl = 'adhoc'
|
||
|
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'
|
||
|
|