voxpupuli / puppet-snmp

Puppet module to manage Net-SNMP.
https://forge.puppet.com/puppet/snmp
Apache License 2.0
35 stars 131 forks source link

Unknown variable: 'snmp_agentaddress' error #65

Closed jdehnert closed 5 years ago

jdehnert commented 8 years ago

I'm running your snmp module on a puppet 4 puppetserver (V 2.2.1) on Centos 6.7, and I'm getting the following error when I run:

Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Evaluation Error: Unknown variable: '::snmp_agentaddress'. at /etc/puppetlabs/code/environments/test/modules/snmp/manifests/params.pp:19:19 on node it-lnx-01.enphaseenergy.com

I have created the following in my config files:

class { 'snmp':
  ro_community => 'password',
}

and

node /^it-lnx-\d+$/ {
  include common
  include mcollective::server
  include ::snmp
}

Any ideas what I'm doing wrong?

Thanks, James "Zeke" Dehnert

mailto:zdehnert@enphase.com James "Zeke" Dehnert -= Eschew Obfuscation =- "Life is racing. Everything else is just waiting"

jimmihagen-zz commented 8 years ago

This error message indicates the variable was never initialized. The error goes away if the strict_variables setting is not 'true', which will let you use this module as-is, but could potentially introduce errors.

mterzo commented 8 years ago

Upgraded to puppet 4 and this module has tons of these issues. I'm going to submit a patch I don't see anyone else working on this.

jnquintin commented 8 years ago

Corrected in the pr#79