| By Hovhannes Avoyan | Article Rating: |
|
| February 21, 2013 09:43 AM EST | Reads: |
801 |
What is Chef?
With Chef, you write abstract definitions as source code to describe how you want each part of your infrastructure to be built, and then apply those descriptions to individual servers. The result is a fully automated infrastructure: when a new server comes online, the only thing you have to do is instruct Chef what role it should play in your architecture.
Now you can use Chef for deploying, updating and removing Monitis agent as well.
The following manual assumes that you already have configured, and are running, Chef infrastructure, so we will not discuss Chef installation and configuration procedures here, especially since it is wonderfully documented and easily referenced here !
The current version of Monitis Cookbook is tested on following operating systems:
- Debian 6.0.1 x86-64 bit
- Ubuntu 12.04 x86-64 bit
- Red Hat Enterprise Linux 6.3 x86-64 bit
- CentOS 6.2 x86-64 bit
- Fedora 17 x86-64 bit
- openSUSE 12.2 x86-64 bit
- Windows XP x86 bit
- Windows 7 x86-64 bit
- Windows Server 2003 64 bit
- Windows Server 2008 64 bit
There are 3 recipes:
install – Installs and configures Monitis monitoring Agent if not installed
update – Uninstalls and installs latest version of Monitis monitoring Agent
uninstall – Uninstalls Monitis monitoring Agent
Monitis cookbook installation is extremely easy and contains the following steps:
1. Installing from tarball
- Download the cookbook tarball
wget https://github.com/monitisexchange/monitis-chef-deployment/archive/master.zip
- Extract the cookbook tarball.
unzip master.zip
- Copy cookbook to chef cookbook folder
cp -r monitis-chef-deployment-master /var/chef/cookbooks/monitis
- Upload the cookbook to theChef Server. Use knife cookbook upload sub-command. There is no difference in its use for Open Source Chef Server, Hosted Chef or Private Chef.
knife cookbook upload monitis
- Download the cookbook from here GITHub
git clone git://github.com/monitisexchange/monitis-chef-deployment.git
- Upload the cookbook to theChef Server. Use knife cookbook upload sub-command. There is no difference in its use for Open Source Chef Server, Hosted Chef or Private Chef.
knife cookbook upload monitis
Now Monitis cookbook is installed and available in chef server, you can test and see it under the cookbooks section of chef WUI :
Before it can be used, you need to first set some attributes: installation directory and monitis username
You can set these attributes via Chef WUI, or by editing the cookbook template directly. If you have enough experience to edit cookbook, you probably won’t need to read this manual any more!
Below we illustrate how to configure Monitis agent using Chef WUI.
Setting Attributes
Attributes can be set in different levels:
1 Node level
2 Role Level
Generally you will not want to set attributes on node level, as you will then have to do this for every node separately. So we recommend always setting these attributes on Role level. (One for all)
For setting up attributes on Role level we will need :
Login to the Management Console and navigate to the Roles tab.
Click Create on the sub navigation bar.
Give the role a name and an optional description.
To add a recipe to the role, drag it from “Available Recipes” to “Run List”.
1. click “json” -> 2. “Default” from the “Default and Override Attributes” tree on the bottom left.
3. check “Autodetect type of attribute” checkbox
4. enter {“MONITIS”:{“USEREMAIL”:”YOUR_EMAIL@ADDRESS.com“,”PASSWORD”:”YOUR_MD5_PASSWORD”}}
5. click “Add Attribute”.
6) Click “Create Role” to save the new role.
Voila! You are set up and ready to use Monitis cookbook and from now on you can install Monitis agent on thousands of hosts using a single click.
Share Now:











Read the original blog entry...
Published February 21, 2013 Reads 801
Copyright © 2013 SYS-CON Media, Inc. — All Rights Reserved.
Syndicated stories and blog feeds, all rights reserved by the author.
More Stories By Hovhannes Avoyan
Hovhannes Avoyan is the CEO of Monitis, Inc., a provider of on-demand systems management and monitoring software to 50,000 users spanning small businesses and Fortune 500 companies.
Prior to Monitis, he served as General Manager and Director of Development at prominent web portal Lycos Europe, where he grew the Lycos Armenia group from 30 people to over 200, making it the company's largest development center. Prior to Lycos, Avoyan was VP of Technology at Brience, Inc. (based in San Francisco and acquired by Syniverse), which delivered mobile internet content solutions to companies like Cisco, Ingram Micro, Washington Mutual, Wyndham Hotels , T-Mobile , and CNN. Prior to that, he served as the founder and CEO of CEDIT ltd., which was acquired by Brience. A 24 year veteran of the software industry, he also runs Sourcio cjsc, an IT consulting company and startup incubator specializing in web 2.0 products and open-source technologies.
Hovhannes is a senior lecturer at the American Univeristy of Armenia and has been a visiting lecturer at San Francisco State University. He is a graduate of Bertelsmann University.
- Cloud People: A Who's Who of Cloud Computing
- New Relic Q1 2013 Blazes Past Growth Targets and Reaches 40,000 Active Customer Accounts
- The Software Freedom Conservancy – Fundraising Campaign: Non-Profit Accounting Software
- New Relic Named Best Place to Work in the Bay Area for Second Year in a Row
- MicroStrategy Announces General Availability of MicroStrategy 9.3.1
- Engine Yard Announces General Availability of PHP on Engine Yard Cloud and Support for Riak Distributed Database
- MicroStrategy Announces General Availability of MicroStrategy 9.3.1
- Altova Announces General Availability of RaptorXML
- 2013 - 2016 : solutions stabilisées, usages innovants généralisés
- Tech Trends To Watch In May 2013
- Informatique : la disparition des investissements par les entreprises !
- Social Business Intelligence Book Industry’s First Executive SBI Guide
- Cloud People: A Who's Who of Cloud Computing
- New Relic Q1 2013 Blazes Past Growth Targets and Reaches 40,000 Active Customer Accounts
- Portable Experimenter’s Platform, Powered by Raspberry Pi
- The Software Freedom Conservancy – Fundraising Campaign: Non-Profit Accounting Software
- New Relic Named Best Place to Work in the Bay Area for Second Year in a Row
- MicroStrategy Announces General Availability of MicroStrategy 9.3.1
- Engine Yard Announces General Availability of PHP on Engine Yard Cloud and Support for Riak Distributed Database
- AMAX Launches StorMax(TM) CFS, powered by IBM(R) General Parallel File System(TM) (GPFS(TM))
- HotLink Debuts Amazon EC2 Plug-in for Microsoft SCVMM with Latest Release of HotLink Hybrid Express
- MicroStrategy Announces General Availability of MicroStrategy 9.3.1
- Project Floodlight Grows to the World’s Largest SDN Ecosystem; Global Users, Contributors and Partners Innovating Using Open Source SDN
- Altova Announces General Availability of RaptorXML
- Cloud People: A Who's Who of Cloud Computing
- Red Hat Named "Platinum Sponsor" of Virtualization Conference & Expo
- An Introduction to Ant
- Cloud Expo 2011 East To Attract 10,000 Delegates and 200 Exhibitors
- Google Web Toolkit: Finally Java Has Been Put into JavaScript!
- Cloud Expo, Inc. Announces Cloud Expo 2011 New York Venue
- AJAX World RIA Conference News - AJAX & RIA with Server-Side JavaScript
- Early Notes on GoogleApps
- President & CTO of 3tera Speaking Next Week at SYS-CON's Cloud Computing Expo November 19-21 in Silicon Valley
- Rating JRuby, Jython, and Groovy on the Java Platform
- Python Creator Guido van Rossum to Present the Next-Generation Python 3000
- Rackspace Cloud APIs Open Sourced



























