Remote URL check

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
rkymtnhigh
Posts: 95
Joined: Tue May 12, 2015 11:53 am

Remote URL check

Post by rkymtnhigh »

We have a web server that I need to hit a URL from each night at the same time. These servers are Windows.

My current thinking: using NRPE to run a script on the remote host that loads the URL.

I have been looking for a suitable powershell or vbs script that will check this HTTPS site, but the one's I've come across either don't appear to work with HTTPS, or give me the results in some external file.

What would you guys do?

Thanks!

RMH
bwallace
Posts: 1145
Joined: Tue Nov 17, 2015 1:57 pm

Re: Remote URL check

Post by bwallace »

The "Website URL" wizard should have you running these checks in no time, scripts / NRPE should not be necessary.

https://www.youtube.com/watch?v=7UeWeko ... AC46F099DE
Be sure to check out the Knowledgebase for helpful articles and solutions!
rkymtnhigh
Posts: 95
Joined: Tue May 12, 2015 11:53 am

Re: Remote URL check

Post by rkymtnhigh »

From what I can tell, that doesn't open the URL from the host I need it opened from (host overrides in place there).
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Remote URL check

Post by rkennedy »

Just to clarify - when you mention 'These servers are Windows', are you referring to the machines running the web server, or the machine you're looking to use as an intermediate?

If it's the second option (your intermediate is a Windows machine), take a look at these two plugins available on our Exchange -
https://exchange.nagios.org/directory/P ... pt/details
https://exchange.nagios.org/directory/P ... pe/details
Former Nagios Employee
rkymtnhigh
Posts: 95
Joined: Tue May 12, 2015 11:53 am

Re: Remote URL check

Post by rkymtnhigh »

Yes, I apologize for not clarifying. The servers I need to actually execute the check are Windows.
I will look into those two plugins. Thank you!
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Remote URL check

Post by lmiltchev »

I will look into those two plugins. Thank you!
Let us know if any of these plugins works for you.
Be sure to check out our Knowledgebase for helpful articles and solutions!
thenomad
Posts: 35
Joined: Thu Mar 03, 2016 10:55 am

Re: Remote URL check

Post by thenomad »

If you need other than basic authentication or no authentication with a site these will not work.
rkymtnhigh
Posts: 95
Joined: Tue May 12, 2015 11:53 am

Re: Remote URL check

Post by rkymtnhigh »

Ah, so the perl script needs perl to run (would like to avoid installing anything extra, these are hardened web servers), and the exe seems to only support HTTP / Port 80 - I need HTTPS / 443.

Anything else out there?

Thanks!
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Remote URL check

Post by rkennedy »

I don't think Powershell or batch is going to have the power that perl does, and as you're using Windows - you're pretty limited.

Your webserver's should have perl installed already, do they not?

I was able to find one more that is PHP supported, https://exchange.nagios.org/directory/P ... tp/details
Former Nagios Employee
rkymtnhigh
Posts: 95
Joined: Tue May 12, 2015 11:53 am

Re: Remote URL check

Post by rkymtnhigh »

Unfortunately no perl or php :(
Locked