Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

crashing check.pp and api/config.pp #154

Closed
rhoml opened this issue Feb 11, 2014 · 8 comments
Closed

crashing check.pp and api/config.pp #154

rhoml opened this issue Feb 11, 2014 · 8 comments

Comments

@rhoml
Copy link
Contributor

rhoml commented Feb 11, 2014

I've been trying to configure sensu-puppet v1.0.0 and I found some issues regarding this two files.

check.pp

timeout             => $timeout,
aggregate           => $aggregate,
handle              => $handle,
publish             => $publish,

Error:

  • Invalid parameter timeout
  • Invalid parameter aggregate
  • Invalid parameter handle
  • Invalid parameter publish

api/config.pp

sensu::api_user
sensu::api_password

Error:

  • Invalid parameter user
  • Invalid parameter password

Although I see that the types are correct and they have the attributes correctly defined.

@jlambert121
Copy link
Contributor

rhoml, I'm not clear on your question. Is the puppet module raising some errors (if so can you please provide how you're calling it) or is sensu itself upset with the config done by the puppet module?

@rhoml
Copy link
Contributor Author

rhoml commented Feb 11, 2014

@jlambert121 Puppet is the one complaining.

@jlambert121
Copy link
Contributor

OK, could you provide exactly how you're calling the puppet module and the exact output?

@rhoml
Copy link
Contributor Author

rhoml commented Feb 11, 2014

for example

  sensu::check { 'check_system_cpu':
    command              => '/etc/sensu/plugins/check-cpu.rb -w 70 -c 80',
    handlers               => ['hipchat'],
    interval                 => 5,
    subscribers          => ['system'],
    custom                 => {
      'occurrences'      => '10',
      'refresh'          => '50', },
    standalone           => true,
    low_flap_threshhold  => 10,
    high_flap_threshhold => 15,
    timeout              => 5,
    aggregate            => true,
    handle               => true,
    publish              => true,
  }

@jlambert121
Copy link
Contributor

and what is the output of the puppet run?

@rhoml
Copy link
Contributor Author

rhoml commented Feb 11, 2014

Invalid parameter timeout on check.pp
Invalid parameter aggregate on check.pp
Invalid parameter handle on check.pp
Invalid parameter publish on check.pp

The same happens for api user and password.

@zdenekjanda
Copy link
Contributor

try to restart puppetmaster after update to 1.0.0

@rhoml
Copy link
Contributor Author

rhoml commented Feb 11, 2014

@zdenekjanda you are right. It fixed it.

@rhoml rhoml closed this as completed Feb 11, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants