Hey Ben,
I think this information would make for a great watchdog entry in the
"Running in a production environment" page:
http://docs.geoserver.org/stable/en/user/production/index.html


On Wed, Oct 26, 2011 at 5:00 AM, Ben Caradoc-Davies
<[email protected]> wrote:
>
>  From the Ministry of Using Sledgehammers to Crack Nuts:
>
> Nagios is a popular service monitoring system:
> http://nagios.org/
> http://en.wikipedia.org/wiki/Nagios
> http://nagios.sourceforge.net/docs/3_0/quickstart.html
>
> We use Nagios. It is completely configurable and rather full-featured.
> Terrifyingly full-featured, in fact.
>
> What you want to do is this:
> http://nagios.sourceforge.net/docs/3_0/monitoring-publicservices.html
>
> The gotcha with GeoServer is that a failed WFS request with an OWS
> exception comes back with an HTTP 200 OK. This can happen if GeoServer
> loses its connection to the database backend. (You'll in general only
> get a 503 when tomcat gets stuck or can't load GeoServer.) Search the
> developer list for "HTTP" for the long version. The Nagios solution is
> to use a regular expression test on a WFS response, looking for an
> expected FeatureCollection. From our custom-commands.cfg:
>
> # 'check_http_url_regex' command definition
> define command{
>         command_name    check_http_url_regex
>         command_line    /usr/lib/nagios/plugins/check_http -H
> $HOSTADDRESS$ -u "$ARG1$" -r "$ARG2$" -e 200
>        }
>
> See: http://nagiosplugins.org/man/check_http
>
> And then we can use this in a service definition to check that we
> actually get a FeatureCollection in the response:
>
> define service {
>         hostgroup_name                  ourhostname
>         service_description             Our GeoServer WFS
>         check_command
> check_http_url_regex!/geoserver/wfs?request=GetFeature&version=1.1.0&typeName=ns:OurFeatureType&maxfeatures=1!wfs:FeatureCollection
>
> ...
>
> If you do not have a Unix box to do the monitoring (and robust
> monitoring should be on a separate host!), you might be able to use
> Nagwin, the Windows distribution (I have not used Nagwin).
> http://www.nagios.org/news/77-news-announcements/273-introducing-nagwin-nagios-for-windows
> http://exchange.nagios.org/directory/Distributions/Packaged-Distributions/Nagwin--2D-Nagios-for-Windows/details
>
> I am sure there are easier ways of shallowly monitoring a single windows
> service. If you want an enterprise-ready solution, consider Nagios.
>
> Kind regards,
> Ben.
>
> On 26/10/11 00:59, Jonathan Harahush wrote:
> > My apologies in advance – I’m not a sysadmin, so my question might be very 
> > basic.  Every so often, my instance of Geoserver will stop working and I’ll 
> > get a 503 error.  Restarting Tomcat fixes the issue and usually it happens 
> > because of memory issues, according to the log file.  This is on Windows 
> > Server 2008.  Is there an easy way to set up an alert from the server so 
> > that I can receive an e-mail when this problem occurs?
> >
> > Thanks,
> >
> > Jonathan Harahush | GIS Specialist | Administration&  Finance
> > Direct 303-480-6746 | Fax 303-480-6790 | E-mail [email protected]
> >
> > [cid:[email protected]]<http://www.drcog.org/>
> >
> > [cid:[email protected]]<http://gis.drcog.org/datacatalog/subjects/community-profiles>
> > New, updated profiles of all DRCOG's participating governments
> > are now available. 
> > Learn<http://gis.drcog.org/datacatalog/subjects/community-profiles>  about 
> > your community.
> >
> > [cid:[email protected]]<http://www.facebook.com/Denver.Regional.Council.of.Governments>
> >     [cid:[email protected]]<http://twitter.com/#!/DRCOGorg>
> >
> >
>
> --
> Ben Caradoc-Davies <[email protected]>
> Software Engineer
> CSIRO Earth Science and Resource Engineering
> Australian Resources Research Centre
>
> ------------------------------------------------------------------------------
> The demand for IT networking professionals continues to grow, and the
> demand for specialized networking skills is growing even more rapidly.
> Take a complimentary Learning@Cisco Self-Assessment and learn
> about Cisco certifications, training, and career opportunities.
> http://p.sf.net/sfu/cisco-dev2dev
> _______________________________________________
> Geoserver-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geoserver-users



--
Gabriel Roldan
OpenGeo - http://opengeo.org
Expert service straight from the developers.

------------------------------------------------------------------------------
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn 
about Cisco certifications, training, and career opportunities. 
http://p.sf.net/sfu/cisco-dev2dev
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to