shuckins wrote:
and bind it to this class. Now, all your sites will be monitored, with just these 2 steps! You don't have to set any custom strings, since you can specify a variable in the template which can work for ALL the cases you would have. With a template, you don't need to do any copy and pasting, and likely no customization in each case.

Thanks for the help! Just one problem with the above: This assumes that
each machine hosts just a single site. In my case I have around 200
virtual hosts being hosted on one machine.

I go into a lot more detail and reasoning on this process (and cover some more complicated cases you might very well run into) in a HowTo I just wrote regarding website monitoring using the HttpMonitor ZenPack (which uses check_http). It is located here: http://www.zenoss.com/community/docs/howtos/monitoring-websites-with-httpmonitor

I have read over that and successfully set it up. However, that document
also says:

There are some cases you may encounter which will require some changes in this setup. The most common might be if you are monitoring the webserver that hosts a website and then want to add monitoring for the site as well. If the IP of the server matches the IP of your

Wouldn't this be the vast majority of cases? Only really large sites
tend to have a load balancer in front of them. Some of mine do but many
do not.

It goes on to say:

If there is a conflict, you can get around it by adding the site monitoring onto the webserver itself. Thus, you would create a new Performance Template similar to the one we made above, except that Host should hard-coded to the domain of your site.

Ok, so I remove the websites I created from /WWW so we don't get
conflicts. The basic problem here is that I have many domains pointing
at the same IP and doing virtual hosting on that IP. And I want to be
able to monitor all of the virtual hosts. And it is not behind a load
balancer. I cannot add the monitoring to the host itself and hard-code
the host to the domain of the site because they are not the same. So it
then goes on to say:

You have to change the Host in this way if the name of your webserver
device is not the same as your website (e.g. your webserver is "superbox.mycompany.com" and your website is "mycompany.com"). If their names do match, you can copy the Performance Template described in the steps above into /Devices and then bind it to your webserver just as described above in binding it to a site device.

I have read this over and over again and it is very confusing. The first
sentence does not make much sense. Change it in what way? Then following
the next sentence since the names do not match I copied the performance
template I created in /WWW to /Devices and bound it to my webserver
device. Now what? Before, when I bound it to /WWW I could create
websites in /WWW and they would be monitored. But now that I have it
bound to a host I am not sure how to specify the websites to monitor.

I think perhaps I need to make a local copy of the template that I
bound, then click the template "indexpagechecker" to go into it, then
click the data source "indexpage", and edit the HostName to be the name
of the site I want to monitor.

At this point it doesn't really seem any better than what I was doing
before. It's a lot of clicking around to add each host and it looks like
I need to bind a separate performance template for each of the many
sites I want to monitor. Hmm...actually, it doesn't look possible to bind more than one copy of the indexpagechecker template to the device. So I have no idea how I would add multiple hosts (virtual hosts actually) to check to this device. Any ideas?

And then I try to add some graphs to the indexpagechecker performance template which I was able to bind to my device. The howto document says:

To create a graph of these for a website you have added, once the
Performance Template is bound to it and working, go to the
Performance Template you added, indexcheck. Click the drop down under
Graphs. One you might want to add could be called "ResponseTime". In
the graph edit screen, you can select the datasources you want to
display. In this case, select "indexpage_time". Add units (seconds)
if you wish, then Save.

I don't see any way to select the datasources in the graph edit screen. The only dropdown menus in the graph definition I created (which I called "ResponseTime") are booleans for Log and Base1024. I did see Units in there which I set to "seconds".

Any idea why I don't see a dropdown to select datasources here?

--
Tracy R Reed                  Read my blog at http://ultraviolet.org
Key fingerprint = D4A8 4860 535C ABF8 BA97  25A6 F4F2 1829 9615 02AD
Non-GPG signed mail gets read only if I can find it among the spam.
_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users

Reply via email to