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
how can monitor a define webpage from a system
-
dwhitfield
- Former Nagios Staff
- Posts: 4583
- Joined: Wed Sep 21, 2016 10:29 am
- Location: NoLo, Minneapolis, MN
- Contact:
Re: how can monitor a define webpage from a system
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
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
@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 -
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
Former Nagios Employee
Re: how can monitor a define webpage from a system
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
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
-
dwhitfield
- Former Nagios Staff
- Posts: 4583
- Joined: Wed Sep 21, 2016 10:29 am
- Location: NoLo, Minneapolis, MN
- Contact:
Re: how can monitor a define webpage from a system
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.
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.