Home

Search Posts:

Archives

Login

May 2012

S M T W H F S
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31

Please log in

Listing comments

Post Author Email Url Body
Creating check_mk nagios configurations from puppet Michael Klatsky michaelk@tnrglobal.com www.tnrglobal.com First of all- thanks for your work on this. We are using check_mk and puppet and your work on this is much appreciated. I am running into a problem, however. When running puppetd on the client, the following error is being thrown: err: Could not retrieve catalog from remote server: Error 400 on SERVER: Failed to parse template checkmk/collection.mk.erb: undefined method `include?' for :_timestamp:Symbol at /etc/puppet/modules/checkmk/manifests/init.pp:46 on node Would you have any suggestions? Thanks! Michael Klatsky TNR Global, LLC Hadley, MA 01062 Show Edit Destroy
Creating check_mk nagios configurations from puppet Jeremy jeremy.thornhill@gmail.com http://weblog.etherized.com That's curious; I expected all the keys in there to be strings, but... that seems to imply that you have a non-string object as a key in your scope. I didn't even know that was possible :) Keep in mind that this module assumes you're running a recent puppet ( I use 2.7, and yes, I know I'm using evil unscoped variables and that this module needs to be rejiggered before 2.8 comes around). I've also only tested it against dashboard, but I don't really see why it wouldn't work with foreman. One possible workaround for you would be to modify line 8 in collection.mk.erb to replace: if k.include?("check_mk_tags") with: if k.respond_to?('include?') && k.include?("check_mk_tags") That should skip any non-string variable names. But, I do wonder if this is a symptom of something else. Show Edit Destroy

New comment