管理 Linux 主機

    內容表格
    1. 1. CentOS 5/6

    CentOS 5/6

    在管理主機上)
    /etc/snmp/snmpd.conf:

    #       sec.name  source          community
    #com2sec notConfigUser  default       public
    # added by alang
    com2sec notConfigUser  default       YOURCOMPANY
    
    #       groupName      securityModel securityName
    group   notConfigGroup v1           notConfigUser
    group   notConfigGroup v2c           notConfigUser
    
    # Make at least  snmpwalk -v 1 localhost -c public system fast again.
    #       name           incl/excl     subtree         mask(optional)
    view    systemview    included   .1.3.6.1.2.1.1
    view    systemview    included   .1.3.6.1.2.1.25.1.1
    #added by alang
    view    all           included   .1
    
    ####
    # Finally, grant the group read-only access to the systemview view.
    
    #       group          context sec.model sec.level prefix read   write  notif
    #access  notConfigGroup ""      any       noauth    exact  systemview none none
    # added by alang
    access  notConfigGroup ""      any       noauth    exact  all none none 
    

    在 Cacti 主機上)

    Cacti Admin > Device > Add

    • Description: <自訂>
    • Hostname: Linux 主機的 IP
    • Host Template: Linux
    • Number of Collection Threads: 1 Thread(default)
    • Disable Host: 不選
    • Monitor Host: 不選
    • Downed Device Detection: None
    • SNMP Version: Version 2
    • SNMP Community: YOURCOMPANY
    • SNMP Port: 161
    • SNMP Timeout: 500
    • Maximum OID's Per Get Request: 100
    標籤 (Edit tags)
    • No tags
    您必須 登入 才能發佈評論。
    Powered by MindTouch Core