Service:<div><div>define service {</div><div>  use                   generic-check-store</div><div>  hostgroup_name        Storefront</div><div>  service_description   storename</div><div>  check_command         check_store!<a href="http://storename.com">storename.com</a>!/index.php?product_id=12345!"String to find"</div>
<div>  contact_groups        Unix,ProductionSupport</div><div>  notification_interval 1440</div><div>} </div><div><br></div><div>Check command:</div><div><div>define command{</div><div>        command_name    check_store</div>
<div>        command_line    /usr/lib/nagios/plugins/check_http -I $HOSTADDRESS$ -H $ARG1$ -s $ARG3$ -u $ARG2$</div><div>        }</div></div><div><br></div><div><br></div><div>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")</div>
<div><br></div><div>This allows the same ip with different virtualhosts to be checked</div><div><br></div><div>g.;</div><div><br></div><br><div class="gmail_quote">On Thu, Jul 21, 2011 at 6:59 AM, dave stern - e-mail.pluribus.unum <span dir="ltr"><<a href="mailto:dit.dash@gmail.com">dit.dash@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">One way might be to use the check_http plug-in but<br>
have it look for a specific string in each web-page being hosted<br>
and use the warn/critical-time returns for empirical threshold<br>
<div><div></div><div class="h5"><br>
On Thu, Jul 21, 2011 at 9:02 AM,  <<a href="mailto:af.at.work@gmail.com">af.at.work@gmail.com</a>> wrote:<br>
> Hey gang, I am having some difficulty getting a single host setup that<br>
> would have multiple HTTP services attached to it. The scenario is a<br>
> load balanced group of web servers and I am looking to monitor<br>
> numerous public facing web sites that would be bound to a single load<br>
> balanced IP address. Any help would be most appreciated!<br>
><br>
> ------------------------------------------------------------------------------<br>
> 5 Ways to Improve & Secure Unified Communications<br>
> Unified Communications promises greater efficiencies for business. UC can<br>
> improve internal communications as well as offer faster, more efficient ways<br>
> to interact with customers and streamline customer service. Learn more!<br>
> <a href="http://www.accelacomm.com/jaw/sfnl/114/51426253/" target="_blank">http://www.accelacomm.com/jaw/sfnl/114/51426253/</a><br>
> _______________________________________________<br>
> Nagios-users mailing list<br>
> <a href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a><br>
> <a href="https://lists.sourceforge.net/lists/listinfo/nagios-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagios-users</a><br>
> ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.<br>
> ::: Messages without supporting info will risk being sent to /dev/null<br>
><br>
<br>
------------------------------------------------------------------------------<br>
5 Ways to Improve & Secure Unified Communications<br>
Unified Communications promises greater efficiencies for business. UC can<br>
improve internal communications as well as offer faster, more efficient ways<br>
to interact with customers and streamline customer service. Learn more!<br>
<a href="http://www.accelacomm.com/jaw/sfnl/114/51426253/" target="_blank">http://www.accelacomm.com/jaw/sfnl/114/51426253/</a><br>
_______________________________________________<br>
Nagios-users mailing list<br>
<a href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/nagios-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagios-users</a><br>
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.<br>
::: Messages without supporting info will risk being sent to /dev/null<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Gary Every<br>"Pay it Forward!"<br><br>
</div>