Announcement

Collapse
No announcement yet.

How do I setup snmpd on Gentoo host?

Collapse
This topic is closed.
X
This is a sticky topic.
X
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • How do I setup snmpd on Gentoo host?

    First emerge snmp:

    Code:
    emerge net-snmp
    Then open up your snmpd.conf in /etc/snmp/ directory and copy/paste the following:

    Code:
    com2sec local     your.hostname.com mycommunity
    com2sec local     10.10.10.0/24   public
    
    group MyROGroup v1         local
    group MyROGroup v2c        local
    group MyROGroup usm        local
    
    view all    included  .1                               80
    
    access MyROGroup ""      any       noauth    exact  all    none   none
    
    #if you want to monitor different partitions
    disk / 0
    disk /tmp 0
    disk /boot 0
    
    #if you want to monitor different processes
    proc httpd
    proc mysqld
    proc snmpd
    Replace 'mycommunity' and 'your.hostname.com' with your respective values.

    Save the file and exit then run the following commands:

    Code:
    /etc/init.d/snmpd start
    /sbin/rc-update add snmpd default
    Gentoo Wiki: http://www.gentoo-wiki.info/Cacti/SN...dding_the_host
    www.AYKsolutions.com
    From Shared to Dedicated
    Professional. Painless. Polite.
Working...
X