Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
en:documentation:03_monitoring:06_web_monitoring [2021/06/21 16:13]
jimmy.olano [Webservice and API Monitoring] Error de migración.
en:documentation:03_monitoring:06_web_monitoring [2021/11/05 12:05] (current)
Line 264: Line 264:
 ==== Simple HTTP Authentication ==== ==== Simple HTTP Authentication ====
  
-Some websites might require [[wp>Basic_access_authentication|simple HTTP authentication]]. Generaly it is used as a fast authentication, a "hi" of minimum security that allows accessing advanced security checks (encryption, data persistance, etc.)+Some websites might require [[wp>Basic_access_authentication|simple HTTP authentication]]. Generally, it is used as quick authentication, a "hi" of minimum security that allows accessing advanced security checks (encryption, data persistance, etc.)
  
-{{:wiki:conexion_http.png?650  }}+{{  :wiki:conexion_http.png?650  }}
  
 It can be configured in the advanced check options (or directly in the WEB task definition) with the following configuration tokens: It can be configured in the advanced check options (or directly in the WEB task definition) with the following configuration tokens:
Line 272: Line 272:
 **Check type** **Check type**
  
-HTTP server check type. ;http auth (login): HTTP user. ;http auth (password): Password. **Proxy auth realm**+HTTP server check type.
  
-Auth realm's name. ;Proxy auth (server): Domain and HTTP port on which to listen on. **Proxy URL**+**http auth (login)**
  
-Proxy server url. ;Proxy auth (login)Proxy connection user. ;Proxy auth (pass)Proxy connection password.+HTTP user. 
 + 
 +**http auth (password)** 
 + 
 +Password. 
 + 
 +**Proxy auth realm** 
 + 
 +Auth realm's name. 
 + 
 +**Proxy auth (server)** 
 + 
 +Domain and HTTP port on which to listen on. 
 + 
 +**Proxy URL** 
 + 
 +Proxy server url. 
 + 
 +**Proxy auth (login)** 
 + 
 +Proxy connection user. 
 + 
 +**Proxy auth (pass)** 
 + 
 +Proxy connection password.
  
 Full example: Full example:
Line 293: Line 317:
  
 </code> </code>
 +
 +<WRAP center round important 60%>The use of quotation marks in the password for ''http_auth_pass'' is not supported. Avoid using single quotes '' ' ''.
 +
 +</WRAP>
  
  
Line 375: Line 403:
  
 ==== HTTPS Monitoring ==== ==== HTTPS Monitoring ====
 +
 Goliat is able to check both HTTP and HTTPS. To carry out checks on secured websites which use HTTPS, incorporate the protocol into its URL, e.g.: Goliat is able to check both HTTP and HTTPS. To carry out checks on secured websites which use HTTPS, incorporate the protocol into its URL, e.g.:
  
-''0@@''+<code> 
 +task_begin 
 +get https://www.google.com/accounts/ServiceLogin?service=mail&passive=true&rm=false&continue=https%3A%2F%2Fmail.google.com%2Fmail%2F%3Fui%3Dhtml%26zy%3Dl&bsv=zpwhtygjntrz&ss=1&scc=1<mpl=default<mplcache=2 
 +cookie 1 
 +resource 0 
 +check_string Google 
 +task_end 
 + 
 +</code> 
  
 ==== Advanced Options ==== ==== Advanced Options ====
 === Modifying HTTP Headers === === Modifying HTTP Headers ===
-With the //header// option, you are able to modify HTTP headers or create your own. The example below changes the //Host// HTTP header: 
  
 +With the //header// option, you are able to modify HTTP headers or create your own. The example below changes the //Host// HTTP header:
 +<code>
  task_begin  task_begin
  get http://192.168.1.5/index.php  get http://192.168.1.5/index.php
  header Host 192.168.1.1  header Host 192.168.1.1
  task_end  task_end
 +
 +</code>
 +
  
 === Debugging Web checks === === Debugging Web checks ===
-If you want to debug Web checks, add the ''debug <log_file>'' option. The files ''log_file.req'' and ''log_file.res'' will be created along with the contents of the HTTP request and response: 
  
 +If you want to debug Web checks, add the ''debug <log_file>'' option. The files ''log_file.req'' and ''log_file.res'' will be created along with the contents of the HTTP request and response:
 +<code>
  task_begin  task_begin
  get http://192.168.1.5/index.php  get http://192.168.1.5/index.php
  debug /tmp/request.log  debug /tmp/request.log
  task_end  task_end
 +
 +</code>
 +
  
 === Using CURL instead of LWP === === Using CURL instead of LWP ===
-LWP library sometimes crashes when multiple threads issue HTTPS requests simultaneously (due to an OpenSSL constraint). The alternative is to use the [[https://curl.se/dlwiz/|**curl** tool]] To solve this problem, edit the file named ''/etc/pandora/pandora_server.conf'' and the following line: 
  
- web_engine curl+LWP library sometimes crashes when multiple threads issue HTTPS requests simultaneously (due to an OpenSSL constraint). The alternative is to use the [[https://curl.se/dlwiz/|curl tool]] To solve this problem, edit the file named ''/etc/pandora/pandora_server.conf'' and the following line: 
 +<code> 
 + 
 +web_engine curl 
 + 
 +</code>
  
 Restart Pandora FMS Server, and the CURL binary will be used to perform web checks instead of LWP. Restart Pandora FMS Server, and the CURL binary will be used to perform web checks instead of LWP.
 +
  
 ===== Advanced Transactional Monitoring ===== ===== Advanced Transactional Monitoring =====
  
-In addition to the feature offered by Goliath, there are other ways to carry out web transactional monitoring.  +In addition to the feature offered by Goliath, there are other ways to carry out web transactional monitoring. 
-  * In a distributed way (UX), deployed as an "agent" in systems different to that of the server, even in unaccessible networks.  + 
-  * In a [[en:documentation:03_monitoring:13_user_monitorization|centralized way (WUX)]]+  * [[:en:documentation:03_monitoring:13_user_monitorization#differences_between_ux_and_wux_monitoring|In a distributed way (UX)]], deployed as an "agent" in systems different to that of the server, even in unaccessible networks. 
 +  * In a centralized way (WUX) 
 + 
 +[[:en:documentation:start|Go back to Pandora FMS documentation index]]
  
-[[en:documentation:start|Go back to Pandora FMS documentation index]] 
  
ºº