Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- yum install net-snmp
- #!/bin/sh
- mv /etc/snmp/snmpd.conf /etc/snmp/snmpd.conf.vanilla
- cd /etc/snmp/
- echo "###############################################################################
- #
- # snmpd.conf
- # Custom cHosting SNMP config file.
- #
- ###############################################################################
- # sec.name source community
- com2sec notConfigUser default cHmonitor
- # groupName securityModel securityName
- group notConfigGroup v1 notConfigUser
- group notConfigGroup v2c notConfigUser
- # name incl/excl subtree mask(optional)
- view systemview included .1.3.6.1.2.1.1
- view systemview included .1.3.6.1.4.1.2021
- view systemview included .1.3.6.1.2.1.25
- includeAllDisks 10%
- # group context sec.model sec.level prefix read write notif
- access notConfigGroup \"\" any noauth exact systemview none none
- " > snmpd.conf
- chkconfig snmpd on
- service snmpd restart
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement