Page 1 of 1
how can monitor a define webpage from a system
Posted: Mon Nov 14, 2016 8:01 am
by baber
Dear All
Hi
i have a web page that open from vm1 now i want to monitor this page from vm1 if page not open from vm1 appear critical error otherwise show ok
how can do this
BR
Re: how can monitor a define webpage from a system
Posted: Mon Nov 14, 2016 11:09 am
by dwhitfield
Hi,
We are going to need a little clarification.
When you say you have the web page open on vm1, do you mean there is a browser with the page open on vm1 or do you mean the webserver is running on vm1?
I assume vm1 is just a name you are giving a virtual machine in this case. What OS/version is the VM running?
What version of Nagios Core are you running?
To you get you started, you might want to look through
https://exchange.nagios.com/directory/P ... ansactions
Re: how can monitor a define webpage from a system
Posted: Mon Nov 14, 2016 12:01 pm
by rkennedy
@dwhitfield is right based on what sort of testing you're looking for.
If it's just a simple check, use check_http, something like this -
Code: Select all
[root@localhost tmp]# /usr/local/nagios/libexec/check_http -H google.com
HTTP OK: HTTP/1.1 301 Moved Permanently - 559 bytes in 0.436 second response time |time=0.436059s;;;0.000000 size=559B;;;0
Re: how can monitor a define webpage from a system
Posted: Mon Nov 14, 2016 1:45 pm
by baber
so thanks
but my os is windows not linux i have added my windows os to nagios for example from my windows server i want chk google page is up or down just from that windows server
Re: how can monitor a define webpage from a system
Posted: Mon Nov 14, 2016 2:52 pm
by dwhitfield
For Windows, you are going to want to look at
https://assets.nagios.com/downloads/nag ... ndows.html. As you can see from the diagram on the right of that link, you can check just about anything you want with NSClient.
As for specific scripts, you'll want to take a look at
https://support.nagios.com/kb/article.p ... ategory=34
If you run into problems, you'll want to look at
https://assets.nagios.com/downloads/nag ... utions.pdf.
While the documentation is mostly written for XI, a lot of it still applies. After all, NRPE works with Core.
There is a caveat to NSClient: it is not our product. That said, obviously, we have documentation built around their product, and we are here to help.