Skip to content

pdrakeweb/hyperic-mongodb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Hyperic HQ MongoDB plugin

This project is a Hyperic HQ plugin for monitoring MongoDB

Source code is available at github.com/ClarityServices/hyperic-mongodb

For screen shots of some of the items that can be monitored, see the Hyperic HQ MongoDB plugin Wiki

Platform Support

Only supports MongoDB running on Unix, Linux and Mac since it uses a bash shell to invoke the mongo shell.

Also made it work on Windows? Please fork and submit a pull request. (Or just email me the plugin-xml and I will post the updated file)

Auto-Discovery

The MongoDB server process (mongod) is auto-discovered.

Metrics

The following metrics are available:

  • All db.serverStatus() metrics
  • Replication delay - The number of seconds that a secondary server (replica) is behind the primary server
  • Replication oplog time - Maximum time any Secondary servers can fall behind the master before needing a full re-synch
  • All server process (mongod) metrics are also available - CPU Utilization, Resident Memory, etc.

For the complete list of Metrics available, please see the HyperForge MongoDB documentation

Log File Tracking

Messages are optionally reported from mongodb.log and can be filtered by regex include/exclude.

Config File Tracking

The mongodb config file can be monitored for changes.

Control Actions

None yet. Submit any ideas as issues on github

Dependencies

Mongo shell (mongo) and Bash Shell (bash)

Mongodb Version Support

Tested on Red Hat Enterprise Linux 5 with Mongodb 1.6.5

Hyperic HQ Version Support

Tested with Hyperic HQ version 4.4 and 4.5.1

Install

Server Installation

  • Fetch the latest version of the file using something like wget or a browser:
wget --no-check-certificate https://github.com/ClarityServices/hyperic-mongodb/raw/master/mongodb-plugin.xml
  • Copy the file hyperic-mongodb.xml into the following folder under the server installation

** For Hyperic 4.5.1

hq-plugins

** For Hyperic 4.4

hq-engine/server/default/deploy/hq.ear/hq-plugins
  • Output similar to the following should appear in the server logfile (logs/server.log)
2011-02-21 13:53:53,972 INFO  [ScannerThread] [org.hyperic.hq.product.server.mbean.ProductPluginDeployer@654] HQ plugin mongodb-plugin.xml undeployed
2011-02-21 13:53:53,995 INFO  [ScannerThread] [org.hyperic.hq.product.server.mbean.ProductPluginDeployer@654] HQ plugin mongodb registered
2011-02-21 13:53:54,001 INFO  [ScannerThread] [org.hyperic.hq.product.server.session.ProductManagerEJBImpl@320] mongodb unknown -- registering
2011-02-21 13:53:54,217 INFO  [ScannerThread] [org.hyperic.hq.product.server.mbean.ProductPluginDeployer@654] HQ plugin mongodb deployed
  • If the output above does not appear in the log file ensure that the file is in the directory along with several other files ending with -plugin.xml and -plugin.jar
  • It is not necessary to restart the server, it automatically picks up new plugins.

Client Installation

  • Copy the file hyperic-mongodb.xml into the plugins folder under the client installation. The path should be similar to:

** For Hyperic 4.5.1

hq-plugins

** For Hyperic 4.4

agent/bundles/agent-4.4.0-1509/pdk/plugins/
  • Restart the agent to pull in the new plugin file

Developers

To test any changes prior to deploying

java -jar bundles/agent-4.4.0-1509/pdk/lib/hq-product.jar -Dplugins.include=mongodb -m discover -a metric

To generate updated documentation for the HyperForge Wiki, run the following command:

java -jar bundles/agent-4.4.0-1509/pdk/lib/hq-product.jar -Dplugins.exclude=vsphere -m generate -a metrics-wiki

Then update the page on HyperForge

Meta

Author

Reid Morrison :: [email protected] :: @reidmorrison

License

Copyright 2011 Clarity Services, Inc.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

About

Hyperic HQ plugin for MongoDB

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published