voxpupuli / puppet-zabbix

Puppet module for creating and maintaining zabbix components with puppet.
https://forge.puppet.com/puppet/zabbix
Apache License 2.0
80 stars 227 forks source link

zabbixapi gem is not installed #339

Open Samgarr opened 7 years ago

Samgarr commented 7 years ago

Affected Puppet, Ruby, OS and module versions/distributions

How to reproduce (e.g Puppet code you use)

class { '::zabbix':          
    database_type => 'mysql',  
    zabbix_url    => 'xxx.yyy',
    zabbix_version => '3.0',   
    manage_repo   => false,    
    manage_resources => true,  
    startpollers   => '20',    
    starttrappers  => '25',    
    startpingers   => '100',   
    starthttppollers => '20',  
    housekeepingfrequency => '1',   
    maxhousekeeperdelete  => '1000000',
    cachesize             => '256M',
    senderfrequency       => '600', 
    cacheupdatefrequency  => '60',  
    startdbsyncers        => '4',   
    historycachesize      => '256M',
    trendcachesize        => '256M',
    historytextcachesize  => '256M',
    timeout               => '30',  
    alertscriptspath      => '/etc/zabbix/alert.d',
    externalscripts       => '/etc/zabbix/externalscripts',
    logslowqueries        => '1000',
  }

What are you seeing

Error: Could not run Puppet configuration client: cannot load such file -- zabbixapi Error: Could not run: no implicit conversion of Puppet::Util::Log into Integer

What behaviour did you expect instead

Correctly installed zabbixapi gem and working manage_resources.

Output log

Any additional information you'd like to impart

If i get this correctly, where is zabbix::web class included there will be installed zabbixapi gem, which is needed for managing resources in Puppetdb. This do not work for me for some reason. And when i try install zabbixapi gem with

package { 'zabbixapi':
    ensure   => 'installed',
    provider => 'gem',
  }

i get Duplicate declaration error, because resource Package[zabbixapi] already exists in zabbix::web.

claflico commented 7 years ago

Have to run it using the puppet gem installer: /opt/puppetlabs/puppet/bin/gem install zabbixapi