Giter VIP home page Giter VIP logo

Comments (10)

razorsedge avatar razorsedge commented on September 25, 2024

@blackknight36 What versions of Puppet, Puppet server, and OS are we dealing with? Which version of the razorsedge/snmp module?

from puppet-snmp.

blackknight36 avatar blackknight36 commented on September 25, 2024

@razorsedge We're running puppetserver 2.7.2 with puppet-agent 1.9.10 on CentOS 7.2. I've also seen this error on Fedora based systems. I believe the issue is that the snmp::client class attempts to create a config file before the /etc/snmp directory exists. This directory is provided by the net-snmp package so it may be possible to fix this by adding a package requirement on the file resource.

from puppet-snmp.

razorsedge avatar razorsedge commented on September 25, 2024

@blackknight36 Odd. I'm looking at the latest code and the File['snmp.conf'] is using a require as long as you are not on Suse. Either the $req is not getting set, or maybe Puppet 4 has issues with package aliases.

from puppet-snmp.

blackknight36 avatar blackknight36 commented on September 25, 2024

I'll have to set up a VM and run some more tests. The error only occurs on the first puppet run, once the /etc/snmp directory is created the error goes away.

from puppet-snmp.

blackknight36 avatar blackknight36 commented on September 25, 2024

I believe I see the issue. $req is set to require the snmp-client package which does not create the /etc/snmp directory. /etc/snmp is provided by the net-snmp package on redhat based systems as shown by the rpm command.

username@dev27:/etc/snmp$ rpm -qf .
net-snmp-5.7.3-13.fc25.x86_64

$req should most likely be changed to $snmp::params::package_name since that is the correct package which manages the directory.

from puppet-snmp.

blackknight36 avatar blackknight36 commented on September 25, 2024

I've submitted PR #98 which should fix this on Redhat and Fedora based systems.

from puppet-snmp.

elisiano avatar elisiano commented on September 25, 2024

I'm seeing this too. Since the PR has been merged, is there an ETA for when this can hit the forge?

from puppet-snmp.

razorsedge avatar razorsedge commented on September 25, 2024

I hope to get this pushed to the Forge by this weekend.

from puppet-snmp.

razorsedge avatar razorsedge commented on September 25, 2024

Closed by #98

from puppet-snmp.

razorsedge avatar razorsedge commented on September 25, 2024

3.8.0 has been pushed to the Forge.

from puppet-snmp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.