How to install snmp on Ubuntu 14.04 to allow remote access from Network monitoring system - Ask Ubuntu


this how snmpd.conf file looks like, have make changes on other file. able working centos easier having more problems getting work on ubuntu.

 ############################################################################### # # example.conf: #   example configuration file configuring net-snmp agent ('snmpd') #   see 'snmpd.conf(5)' man page details # #  entries deliberately commented out, , need explicitly activated # ############################################################################### # #  agent behaviour #  #  listen connections local system #agentaddress  udp:127.0.0.1:161 #  listen connections on interfaces (both ipv4 *and* ipv6) agentaddress udp:161,udp6:[::1]:161    ############################################################################### # #  snmpv3 authentication # #  note these particular settings don't belong here. #  should copied file /var/lib/snmp/snmpd.conf #     , passwords changed, before being uncommented in file *only*. #  restart agent  #  createuser authonlyuser  md5 "remember change password" #  createuser authprivuser  sha "remember change 1 too"  des #  createuser internaluser  md5 "this ever used internally, still change password"  #  if change usernames (which might sensible), #  remember update other occurances in example config file match.    ############################################################################### # #  access control #                                                   #  system + hrsystem groups view   systemonly  included   .1.3.6.1.2.1 view   systemonly  included   .1.3.6.1.2.1.25                                                   #  full access local host #rocommunity public  localhost                                                  #  default access basic system info  rocommunity hkb76348r8                                                     #  full access example network                                                  #     adjust network address match local                                                  #     settings, change community string,                                                  #     , check 'agentaddress' setting above #rocommunity secret  10.0.0.0/16                                                   #  full read-only access snmpv3  rouser   authonlyuser                                                  #  full write access encrypted requests                                                  #     remember activate 'createuser' lines above #rwuser   authprivuser   priv  #  it's no longer typically necessary use full 'com2sec/group/access' configuration #  r[ow]user , r[ow]community, suitable views, should cover requirements    ############################################################################### # #  system information #  #  note setting these values here, results in corresponding mib objects being 'read-only' #  see snmpd.conf(5) more details syslocation    sitting on dock of bay syscontact     me                                                   # application + end-to-end layers sysservices    72   # #  process monitoring #                                # @ least 1  'mountd' process proc  mountd                                # no more 4 'ntalkd' processes - 0 ok proc  ntalkd    4                                # @ least 1 'sendmail' process, no more 10 proc  sendmail 10 1  #  walk ucd-snmp-mib::prtable see resulting output #  note table empty if there no "proc" entries in snmpd.conf file   # #  disk monitoring #                                # 10mbs required on root disk, 5% free on /var, 10% free on other disks disk       /     10000 disk       /var  5% includealldisks  10%  #  walk ucd-snmp-mib::dsktable see resulting output #  note table empty if there no "disk" entries in snmpd.conf file   # #  system load #                                # unacceptable 1-, 5-, , 15-minute load averages load   12 10 5  #  walk ucd-snmp-mib::latable see resulting output #  note table *will* populated, without "load" entry in snmpd.conf file    ############################################################################### # #  active monitoring #                                      #   send snmpv1  traps  trapsink     localhost public                                     #   send snmpv2c traps #trap2sink    localhost public                                     #   send snmpv2c informs #informsink   localhost public  #  note typically want *one* of these 3 lines #  uncommenting 2 (or three) result in multiple copies of each notification.   # #  event mib - automatically generate alerts #                                    # remember activate 'createuser' lines above iquerysecname   internaluser        rouser          internaluser                                    # generate traps on ucd error conditions defaultmonitors          yes                                    # generate traps on linkup/down linkupdownnotifications  yes    ############################################################################### # #  extending agent #  # #  arbitrary extension commands #  extend    test1   /bin/echo  hello, world!  extend-sh test2   echo hello, world! ; echo hi there ; exit 35 #extend-sh test3   /bin/sh /tmp/shtest  #  note last entry requires script '/tmp/shtest' created first, #    containing same 3 shell commands, before line uncommented  #  walk net-snmp-extend-mib tables (nsextendconfigtable, nsextendoutput1table #     , nsextendoutput2table) see resulting output  #  note "extend" directive supercedes previous "exec" , "sh" directives #  however, walking ucd-snmp-mib::exttable should still returns same output, #     fuller results in above tables.   # #  "pass-through" mib extension command # #pass .1.3.6.1.4.1.8072.2.255  /bin/sh       prefix/local/passtest #pass .1.3.6.1.4.1.8072.2.255  /usr/bin/perl prefix/local/passtest.pl  # note requires 1 of 2 'passtest' scripts installed first, #    before appropriate line uncommented. # these scripts can found in 'local' directory of source distribution, #     , not installed automatically.  #  walk net-snmp-pass-mib::netsnmppassexamples subtree see resulting output   # #  agentx sub-agents #                                            #  run agentx master agent  master          agentx                                            #  listen network connections (from localhost)                                            #    rather default named socket /var/agentx/master #agentxsocket    tcp:localhost:705 


Comments

Popular posts from this blog

download - Firefox cannot save files (most of the time), how to solve? - Super User

windows - "-2146893807 NTE_NOT_FOUND" when repair certificate store - Super User