Check full URL Nagios Core

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
ctolosat
Posts: 1
Joined: Wed Apr 10, 2019 7:25 am

Check full URL Nagios Core

Post 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:
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Check full URL Nagios Core

Post 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
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked