URL Monitoring.
URL Monitoring.
Hello All:
i'm facing a few issues trying to configure a website monitoring
attached is a screenshot.
I was able to get PING and SSL certificate working, but DNS IP Match, DNS resolution and the webcontent is not working.
Can someone please assist in how to configure it?
i'm facing a few issues trying to configure a website monitoring
attached is a screenshot.
I was able to get PING and SSL certificate working, but DNS IP Match, DNS resolution and the webcontent is not working.
Can someone please assist in how to configure it?
You do not have the required permissions to view the files attached to this post.
-
npolovenko
- Support Tech
- Posts: 3457
- Joined: Mon May 15, 2017 5:00 pm
Re: URL Monitoring.
Hello, @lpereira. I would like to see your host and service definitions for this plugin. You can find them in CCM or in:
and look for the file that says: AGENDA***.cfg
and also i'd need: and look for the file that says: AGENDA***.cfg
Please upload the contents of these files. You may remove all the sensitive information. Or you may send the files to me in a PM, that way i'll be able to actually test the config on my XI as well.
Code: Select all
cd /usr/local/nagios/etc/services/and also i'd need:
Code: Select all
cd /usr/local/nagios/etc/hosts/Please upload the contents of these files. You may remove all the sensitive information. Or you may send the files to me in a PM, that way i'll be able to actually test the config on my XI as well.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: URL Monitoring.
npolovenko wrote:Hello, @lpereira. I would like to see your host and service definitions for this plugin. You can find them in CCM or in:and look for the file that says: AGENDA***.cfgCode: Select all
cd /usr/local/nagios/etc/services/
and also i'd need:and look for the file that says: AGENDA***.cfgCode: Select all
cd /usr/local/nagios/etc/hosts/
Please upload the contents of these files. You may remove all the sensitive information. Or you may send the files to me in a PM, that way i'll be able to actually test the config on my XI as well.
i have send you the PM with the info requested.
regards
Re: URL Monitoring.
I have sent you the file and the file content via PM. have you received it?npolovenko wrote:Hello, @lpereira. I would like to see your host and service definitions for this plugin. You can find them in CCM or in:and look for the file that says: AGENDA***.cfgCode: Select all
cd /usr/local/nagios/etc/services/
and also i'd need:and look for the file that says: AGENDA***.cfgCode: Select all
cd /usr/local/nagios/etc/hosts/
Please upload the contents of these files. You may remove all the sensitive information. Or you may send the files to me in a PM, that way i'll be able to actually test the config on my XI as well.
-
npolovenko
- Support Tech
- Posts: 3457
- Joined: Mon May 15, 2017 5:00 pm
Re: URL Monitoring.
@lpereira, I received your config files. Looks like you're using an internal IP address for your checks, and it also appears that ICMP is turned off on the web server.
DNS checks will not work when you supply a local IP address in the arguments.
Now as far as the failing web page content check, try to get rid of -u "/ag****/" part. And rerun the command. You may copy the arguments from the XI and just run them from the command line, for now:
I'm not able to test the string match part by myself because the ICMP is unavailable for the web address that you provided.
DNS checks will not work when you supply a local IP address in the arguments.
Now as far as the failing web page content check, try to get rid of -u "/ag****/" part. And rerun the command. You may copy the arguments from the XI and just run them from the command line, for now:
Code: Select all
cd /usr/local/nagios/libexec/
./check_http -H local_ip -s "string"
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: URL Monitoring.
npolovenko wrote:@lpereira, I received your config files. Looks like you're using an internal IP address for your checks, and it also appears that ICMP is turned off on the web server.
DNS checks will not work when you supply a local IP address in the arguments.
Now as far as the failing web page content check, try to get rid of -u "/ag****/" part. And rerun the command. You may copy the arguments from the XI and just run them from the command line, for now:I'm not able to test the string match part by myself because the ICMP is unavailable for the web address that you provided.Code: Select all
cd /usr/local/nagios/libexec/ ./check_http -H local_ip -s "string"
Ok so should i use the public IP instead the private one?. If ICMP is blocked should i enable it?.
also check http still failing
Code: Select all
[root@nagios libexec]# ./check_http -H 17X.XXX.XXX -s "APLICACIÓN" -S -p 443
HTTP CRITICAL: HTTP/1.1 302 Object moved - string 'APLICACIÓN' not found on 'https://17X.XXX.XXX/' - 479 bytes in 0.011 second response time |time=0.010790s;;;0.000000 size=479B;;;0
-
npolovenko
- Support Tech
- Posts: 3457
- Joined: Mon May 15, 2017 5:00 pm
Re: URL Monitoring.
@lpereira, You can enable ICMP and you'll be able to run a ping check against the website URL or external IP, as well as run DNS lookup services. Or you could just delete these services in the CCM for now...Depends on how important are the DNS service checks for you.
Now as far as your failing "string search" check. If you take a look at the source code for that login page you provided all the content is hidden behind the javascript. So your only option would be to chnage the command to run the check against some HTML tag value.
PS: replace agd... with the correct word.
Now as far as your failing "string search" check. If you take a look at the source code for that login page you provided all the content is hidden behind the javascript. So your only option would be to chnage the command to run the check against some HTML tag value.
Code: Select all
./check_http -H internal_ip -f follow -s "theme" -S -u "/agd..../login?returnUrl=%2F"Code: Select all
./check_http -H internal_ip -f follow -s "vendor.bundle" -S -u "/agd..../login?returnUrl=%2F"As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: URL Monitoring.
I think that is working but i'm not completely sure
if i Add the String "agenda", i have no "string not found message", also i have the same output if i leave the string option in blank
But if i introduce an invalid String, it does say "string not found"
is does indicate that everything is ok with the "agenda" word??
if i Add the String "agenda", i have no "string not found message", also i have the same output if i leave the string option in blank
Code: Select all
[root@nagios libexec]# ./check_http -H 1XX.XXX.XXX -f follow -s "Agenda" -S -u "/XXX/login?returnUrl=%2F" -p 443
HTTP OK: HTTP/1.1 200 OK - 1207 bytes in 0.011 second response time |time=0.010741s;;;0.000000 size=1207B;;;0
[root@nagios libexec]# ./check_http -H 1XX.XXX.XXX -f follow -s " " -S -u "/XXX/login?returnUrl=%2F" -p 443
HTTP OK: HTTP/1.1 200 OK - 1207 bytes in 0.010 second response time |time=0.010274s;;;0.000000 size=1207B;;;0
Code: Select all
[root@nagios libexec]# ./check_http -H 11XX.XXX.XXX -f follow -s "AgendaS" -S -u "/XXX/login?returnUrl=%2F" -p 443
HTTP CRITICAL: HTTP/1.1 200 OK - string 'Agendas' not found on 'https://1XX.XXX.XXX:443/XXX/login?returnUrl=%2F' - 1207 bytes in 0.010 second response time |time=0.010416s;;;0.000000 size=1207B;;;0
-
npolovenko
- Support Tech
- Posts: 3457
- Joined: Mon May 15, 2017 5:00 pm
Re: URL Monitoring.
@lpereira, Exactly, it means everything is "ok".
**I will explain in more detail to avoid confusion.
The word "Agenda" is in the title so the check returns HTTP OK: HTTP/1.1 200 OK
You're searching for an empty string and it finds it, of course, the result is HTTP OK: HTTP/1.1 200 OK
You're searching for non existing string, so the check returns HTTP CRITICAL: HTTP/1.1 200 OK. Critical because the string was not found and HTTP 200 OK because the webpage exists.
**I will explain in more detail to avoid confusion.
Code: Select all
[root@nagios libexec]# ./check_http -H 1XX.XXX.XXX -f follow -s "Agenda" -S -u "/XXX/login?returnUrl=%2F" -p 443Code: Select all
[root@nagios libexec]# ./check_http -H 1XX.XXX.XXX -f follow -s " " -S -u "/XXX/login?returnUrl=%2F" -p 443Code: Select all
[root@nagios libexec]# ./check_http -H 11XX.XXX.XXX -f follow -s "AgendaS" -S -u "/XXX/login?returnUrl=%2F" -p 443As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: URL Monitoring.
The 200 OK is just the HTTP response code. The actual plugin's status is HTTP CRITICAL.lpereira wrote: is does indicate that everything is ok with the "agenda" word??
Former Nagios employee
https://www.mcapra.com/
https://www.mcapra.com/