Skip to content
This repository was archived by the owner on Jun 11, 2019. It is now read-only.
This repository was archived by the owner on Jun 11, 2019. It is now read-only.

Pass array to pluginspackage #25

@DimitriSteyaert

Description

@DimitriSteyaert

Hi, I want to disable the installation of pluginspackage "nagios-plugins-all" and instead install a few defined plugins such as nagios-plugins-ssh, nagios-plugins-disk, nagios-plugins-procs-1.4.16-10.el6.x86_64...

So I tried the following code:

$nrpeplugins = ['nagios-plugins-ssh','nagios-plugins-disk']
  class { '::nrpe':
    allowed_hosts   => 'nagios.myhost.be',
    dont_blame_nrpe => '0',
    use_ssl         => false,
    pluginspackage  => $nrpeplugins,
  }

This generates the following error:

Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Invalid argument of type 'Array' to 'defined' at /etc/puppetlabs/puppet/environments/production/modules/nrpe/manifests/init.pp:518 on node

Is there a way to pass an array of plugins that I want to see installed?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions