Snmp

Discussion in 'Installation/Configuration' started by Polk, Aug 25, 2010.

  1. Polk

    Polk New Member

    How to install and configure SNMP on Debian and Centos?
    In configuration, I need to change public name to something else and limit
    IP address that can access SNMP service.

    thanks
     
  2. matty

    matty Member

    Just install the appropriate .deb/.rpm to install it. In snmpd.conf, in the first major config section called Access Control, you'll find a line like

    com2sec readonly default public

    If you wanted to limit access to localhost and 10.11.12.0/24, and have a community name of howtoforgeisgreat, you would change that line to

    com2sec readonly localhost,10.11.12.0/24 howtoforgeisgreat

    I highly recommend reading the preamble text in the Access Control section before making any changes.
     
  3. Polk

    Polk New Member

    Perfect. Are the snmp packages available from Debian, Ubuntu and Centos Repos?
    Can I just install by running something like:
    yum/apt-get install snmp?
     
  4. matty

    matty Member

    I don't currently have a Centos or Redhat based box at my disposal, but I think so, yes. For Debian, you can "apt-get update && apt-cache search snmp" to see what snmp packages are available, then apt-get install them.
     
  5. Polk

    Polk New Member

    Did the search! Great suggestion. I forgot that I could do that.
    found:

    snmp and snmpd.
    so if anyone finds this post useful, here's the command:

     

Share This Page