SNMP agent management
snmpd management: SNMP v1 and v2c ACL management and SNMPv3 user creation.
Support for:
- disk monitoring
- load average monitoring
- snmpd package
- snmpd service
Install snmpd:
class { 'snmpd': }
class { 'snmpd':
service_ensure => 'stopped',
service_enable => false,
}
class { 'snmpd':
package_ensure => 'purged',
manage_service => false,
}
class { 'snmpd':
add_default_acls => false,
}
snmpd::acl { 'demo':
community => '1234567890',
}
class { 'snmpd':
add_default_acls => false,
}
snmpd::v3user { 'v3testuser':
authpass => '1234567890',
encpass => '1234567890',
}
This setup can be tested vis snmpwalk:
# snmpwalk -v3 -l authPriv -u v3testuser -a SHA -A "1234567890" -x AES -X "1234567890" 127.0.0.1 system
- basic operations:
- manage_package = true,
- package_ensure = 'installed',
- manage_service = true,
- manage_docker_service = true,
- service_ensure = 'running',
- service_enable = true,
Relies on fact ::eyp_snmpd_mountpoints for autoconfiguring disk monitoring if snmpd::add_disk_monit is set to true (default is true)
It is asumed that /usr/bin/net-snmp-create-v3-user is a bash script that this module modifies for it's own purposes. The modified script is stored on /usr/local/bin/puppet_net-snmp-create-v3-user
Mostly tested on CentOS 7 and Ubuntu 16.04
We are pushing to have acceptance testing in place, so any new feature should have some test to check both presence and absence of any feature
TODO list
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request