Website URL monitoring for site hosted on IIS windows 2012

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.
edwinkamal
Posts: 6
Joined: Wed Apr 26, 2017 2:14 am

Re: Website URL monitoring for site hosted on IIS windows 20

Post by edwinkamal »

hi tacolover101

Do I need add the hsotname in windows server etc/host

Thanks
Edwin
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Website URL monitoring for site hosted on IIS windows 20

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
edwinkamal
Posts: 6
Joined: Wed Apr 26, 2017 2:14 am

Re: Website URL monitoring for site hosted on IIS windows 20

Post 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
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Website URL monitoring for site hosted on IIS windows 20

Post 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.
Locked