Commit 4bdac50d authored by Roque's avatar Roque

monitoring script draft

parent 64d61235
name = "test officejs monitoring"
software_release = 'https://lab.nexedi.com/nexedi/slapos/raw/1.0.137/software/monitor/software.cfg'
computer_id = 'COMP-812'
instance_guid = 'SOFTINST-129951'
filter_kw = {'computer_guid': computer_id}
request_dict = {
'partition_reference': name,
'software_release': software_release,
'shared': False,
'software_type': 'edgetest',
'partition_parameter_kw': {
# 'nameserver': region_definition['nameserver'],
# 'check-frontend-ip': region_definition['check-frontend-ip']
},
'filter_kw': filter_kw
}
request(**request_dict)
filter_kw = {
'instance_guid': instance_guid
}
request_dict = {
'partition_reference': 'https://texteditor.app.officejs.com/',
'software_release': software_release,
'partition_parameter_kw': {
'url': 'https://texteditor.app.officejs.com/',
'check-status-code': '200',
'check-frontend-ip': '123 345', # these should be the urls generated in the slave !
'check-maximum-elapsed-time': '1',
},
'software_type': 'edgetest',
'shared': True,
'filter_kw': filter_kw
}
request(**request_dict)
\ No newline at end of file
slapos console --cfg /srv/slapgrid/slappart6/srv/runner/monitoring/slapos.cfg $*
[slapos]
master_url = https://slap.vifib.com/
[slapconsole]
cert_file = /srv/slapgrid/slappart6/srv/runner/monitoring/certificate.pem
key_file = /srv/slapgrid/slappart6/srv/runner/monitoring/key.pem
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment