Page tree

SAYMON документация

Skip to end of metadata
Go to start of metadata

HTTP-request probe performs HTTP-requests: GET, POST, HEAD, PUT, PATCH and DELETE.

Examples

FieldDescription
Request typeType of the http-request - GET, POST, HEAD, PUT, PATCH or DELETE
URLURL of the resource to check
HTTP headersAdditional http-headers you wish to send with the request, e.g. "Content-Type = application/json"
Request bodyOptional data to send with POST, PUT and PATCH requests, e.g. {"login":"demo", "password":"demo"}
Send response bodySwitcher disables sending html body text from agent to system server, that saves network traffic in cases when only HTTP Status Code or Response Time are have to be monitored.
Response formatIf JSON or XML-formatted data is returned, it is automatically parsed to a table.
TimeoutMaximum time to perform the check in milliseconds
PeriodDescribes how often to perform the check (60 seconds by default)

Result

After the check has been done the result is displayed in the data table:

FieldDescription
statusCodeHTTP status code
statusTextText interpretation of HTTP status code
responseTimeMsResponse time in milliseconds
headers.XxxHTTP-response headers

body

Response body
body.YyyResponse body fields, in case of JSON or XML-formatted data is returned

Terminal counterpart

This check is the counterpart of the curl terminal command:

curl -sD - -X GET https://saas.saymon.info/

HTTP/2 200 
server: nginx/1.13.6
date: Wed, 06 Dec 2017 08:49:33 GMT
content-type: text/html; charset=utf-8
content-length: 669
last-modified: Thu, 30 Nov 2017 09:41:32 GMT
etag: "5a1fd24c-29d"
access-control-allow-origin: *
charset: UTF-8
accept-ranges: bytes

<!doctype html>
<html>
<head>
  <title>Loading...</title>
  <meta charset="utf-8">
  <link rel="shortcut icon" href="/images/favicon.ico?1512034892710" type="image/x-icon">
</head>
<body>
<link rel="stylesheet" href="css/saymon.css?1512034892710">
<link rel="stylesheet" href="saymon.local/css/saymon.local.css?1512034892710">
<style type="text/css" id="pointer-position"></style>
<div class="loader">
  <div class="bounce bounce-1"></div>
  <div class="bounce bounce-2"></div>
  <div class="bounce bounce-3"></div>
</div>
<div class="js-main-region main-region"></div>
  <script data-main="js/main" src="js/main-built.js?1512034892710"></script>
</body>
</html>
curl -sD - -X POST https://saas.saymon.info/node/api/users/session -H "Content-Type: application/json" -d '{"login":"demo", "password":"demo"}'

HTTP/2 200 
server: nginx/1.13.6
date: Wed, 06 Dec 2017 08:49:56 GMT
content-type: application/json
content-length: 38
set-cookie: sid=72174edb-5c18-49f2-809f-cd685ea17638; Path=/
access-control-allow-origin: *

"72174edb-5c18-49f2-809f-cd685ea17638"

Known problems and errors

Sensor error! Prime size must be multiple of 64, and can only range from 512 to 1024 (inclusive)


Sensor error! unable to find valid certification path to requested target


Sensor error! Received fatal alert: handshake_failure


These problems are often for Agents with outdated Java 1.6 / 1.7 versions for https-requests.

There are 2 solutions:

  1. update system Java to v.1.8 on a host, where Agent is installed;
  2. download and install the latest version of the Agent with Java 1.8 embedded.


Sensor error! Target host is not specified

Check the address specified in URL field - protocol prefix is required:

right - https://saymon.info

wrong - saymon.info


  • No labels