Advertisement
Guest User

Untitled

a guest
Jan 18th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.04 KB | None | 0 0
  1. yum install net-snmp
  2.  
  3. #!/bin/sh
  4. mv /etc/snmp/snmpd.conf /etc/snmp/snmpd.conf.vanilla
  5. cd /etc/snmp/
  6. echo "###############################################################################
  7. #
  8. # snmpd.conf
  9. # Custom cHosting SNMP config file.
  10. #
  11. ###############################################################################
  12.  
  13. # sec.name source community
  14. com2sec notConfigUser default cHmonitor
  15.  
  16. # groupName securityModel securityName
  17. group notConfigGroup v1 notConfigUser
  18. group notConfigGroup v2c notConfigUser
  19.  
  20. # name incl/excl subtree mask(optional)
  21. view systemview included .1.3.6.1.2.1.1
  22. view systemview included .1.3.6.1.4.1.2021
  23. view systemview included .1.3.6.1.2.1.25
  24.  
  25. includeAllDisks 10%
  26.  
  27. # group context sec.model sec.level prefix read write notif
  28. access notConfigGroup \"\" any noauth exact systemview none none
  29.  
  30. " > snmpd.conf
  31.  
  32. chkconfig snmpd on
  33. service snmpd restart
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement