Single host, multiple HTTP services

Gary Every gevery at gmail.com
Thu Jul 21 16:26:31 CEST 2011


Service:
define service {
  use                   generic-check-store
  hostgroup_name        Storefront
  service_description   storename
  check_command
check_store!storename.com!/index.php?product_id=12345!"String
to find"
  contact_groups        Unix,ProductionSupport
  notification_interval 1440
}

Check command:
define command{
        command_name    check_store
        command_line    /usr/lib/nagios/plugins/check_http -I $HOSTADDRESS$
-H $ARG1$ -s $ARG3$ -u $ARG2$
        }


That will check the ip with the specific hostname,  direct it to the
appropriate page (/index.php?product_id=12345 and find whatever string you
expect to see on that particular page ("String to find")

This allows the same ip with different virtualhosts to be checked

g.;


On Thu, Jul 21, 2011 at 6:59 AM, dave stern - e-mail.pluribus.unum <
dit.dash at gmail.com> wrote:

> One way might be to use the check_http plug-in but
> have it look for a specific string in each web-page being hosted
> and use the warn/critical-time returns for empirical threshold
>
> On Thu, Jul 21, 2011 at 9:02 AM,  <af.at.work at gmail.com> wrote:
> > Hey gang, I am having some difficulty getting a single host setup that
> > would have multiple HTTP services attached to it. The scenario is a
> > load balanced group of web servers and I am looking to monitor
> > numerous public facing web sites that would be bound to a single load
> > balanced IP address. Any help would be most appreciated!
> >
> >
> ------------------------------------------------------------------------------
> > 5 Ways to Improve & Secure Unified Communications
> > Unified Communications promises greater efficiencies for business. UC can
> > improve internal communications as well as offer faster, more efficient
> ways
> > to interact with customers and streamline customer service. Learn more!
> > http://www.accelacomm.com/jaw/sfnl/114/51426253/
> > _______________________________________________
> > 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
> >
>
>
> ------------------------------------------------------------------------------
> 5 Ways to Improve & Secure Unified Communications
> Unified Communications promises greater efficiencies for business. UC can
> improve internal communications as well as offer faster, more efficient
> ways
> to interact with customers and streamline customer service. Learn more!
> http://www.accelacomm.com/jaw/sfnl/114/51426253/
> _______________________________________________
> 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
>



-- 
Gary Every
"Pay it Forward!"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20110721/5633fafb/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
5 Ways to Improve & Secure Unified Communications
Unified Communications promises greater efficiencies for business. UC can 
improve internal communications as well as offer faster, more efficient ways
to interact with customers and streamline customer service. Learn more!
http://www.accelacomm.com/jaw/sfnl/114/51426253/
-------------- next part --------------
_______________________________________________
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