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 228 forks source link

no parameter named 'interfacedetails' #804

Closed mergwyn closed 2 years ago

mergwyn commented 2 years ago

Affected Puppet, Ruby, OS and module versions/distributions

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

class { 'zabbix::agent':
  manage_resources     => true,
  ....
}

zbx_interface details is not set

What are you seeing

I was trying to create a PR to address a different error when I can across this. I have taken a fork and see the error below. I've scanned the code but am not a ruby programmer and can't see any obvious cause.

What behaviour did you expect instead

No error.

Output log

Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: no parameter named 'interfacedetails' (file: /etc/puppetlabs/code/environments/zabbix/modules/zabbix/manifests/resources/agent.pp, line: 39) on Zabbix_host[xxxxx]

Any additional information you'd like to impart

mergwyn commented 2 years ago

For reasons I don't fully understand, restarting the puppet server resolved this issue. Every day is a school day!