Page 1 of 1

Check full URL Nagios Core

Posted: Wed Apr 10, 2019 11:10 am
by ctolosat
Hello

Please you helpme:

How is it configuration for check full URL in nagios core 4.4.2, for example:

example with error: CRITICAL - Socket timeout
define service{
use servicio-appconvenio ; Name of service template to use
host_name app-paginawebs
service_description Web: Ficha Proteccion Social https://pagina.web.cl/idea/views/users/login.php
is_volatile 0
check_period 24x7
max_check_attempts 60
normal_check_interval 5
retry_check_interval 1
contact_groups admins
notification_interval 240
notification_period 24x7
notification_options c,r
check_command check_ping!100.0,20%!500.0,60%
check_command check_http! -H pagina.web.cl -u https://pagina.web.cl/idea/views/users/login.php
}
Thank
Carola T. :roll:

Re: Check full URL Nagios Core

Posted: Wed Apr 10, 2019 11:59 am
by scottwilkerson
Assuming check_http is setup with a command like this

Code: Select all

$USER1$/check_http $ARG1$
Your check_command should be something line this

Code: Select all

check_command check_http! -H pagina.web.cl -u '/idea/views/users/login.php' -S -f follow
ctolosat wrote:check_command check_ping!100.0,20%!500.0,60%
check_command check_http! -H pagina.web.cl -u https://pagina.web.cl/idea/views/users/login.php
I also noted you have 2 check commands specified which would not be allowed