lib/puppet/reports/snmp.rb
def trap_options
    {
      HOSTNAME_OID => self.host,
      PUPPET_ENVIRONMENT_OID => self.environment,
    }.map do |key, value|
      VarBind.new(key, OctetString.new(value))
    end
  end
# connect to PuppetDB to get ip for the node
connect to PuppetDB to get ip for the node
connect to PuppetDB to get ip for the node
def trap_options
    {
      HOSTNAME_OID => self.host,
      PUPPET_ENVIRONMENT_OID => self.environment,
    }.map do |key, value|
      VarBind.new(key, OctetString.new(value))
    end
  end
def trap_options { HOSTNAME_OID => self . host , PUPPET_ENVIRONMENT_OID => self . environment , } . map do | key , value | VarBind . new ( key , OctetString . new ( value ) ) end end
connect to PuppetDB to get ip for the node
connect to PuppetDB to get ip for the node