Looking for an experienced Linux System Administrator / DevOps to diagnose the causes of periodic crashes of the online store. It is necessary not to temporarily eliminate the symptoms, but to find the root cause of the problem, explain it, and propose an optimal solution.What is known The online store has been operating for over 15 years. Linux server. PHP 5.6. MySQL. OPcache is enabled. SSH access is available. Access to the hosting panel is available. Access to logs is available. Server load graphs have been added.Symptoms Periodically: the site stops opening; errors occur: 503 Service Unavailable; HTTP 508; Client.Timeout exceeded while awaiting headers; the response time of the site sometimes increases to 8–11 seconds. Sharp peaks in CPU, memory, and Entry Processes are observed in the load graphs. No critical errors were found in the available PHP logs.Required to conduct a full diagnosis; to find the root cause of the problem; to identify the bottleneck; to explain the cause of the crashes; to propose an optimal way to eliminate it; to perform the necessary work after approval.Mandatory experience Linux; SSH; Apache / Nginx / OpenLiteSpeed; PHP; MySQL; server performance optimization; finding the causes of periodic crashes and high load.Before starting work, please answer How many years have you worked with Linux servers? Have you had experience in finding similar problems? What tools do you plan to use for diagnosis? Have you worked with old PHP projects (PHP 5.x)? What is the cost of the initial diagnosis? What is your hourly rate for further work (if needed)? When can you start? Please do not send template proposals. In your response, briefly describe what you will check first. If the problem is successfully identified and resolved, I am ready for long-term cooperation in server administration and development.
Proposals are currently absent
Proposals are currently absent
-
Pavel Petrenko
29 March 2023
Не отрабатывает скрипт при запуске контекста для входящего или исходящего звонка
-
Pavel Petrenko
29 March 2023
Параметры метода:
• api_key – ключ для авторизации.
• params – массив с данными клиента. Поля массива:
o call_id – идентификатор звонка
o date_start – дата/время начала звонка в формате ‘Y-m-d
H:i:s’, timezone UTC
o date_end – дата/время окончания звонка в формате ‘Y-m-d
H:i:s’, timezone UTC
o direction – направление звонка. Обязательный параметр.
Возможные значения:
§ Inbound – Входящий
§ Outbound – Исходящий
o status – статус звонка. Обязательный параметр.
o phone – номер телефона клиента. Обязательный параметр.
o sip – SIP оператора. Обязательный параметр.
Результат метода:
• success – true/false
Cкрипт(pyton)
#!/usr/bin/python3
import sys
import requests
import json
# проверяем, что были переданы аргументы скрипту
try:
_, call_id, date_start, date_end, status, direction, phone, sip = tuple(sys.argv)
except:
sys.stdout.write(f'VERBOSE "NO ARGS IN set_call SCRIPT" 1\n')
sys.stdout.flush()
sys.exit()
# настройки для API запроса
URL = "https://crm.com/
custom/service/v4_1_rest/rest. php" API_KEY = "
TzbFY7MuyGNuh1YnWPcsKJWIV2j " # параметры для метода set_call
params = {
"call_id": call_id,
"date_start": date_start,
"date_end": date_end,
"status": status,
"direction": direction,
"phone": phone,
"sip": sip,
}
# данные для запроса в формате JSON
data = {
"api_key": API_KEY,
"params": params,
}
# отправляем запрос методом POST
try:
response = requests.post(URL, json=data, timeout=2.50)
except:
sys.stdout.write('SET VARIABLE agi_error_var "%s"\n' % "api timeout")
sys.stdout.flush()
sys.exit()
# проверяем успешность выполнения запроса
result = json.loads(response.text)
exec_result = result['success']
sys.stdout.write(f'VERBOSE "crm_set_call SCRIPT EXECUTION SUCCESS: {exec_result}" 1\n')
sys.stdout.flush()
# записываем данные запроса в файл для отладки
with open("/tmp/filele.txt", "w+") as f:
f.write(json.dumps(data))
sys.exit()
-
Vladimir Polyansky 29 March 2023Так у вас не получится. Давайте доступ на вебку и консоль, сделаю как надо
Current freelance projects in the category Software & Server Configuration
Description: Greetings! I am looking for a specialist/integrator for fiscalization systems and platforms for an online store. I have opened an individual entrepreneur (IE), have a digital signature key and an IBAN account. There are no other accounts (in Checkbox, platform systems, CRM) yet — everything needs to be registered and set up from scratch, turnkey.
I need help installing Word, Excel, and PowerPoint on a Mac. I'm looking for a specialist who can help me do this remotely,