ZenPack:Apache Virtual Host Modeler

From Zenoss Wiki
This is the approved revision of this page, as well as being the most recent.
Jump to: navigation, search
Nick Muir
GNU General Public License, Version 2, or later
ZenPack name
More Information
GitHub page/HomePage
Git sources (for cloning)

Apache Virtual Host Modeler ZenPack

Models Apache virtual hosts using a command modeler running apachectl -S


The ZenPack Catalog has moved to its new home at https://www.zenoss.com/product/zenpacks as of January 17, 2017. The following information may be out of date, and this page will eventually be removed.


This ZenPack is developed by the Zenoss user community and supported via our online forums. Zenoss, Inc. does not provide direct support for this ZenPack.


Version 1.0.4-beta- Download
Released on 2016/04/29
Compatible with Zenoss Core 4.2.x


Assign the modeler plugin to any device under /server and it will model then monitor the Virtual Hosts

Monitoring template requires nagios check_http plugin

Any sites running on 443 will be monitored as HTTPS and they will have the TLS certificate checked and events raised if the expiry time is 30 days or less

If the modeler gets a Syntax Error back from apachectl check that your configs are fine and that the user running apachectl has sufficient permissions to read all the necessary files

Noticed on SuSE based distros that the command is apache2ctl... for now I have been linking apachectl to it.


Normal Installation (packaged egg)

  1. Download the appropriate egg file for the version of Zenoss you are running.
  2. Ensure you are logged in as the zenoss user:
    $ sudo su - zenoss
  3. Install the ZenPack:
    $ zenpack --install ZenPacks.community.ApacheVirtualHost-*.egg
  4. Restart these services:
    $ zenoss restart

Developer Mode Installation

In order to do a development mode installation you will want to clone the existing git repository, and then use the --link flag with the zenpack command:

  1. Ensure you are logged in as the zenoss user:
    $ sudo su - zenoss
  2. Start by cloning the upstream repository:
    $ git clone https://github.com/nickmuir/ZenPacks.community.ApacheVirtualHost.git
  3. Next, perform the installation:
    $ zenpack --link --install ZenPacks.community.ApacheVirtualHost
  4. Finally, restart these serivices:
    $ zenoss restart


Purplemarker.png New: Don't forget to add yourself to the Zenoss User Map!

blog comments powered by Disqus