| By Hovhannes Avoyan | Article Rating: |
|
| February 21, 2013 09:43 AM EST | Reads: |
802 |
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 802
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
- Cloud Expo New York: Cloud Is Changing the Economics of Business
- How Can Green Web Hosting Benefit Your Business?
- How Platfora Is Transforming Hadoop
- Learn How To Use Google Apps Script
- The Software Freedom Conservancy – Fundraising Campaign: Non-Profit Accounting Software
- Session Topics: 12th Cloud Expo / Cloud Expo New York
- The Rise of the Thin Client
- Cloud Computing Is Smart
- Convergence and Interoperability Will Define Next-Gen Cloud Architectures
- Launching Hadoop into the Cloud in Three Clicks
- Day 2 Keynote Today at Cloud Expo New York | Ignite Innovation
- Cloud People: A Who's Who of Cloud Computing
- Cloud Expo New York: Cloud Is Changing the Economics of Business
- How Can Green Web Hosting Benefit Your Business?
- Portable Experimenter’s Platform, Powered by Raspberry Pi
- How Platfora Is Transforming Hadoop
- Learn How To Use Google Apps Script
- Cloudant to Exhibit at Cloud Expo & Big Data Expo New York
- The Software Freedom Conservancy – Fundraising Campaign: Non-Profit Accounting Software
- Session Topics: 12th Cloud Expo / Cloud Expo New York
- Cloud Expo New York: Basics of SSD Technology and Its Use in Cloud
- Cloud Computing Is Simplifying Things
- New Era for Open Source Xen Begins
- After Ubuntu, Windows Looks Increasingly Bad, Increasingly Archaic, Increasingly Unfriendly
- SCO CEO Posts Open Letter to the Open Source Community
- Simula Labs Launches Hosted Delivery Platform To Enable Enterprise Open Source Adoption
- Where Are RIA Technologies Headed in 2008?
- Source Claims SCO Will Sue Google
- How Open Is "Open"? – Industry Luminaries Join the Debate
- Latest SCO News is Plain Weird
- SCO Claims Linux Lifted ELF
- IBM Tells SCO Court It Can't Find AIX-on-Power Code
- Developing an Application Using the Eclipse BIRT Report Engine API
- Should RIM BlackBerries Be Rented?
- Flashback: Investing in 'Professional Open Source' - Exclusive 2004 Interview with David Skok, Matrix Partners

























