Was this page helpful?

Set SNMP on Trixbox 2.6

    內容表格
    沒有標頭

    #vi /etc/asterisk/res_snmp.conf

    [general]
    subagent = yes
    enabled = yes
    

    #chown asterisk:asterisk /etc/asterisk/res_snmp.conf
    #cd /etc/snmp
    #mv snmpd.conf snmpd.conf.orig
    #vi snmpd.conf

    rocommunity public
    master agentx
    #agentXSocket tcp:YOUR.ASTERISK.IP.ADDY:705
    agentXperms 0660 0550 nobody asterisk
    com2sec local localhost public
    com2sec mynetwork0 10.10.10.0/24 public
    #com2sec mynetwork1 YOUR.NETWORK/24 YOUR.COMMUNITY.NAME
    #com2sec mynetwork2 YOUR.NETWORK/24 YOUR.COMMUNITY.NAME
    #com2sec mynetwork3 YOUR.NETWORK/24 YOUR.COMMUNITY.NAME
    group MyROGroup v1 local
    group MyROGroup v2c local
    group MyROGroup v1 mynetwork0
    group MyROGroup v2c mynetwork0
    #group MyROGroup any mynetwork1
    #group MyROGroup any mynetwork2
    #group MyROGroup any mynetwork3
    view all included .1
    access MyROGroup "" any noauth prefix all none none
    

    #chmod 0755 /var/agentx
    #service snmpd restart
    #service snmptrapd restart
    #amportal stop
    #amportal start

    #yum install net-snmp-utils
    #export MIBS=+ASTERISK-MIB
    #snmpwalk -v 1 -c public localhost asterisk

    ASTERISK-MIB::astVersionString.0 = STRING: 1.4.22-4 RPM by [email protected]
    ASTERISK-MIB::astVersionTag.0 = Gauge32: 10422
    ASTERISK-MIB::astConfigUpTime.0 = Timeticks: (209041) 0:34:50.41
    ASTERISK-MIB::astConfigReloadTime.0 = Timeticks: (209042) 0:34:50.42
    ASTERISK-MIB::astConfigPid.0 = INTEGER: 2986
    ASTERISK-MIB::astConfigSocket.0 = STRING: /var/run/asterisk/asterisk.ctl
    ASTERISK-MIB::astNumModules.0 = INTEGER: 161
    ASTERISK-MIB::astNumIndications.0 = INTEGER: 40
    ASTERISK-MIB::astCurrentIndication.0 = STRING: us
    ASTERISK-MIB::astIndIndex.1 = INTEGER: 1
    ASTERISK-MIB::astIndIndex.2 = INTEGER: 2
    ASTERISK-MIB::astIndIndex.3 = INTEGER: 3
    ASTERISK-MIB::astIndIndex.4 = INTEGER: 4
    ASTERISK-MIB::astIndIndex.5 = INTEGER: 5
    ASTERISK-MIB::astIndIndex.6 = INTEGER: 6
    ASTERISK-MIB::astIndIndex.7 = INTEGER: 7
    ASTERISK-MIB::astIndIndex.8 = INTEGER: 8
    ASTERISK-MIB::astIndIndex.9 = INTEGER: 9
    ...
    

     

    Was this page helpful?
    標籤 (Edit tags)
    • No tags
    您必須 登入 才能發佈評論。
    Powered by MindTouch Core