[chef] Re: nagios hosts


Chronological Thread 
  • From: Tim Smith < >
  • To:
  • Subject: [chef] Re: nagios hosts
  • Date: Thu, 19 Sep 2013 11:37:46 -0700

The Nagios cookbook creates host groups for each OS so that you can apply base OS monitoring in a mixed OS environment.  Without that you'd have to create fake roles for each OS and apply the monitoring of things like load, drive space, etc to those roles.  If you really don't want those host groups you can hack it out of the cookbook:

In the hosts.cfg.erb template remove all references to <%= n['os'] %>.
In server.rb find the each loop that adds n['os'] to the host groups variable and remove the entire thing.
Limelight Networks
Tim Smith  - Systems Engineer 
m: +1 707.738.8132



On Sep 19, 2013, at 10:24 AM, Nikhil Shah < "> > wrote:

For anyone that has configured nagios, why/how does this work.

I ran knife bootstrap winrm …. -r 'role[vector] 
This role has services tied to 

However, its adding this host to the following host group

define host {
  use server
  address XX.XX.XX.XX
  host_name V2MQ14
  hostgroups all,vector,windows

I simply want just the host groups to be vector and not windows/all…




Nikhil Shah  System Administrator

The Orchard® / www.theorchard.com

t (+1) 212.308.5648 / f (+1) 212.201.9203
23 E. 4th St., 3rd Fl / New York, NY 10003

The Daily Rind™ / www.dailyrindblog.com
Facebook / @orchtweets

Privileged And Confidential Communication.
This electronic transmission, and any documents attached hereto, (a) are protected by the Electronic Communications Privacy Act (18 USC §§ 2510-2521), (b) may contain confidential and/or legally privileged information, and (c) are for the sole use of the intended recipient named above. If you have received this electronic message in error, please notify the sender and delete the electronic message. Any disclosure, copying, distribution, or use of the contents of the information received in error is strictly prohibited.
 





Archive powered by MHonArc 2.6.16.

§