Comments (10)
@blackknight36 What versions of Puppet, Puppet server, and OS are we dealing with? Which version of the razorsedge/snmp module?
from puppet-snmp.
@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.
@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.
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.
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.
I've submitted PR #98 which should fix this on Redhat and Fedora based systems.
from puppet-snmp.
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.
I hope to get this pushed to the Forge by this weekend.
from puppet-snmp.
Closed by #98
from puppet-snmp.
3.8.0 has been pushed to the Forge.
from puppet-snmp.
Related Issues (20)
- # Other Configuration HOT 2
- To support CentOS 8 HOT 1
- rw and ro community strings wrong and default breaks rhel7 if ipv6 off
- $facts['networking']['fqdn'] is too recent HOT 3
- Dependency on stdlib versions incorrect for version 5.1.0 ; types/ip/address/v6/cidr.pp and type Stdlib::IP::Address::V6::CIDR does not exist in 4.25.0
- Docs: Incorrect dependency (stdlib) listed on forge.puppet.com page HOT 2
- Doesn't work on ubuntu focal 20.04 HOT 1
- Cannot disable traditional access control for ro_community{,6}
- FreeBSD Support
- Support Debian Bullseye 11 (to be released in may or june) HOT 4
- systemd daemon-reload restarts snmpd HOT 15
- snmpd starts on each puppet run HOT 1
- Incorrect type of agentx_perms parameter
- Release new version HOT 4
- How to disable snmpv1 and v2 HOT 1
- Support for Ubuntu 22.04 HOT 6
- Reload snmpd config instead of restarting service by default
- $snmpv2_enable parameter does not disable snmpv2.
- snmpd_options and/or snmptrapd_options are ignored on Ubuntu and Debian due to lack of systemd support
- Removing a non-empty directory $var_net_snmp
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from puppet-snmp.