[chef] Re: Re: nagios cookbook


Chronological Thread 
  • From: Nikhil Shah < >
  • To: " " < >
  • Cc: " " < >
  • Subject: [chef] Re: Re: nagios cookbook
  • Date: Thu, 28 Nov 2013 12:53:35 -0500

Tim,

Thanks! I now recall you mentioned that before. That worked like a charm!

Thanks,

Nikhil Shah

On Nov 26, 2013, at 5:23 PM, Tim Smith < "> > wrote:

Have you increased the solr config for MaxFieldLength?  Windows nodes are very large due to the crazy data that Ohai collects on Windows.  If you haven’t increased the max size to a much larger number, then the Nagios server probably isn’t getting back those nodes when performing a search.

See for a nice explanation of how to make the change:

https://github.com/pikesley/catering-college/issues/4
Limelight Networks
Tim Smith  - Systems Engineer 
m: +1 707.738.8132



On Nov 26, 2013, at 2:22 PM, Nikhil Shah < "> > wrote:

I upgraded my ruby version as well as the gems (since this was what was required to run knife winrm). Once I did that, as I am trying to add a new host, its not adding to the nagios server. I was able to deploy nsclient ++ to the node and the chef-server is able to find this node:



chef-repo_prod]# knife search node 'V2*' -i
1 items found

V2MQ13.AVL.TheOrchard




As far as what is being passed as the role:

name "base_windows"
description "Base role applied to all Windows nodes."
run_list(
"recipe[nsclient::default]"
)

default_attributes(
  "nagios" => {
    "server_role" => "monitoring"
  }
)


As I run chef-client on the nagios server, it’s not adding as a hosts. I even tried to add this node as ‘unmanaged_hosts’ data bag to see if it would pick up. 

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.

§