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
Author(s)
Nick Muir
License
GNU General Public License, Version 2, or later
ZenPack name
ZenPacks.community.ApacheVirtualHost
More Information
GitHub page/HomePage
Git sources (for cloning)
Link




Apache Virtual Host Modeler ZenPack

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

Warning

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.

Support

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.

Releases

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

Background

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.

Installation

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

Discuss

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

blog comments powered by Disqus