Code Monkey home page Code Monkey logo

Comments (2)

spudnic avatar spudnic commented on August 11, 2024

Looked online and changing out the version to the latest package seems to do better. Added some hacked logic,
...
if platform_family == 'debian'
if major == 12
platform_family = 'ubuntu'
major = '12.04'
end
end
...

But we still seem to have problems.

Template Context:

on line #26
24: </cmd_defaults>
25:
26: <% node['thruk']['backends'].each do |id,backend| %>
27: # <%= id %>
28:

[2013-11-13T05:41:15+00:00] INFO: Running queued delayed notifications before re-raising exception
[2013-11-13T05:41:15+00:00] ERROR: Running exception handlers
[2013-11-13T05:41:15+00:00] ERROR: Exception handlers complete
Chef Client failed. 6 resources updated
[2013-11-13T05:41:15+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
[2013-11-13T05:41:15+00:00] FATAL: Chef::Mixin::Template::TemplateError: undefined method `each' for nil:NilClass

Looks like I have to define some icons? Any help would me much appreciated. I have already forked the repo and will be submitting pull requests in the next few weeks.

from cookbook-thruk.

marthag8 avatar marthag8 commented on August 11, 2024

Hi Jason,

You need to define one or more backends for thruk to get data from.

For example, in your thruk role:
"backends" => {
"shinken" => {
"name" => "External Shinken",
"type" => "livestatus",
"options" => {
"peer" => "127.0.0.01 =>50000",
},
},
},

I've also added a check in the template if no backends are defined, so it
won't die. I've uploaded it to github, so you can grab it from there!

On Wed, Nov 13, 2013 at 7:44 AM, Jason Brody-Stewart <
[email protected]> wrote:

Looked online and changing out the version to the latest package seems to
do better. Added some hacked logic,
...
if platform_family == 'debian'
if major == 12
platform_family = 'ubuntu'
major = '12.04'
end
end
...

But we still seem to have problems.
Template Context:

on line #26
24:
25:
26: <% node['thruk']['backends'].each do |id,backend| %>
27: # <%= id %>
28:

[2013-11-13T05:41:15+00:00] INFO: Running queued delayed notifications
before re-raising exception
[2013-11-13T05:41:15+00:00] ERROR: Running exception handlers
[2013-11-13T05:41:15+00:00] ERROR: Exception handlers complete
Chef Client failed. 6 resources updated
[2013-11-13T05:41:15+00:00] FATAL: Stacktrace dumped to
/var/chef/cache/chef-stacktrace.out
[2013-11-13T05:41:15+00:00] FATAL: Chef::Mixin::Template::TemplateError:
undefined method `each' for nil:NilClass

Looks like I have to define some icons? Any help would me much
appreciated. I have already forked the repo and will be submitting pull
requests in the next few weeks.


Reply to this email directly or view it on GitHubhttps://github.com//issues/1#issuecomment-28367121
.

Martha Greenberg
DevOps Manager
Email: [email protected]
Phone: +972-54-620-7351

from cookbook-thruk.

Related Issues (6)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.