Bug #1542

cannot purge nagios objects

Added by Martha Greenberg over 3 years ago. Updated almost 3 years ago.

Status:Closed Start date:09/01/2008
Priority:Normal Due date:
Assignee:James Turnbull % Done:

0%

Category:nagios
Target version:0.24.8
Affected Puppet version:0.24.6 Branch:
Keywords:
Votes: 0

Description

I tried purging nagios objects by adding the followin in my site.pp:

resources {
  nagios_host:              purge => true;
  nagios_service:           purge => true;
  nagios_servicedependency: purge => true;
}

However, I get the follow error on the client:

notice: Starting catalog run
err: //Resources[nagios_servicedependency]: Failed to generate additional resources: undefined method `record_type' for #
err: //Resources[nagios_host]: Failed to generate additional resources: undefined method `record_type' for #
err: //Resources[nagios_service]: Failed to generate additional resources: undefined method `record_type' for #

and the objects are not purged.

History

Updated by James Turnbull over 3 years ago

  • Category set to nagios
  • Status changed from Unreviewed to Accepted

Updated by Luke Kanies about 3 years ago

  • Status changed from Accepted to In Topic Branch Pending Review
  • Assignee set to Luke Kanies

This is fixed in the refactor/0.24.x/nagios branch in my repo. It’s currently a branch of 0.24.x, so my client can apply it cleanly against their current packages, but I’ll only actually be merging it against master.

Updated by Luke Kanies almost 3 years ago

  • Status changed from In Topic Branch Pending Review to Ready For Checkin
  • Assignee changed from Luke Kanies to James Turnbull
  • Target version set to 0.24.8
  • Affected Puppet version changed from 0.25.0 to 0.24.6

The code has been tested to work, so it should go into this release.

Updated by James Turnbull almost 3 years ago

  • Status changed from Ready For Checkin to Closed

Pushed in commit:671d73c1f7799e685ab484c91b7f92d16e21e256 in branch 0.24.x

Also available in: Atom PDF