Monitoring external website connectivity
Posted: Fri Apr 05, 2019 2:19 pm
Is it possible to monitor connectivity between a external website and a nagios monitor without having to define host for each site to be monitored? I ask this because each host.cfg file I create for the external website shows in my hosts view as pending and its misleading as I am not monitoring the host the website is hosted on.
ex.
define host{
host_name lni ; The name we're giving to this host
alias secure.lni.wa.gov ; A longer name associated with the host
address 198.239.146.96 ; IP address of the host
;hostgroups Websites ; Host groups this host is associated with
check_command check_http_content!https://secure.lni.wa.gov!"home"
max_check_attempts 5
check_interval 5
retry_interval 1
check_period 24x7
contacts someone
notification_interval 60
notification_period 24x7
notifications_enabled 1
}
ex.
define host{
host_name lni ; The name we're giving to this host
alias secure.lni.wa.gov ; A longer name associated with the host
address 198.239.146.96 ; IP address of the host
;hostgroups Websites ; Host groups this host is associated with
check_command check_http_content!https://secure.lni.wa.gov!"home"
max_check_attempts 5
check_interval 5
retry_interval 1
check_period 24x7
contacts someone
notification_interval 60
notification_period 24x7
notifications_enabled 1
}