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

When removing a check, sensu service not refresh #782

Closed
jothoma1 opened this issue Jul 27, 2017 · 3 comments
Closed

When removing a check, sensu service not refresh #782

jothoma1 opened this issue Jul 27, 2017 · 3 comments
Assignees

Comments

@jothoma1
Copy link

jothoma1 commented Jul 27, 2017

Description of problem

  • What did you do?
    I'm trying to remove a check with

ensure => absent

  • What happened?
    It works but it did not refresh the service sensu-client
  • What did you expect to happen?
    Refresh the service in order to have the good configuration.
  • How can someone reproduce the problem?
  1. Create a check
  2. try to remove it with ensure => absent
  3. sensu has not refresh so the check is still present

Command used and debugging output

  • What does your puppet config look like (including any hiera config)
  • Is this a masterless or master based puppet setup?

Platform and version information

  • Your OS: CentOS 7
  • Your Ruby version: 2.4
  • Your version of Puppet: 3.8.7
  • Your version of Sensu: 1.0
  • Your version of this module:

Anything else to add that you think will be helpful?

@jothoma1 jothoma1 changed the title When removing check sensu not refresh When removing a check, sensu service not refresh Jul 27, 2017
@alvagante
Copy link
Collaborator

@jothoma1 #785 should address this, can you confirm that?

@alvagante
Copy link
Collaborator

@ghoneycutt I can confirm that this issue is now fixed in current master, so I suppose it can be closed

==> ubuntu1604-client: Notice: /Stage[main]/Main/Sensu::Check[check_cpu]/Sensu::Write_json[/etc/sensu/conf.d/checks/check_cpu.json]/File[/etc/sensu/conf.d/checks/check_cpu.json]/ensure: removed
==> ubuntu1604-client: Notice: /Stage[main]/Sensu::Client/Service[sensu-client]: Triggered 'refresh' from 1 events

==> el7-client: Notice: /Stage[main]/Main/Sensu::Check[check_cpu]/Sensu::Write_json[/etc/sensu/conf.d/checks/check_cpu.json]/File[/etc/sensu/conf.d/checks/check_cpu.json]/ensure: removed
==> el7-client: Notice: /Stage[main]/Sensu::Client/Service[sensu-client]: Triggered 'refresh' from 1 events

@ghoneycutt
Copy link
Collaborator

Released in v2.50.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants