Page 2 of 2
Re: Website URL monitoring for site hosted on IIS windows 20
Posted: Wed May 03, 2017 8:24 am
by edwinkamal
hi tacolover101
Do I need add the hsotname in windows server etc/host
Thanks
Edwin
Re: Website URL monitoring for site hosted on IIS windows 20
Posted: Wed May 03, 2017 9:27 am
by cdienger
hostname does not need to be added to the Windows host. Nagios does need to be able to resolve the destination hostname to an IP though.
Re: Website URL monitoring for site hosted on IIS windows 20
Posted: Wed May 10, 2017 2:07 am
by edwinkamal
Hi Team
I have tried with below options with check_website plugin.
Even for this also we get HTTPS/HTTP unknown for both port 80 and 443
In commands.cfg:
define command{
command_name check_website4
command_line $USER1$/check_website -p $ARG1$ -u $ARG2$ -s -w 500 -c 1000 '$HOSTADDRESS$'
}
In your monitor file:
define host{
use windows-server ; Inherit default values from a template
host_name xyz.net ; The name we're giving to this host
alias xyz.net ; A longer name associated with the host
address xxx.xx.xx.96 ; IP address of the host
}
define service{
use generic-service
host_name xyz.net
service_description check website4
check_command check_website4!443!/tala
}
I am getting this messsge:
[root@ip-xxx-xx-xxx-137 objects]# /usr/local/nagios/libexec/check_website -p 443 -u /tala -s -w 500 -c 1000 'xyz.net'
HTTPS UNKNOWN: N/A -
https://xyz.net:443/tala
Could you please advise on this
Re: Website URL monitoring for site hosted on IIS windows 20
Posted: Wed May 10, 2017 8:11 am
by dwhitfield
I would suggest downloading a trial of XI. You can run one of the wizards in XI and just copy that check to your Core server.
There is a giant caveat to this though. You cannot install XI on top of core. You need a different VM for XI.