Всем привет!
У меня сервер с вэб-приложением возвращает только число на определенный GET запрос. Адрес примерно такой https://sandbox.server.ru/rest/requestCount. Возвращает, например просто 6565.
Как построить граф по результатам ответов сервера.
Я пробовал вот так:
zabbix_agentd -t web.page.get[sandbox.server.ru,rest/requestCount,443]
Получаю вот такое
web.page.get[sandbox.billing.ru,,443] [t|HTTP/1.1 400 Bad Request
Server: nginx
Date: Tue, 19 Feb 2019 15:50:52 GMT
Content-Type: text/html
Content-Length: 248
Connection: close
<html>
<head><title>400 The plain HTTP request was sent to HTTPS port</title></head>
<body>
<center><h1>400 Bad Request</h1></center>
<center>The plain HTTP request was sent to HTTPS port</center>
<hr><center>nginx</center>
</body>
</html>]
Пробовал вот так
zabbix_agentd -t web.page.get[sandbox.server.ru,rest/requestCount,80]
Получаю вот такое:
web.page.get[sandbox.billing.ru,,80] [t|HTTP/1.1 301 Moved Permanently
Server: nginx
Date: Tue, 19 Feb 2019 15:51:57 GMT
Content-Type: text/html
Content-Length: 162
Connection: close
Location: https://localhost/
<html>
<head><title>301 Moved Permanently</title></head>
<body>
<center><h1>301 Moved Permanently</h1></center>
<hr><center>nginx</center>
</body>
</html>]
Что я делаю неправильно? Дело явно в HTTPS, потому что вот такое работает
zabbix_agentd -t web.page.get[api.ipify.org]
web.page.get[api.ipify.org] [t|HTTP/1.1 200 OK
Server: Cowboy
Connection: close
Content-Type: text/plain
Vary: Origin
Date: Tue, 19 Feb 2019 15:54:03 GMT
Content-Length: 10
Via: 1.1 vegur
*.*.*.*
У меня сервер с вэб-приложением возвращает только число на определенный GET запрос. Адрес примерно такой https://sandbox.server.ru/rest/requestCount. Возвращает, например просто 6565.
Как построить граф по результатам ответов сервера.
Я пробовал вот так:
zabbix_agentd -t web.page.get[sandbox.server.ru,rest/requestCount,443]
Получаю вот такое
web.page.get[sandbox.billing.ru,,443] [t|HTTP/1.1 400 Bad Request
Server: nginx
Date: Tue, 19 Feb 2019 15:50:52 GMT
Content-Type: text/html
Content-Length: 248
Connection: close
<html>
<head><title>400 The plain HTTP request was sent to HTTPS port</title></head>
<body>
<center><h1>400 Bad Request</h1></center>
<center>The plain HTTP request was sent to HTTPS port</center>
<hr><center>nginx</center>
</body>
</html>]
Пробовал вот так
zabbix_agentd -t web.page.get[sandbox.server.ru,rest/requestCount,80]
Получаю вот такое:
web.page.get[sandbox.billing.ru,,80] [t|HTTP/1.1 301 Moved Permanently
Server: nginx
Date: Tue, 19 Feb 2019 15:51:57 GMT
Content-Type: text/html
Content-Length: 162
Connection: close
Location: https://localhost/
<html>
<head><title>301 Moved Permanently</title></head>
<body>
<center><h1>301 Moved Permanently</h1></center>
<hr><center>nginx</center>
</body>
</html>]
Что я делаю неправильно? Дело явно в HTTPS, потому что вот такое работает
zabbix_agentd -t web.page.get[api.ipify.org]
web.page.get[api.ipify.org] [t|HTTP/1.1 200 OK
Server: Cowboy
Connection: close
Content-Type: text/plain
Vary: Origin
Date: Tue, 19 Feb 2019 15:54:03 GMT
Content-Length: 10
Via: 1.1 vegur
*.*.*.*
Comment