Hi,
As I mentioned before, the http_check command is not available in the Nagios Server.
Is it possible to install that command?
Kind regards,
PSA
Monitor an external website
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Monitor an external website
So, it'smbellerue wrote:I'm sorry, I had that backwards. It's check_http
Also, if your proxy doesn't require a username/password, then you can skip that part. Let's just see if it tries to go out and reach the site.
Code: Select all
/usr/local/nagios/libexec/check_http -I <SiteIP>Code: Select all
/usr/local/nagios/libexec/http_check -I <SiteIP>Re: Monitor an external website
Hi,
[root@localhost ~]# check_http
-bash: check_http: command not found
[root@localhost ~]# http_check
-bash: http_check: command not found
[root@localhost ~]#
No luck...
[root@localhost ~]# check_http
-bash: check_http: command not found
[root@localhost ~]# http_check
-bash: http_check: command not found
[root@localhost ~]#
No luck...
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Monitor an external website
you aren't in the directory.... You need the full path
for example
Code: Select all
/usr/local/nagios/libexec/check_http -I <SiteIP>Code: Select all
[root@localhost ~]# /usr/local/nagios/libexec/check_http -I www.nagios.com
HTTP OK: HTTP/1.1 301 Moved Permanently - 461 bytes in 0.069 second response time |time=0.069000s;;;0.000000 size=461B;;;0Re: Monitor an external website
Hi,
This is the result:
[root@localhost libexec]# /usr/local/nagios/libexec/check_http -I www.psasines.pt
CRITICAL - Socket timeout
Kind regards,
PSA
This is the result:
[root@localhost libexec]# /usr/local/nagios/libexec/check_http -I www.psasines.pt
CRITICAL - Socket timeout
Kind regards,
PSA
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Monitor an external website
Are you sure you have connectivity to that site from your Nagios server? I get this
can you ping it?
Code: Select all
[root@localhost ~]# /usr/local/nagios/libexec/check_http -I www.psasines.pt
HTTP OK: HTTP/1.1 301 Moved Permanently - 409 bytes in 0.686 second response time |time=0.685648s;;;0.000000 size=409B;;;0Code: Select all
ping www.psasines.pt