nagios url checks
Tim Dunphy
bluethundr at jokefire.com
Fri Jan 20 00:28:53 CET 2012
the check url with check_http results in warning in the web interface:
FOO.com
Notifications for this service have been disabled
UNKNOWN 01-19-2012 17:12:04 0d 0h 0m 9s 1/4 check_http: Warning threshold must be integer - /index.jsp
the command definition is set to this:
'check_url' command definition
define command{
command_name check_url
command_line $USER1$/check_http -H $HOSTADDRESS$ -u $ARG1$ -w $ARG2$ -c $ARG3$
}
the service definition is set to this:
define service{
use local-service ; Name of service template to use
host_name localhost
service_description foo.com
check_command check_url!foo.com!/index.jsp!5!10
notifications_enabled 0
}
the command I am trying to use does work on the command line:
[root at mlb-nag ~]# /usr/local/nagios/libexec/check_http -H foo.com -u /index.jsp -w 5 -c 10
HTTP OK: HTTP/1.0 200 OK - 143385 bytes in 0.161 second response time |time=0.161110s;5.000000;10.000000;0.000000 size=143385B;;;0
The reason I am taking this approach is that the URL is a large load balanced web environment with over 200 web servers and the load balancer is set to not respond to pings. If I use a traditional host check, the host is reported as 'down' tho the URL check usually works if handled in this manner. I am attempting to monitor the URL in such a way that the host check is not reported as down.
thanks
tim
------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list