<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Configuring NetSnmp to send trap to NMS in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/configuring-netsnmp-to-send-trap-to-nms/m-p/3723679#M21647</link>
    <description>Hi all,&lt;BR /&gt;I'm trying to send trap from my snmp agent automatically to monitor some things on my Linux server... &lt;BR /&gt;The problem is that I configure the snmpd.conf file then I start the agent:&lt;BR /&gt;/usr/sbin/snmpd -c /root/snmpd.conf.&lt;BR /&gt;On my NMS I see the start of the agent.&lt;BR /&gt;I put in my snmpd.conf a monitor for the size of a file...&lt;BR /&gt;But when I reach the size no one traps is sent to the NMS!!!&lt;BR /&gt;&lt;BR /&gt;Any suggestion ?&lt;BR /&gt;Thanks Fabrizio&lt;BR /&gt;&lt;BR /&gt;this is my snmpd.conf file:&lt;BR /&gt;&lt;BR /&gt;###########################################################################&lt;BR /&gt;#&lt;BR /&gt;# snmpd.conf&lt;BR /&gt;#&lt;BR /&gt;#   - created by the snmpconf configuration program&lt;BR /&gt;#&lt;BR /&gt;###########################################################################&lt;BR /&gt;# SECTION: Access Control Setup&lt;BR /&gt;#&lt;BR /&gt;#   This section defines who is allowed to talk to your running&lt;BR /&gt;#   snmp agent.&lt;BR /&gt;&lt;BR /&gt;# rocommunity: a SNMPv1/SNMPv2c read-only access community name&lt;BR /&gt;#   arguments:  community [default|hostname|network/bits] [oid]&lt;BR /&gt;rocommunity  public&lt;BR /&gt;&lt;BR /&gt;# rwcommunity: a SNMPv1/SNMPv2c read-write access community name&lt;BR /&gt;#   arguments:  community [default|hostname|network/bits] [oid]&lt;BR /&gt;rwcommunity  private&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;###########################################################################&lt;BR /&gt;# SECTION: Trap Destinations&lt;BR /&gt;#&lt;BR /&gt;#   Here we define who the agent will send traps to.&lt;BR /&gt;&lt;BR /&gt;# trap2sink: A SNMPv2c trap receiver&lt;BR /&gt;#   arguments: host [community] [portnum]&lt;BR /&gt;trap2sink  10.203.71.175 word&lt;BR /&gt;&lt;BR /&gt;# trapsess: A generic trap receiver defined using snmpcmd style arguments.&lt;BR /&gt;#   Read the snmpcmd manual page for further information.&lt;BR /&gt;#   arguments: [snmpcmdargs] host&lt;BR /&gt;informsink 10.203.71.175 word&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;###########################################################################&lt;BR /&gt;# SECTION: Monitor Various Aspects of the Running Host&lt;BR /&gt;#&lt;BR /&gt;#   The following check up on various aspects of a host.&lt;BR /&gt;&lt;BR /&gt;# file: Check on the size of a file.&lt;BR /&gt;#   Display a files size statistics.&lt;BR /&gt;#   If it grows to be too large, report an error about it.&lt;BR /&gt;#&lt;BR /&gt;#    file /path/to/file [maxsize_in_bytes]&lt;BR /&gt;#&lt;BR /&gt;#      if maxsize is not specified, assume only size reporting is needed.&lt;BR /&gt;#&lt;BR /&gt;#   The results are reported in the fileTable section of the UCD-SNMP-MIB tree&lt;BR /&gt;&lt;BR /&gt;file  /home/sirius/fabrizio 1000&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;###########################################################################&lt;BR /&gt;# SECTION: Agent Operating Mode&lt;BR /&gt;#&lt;BR /&gt;#   This section defines how the agent will operate when it&lt;BR /&gt;#   is running.&lt;BR /&gt;&lt;BR /&gt;# master: Should the agent operate as a master agent or not.&lt;BR /&gt;#   Currently, the only supported master agent type for this token&lt;BR /&gt;#   is "agentx".&lt;BR /&gt;#&lt;BR /&gt;#   arguments: (on|yes|agentx|all|off|no)&lt;BR /&gt;master agentx&lt;BR /&gt;master all&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;###########################################################################&lt;BR /&gt;# SECTION: System Information Setup&lt;BR /&gt;#&lt;BR /&gt;#   This section defines some of the information reported in&lt;BR /&gt;#   the "system" mib group in the mibII tree.&lt;BR /&gt;&lt;BR /&gt;# syslocation: The [typically physical] location of the system.&lt;BR /&gt;#   Note that setting this value here means that when trying to&lt;BR /&gt;#   perform an snmp SET operation to the sysLocation.0 variable will make&lt;BR /&gt;#   the agent return the "notWritable" error code.  IE, including&lt;BR /&gt;#   this token in the snmpd.conf file will disable write access to&lt;BR /&gt;#   the variable.&lt;BR /&gt;#   arguments:  location_string&lt;BR /&gt;&lt;BR /&gt;syslocation Casamia&lt;BR /&gt;&lt;BR /&gt;# syscontact: The contact information for the administrator&lt;BR /&gt;#   Note that setting this value here means that when trying to&lt;BR /&gt;#   perform an snmp SET operation to the sysContact.0 variable will make&lt;BR /&gt;#   the agent return the "notWritable" error code.  IE, including&lt;BR /&gt;#   this token in the snmpd.conf file will disable write access to&lt;BR /&gt;#   the variable.&lt;BR /&gt;#   arguments:  contact_string&lt;BR /&gt;&lt;BR /&gt;syscontact sirius&lt;BR /&gt;</description>
    <pubDate>Fri, 03 Feb 2006 04:30:33 GMT</pubDate>
    <dc:creator>Sirius Black</dc:creator>
    <dc:date>2006-02-03T04:30:33Z</dc:date>
    <item>
      <title>Configuring NetSnmp to send trap to NMS</title>
      <link>https://community.hpe.com/t5/operating-system-linux/configuring-netsnmp-to-send-trap-to-nms/m-p/3723679#M21647</link>
      <description>Hi all,&lt;BR /&gt;I'm trying to send trap from my snmp agent automatically to monitor some things on my Linux server... &lt;BR /&gt;The problem is that I configure the snmpd.conf file then I start the agent:&lt;BR /&gt;/usr/sbin/snmpd -c /root/snmpd.conf.&lt;BR /&gt;On my NMS I see the start of the agent.&lt;BR /&gt;I put in my snmpd.conf a monitor for the size of a file...&lt;BR /&gt;But when I reach the size no one traps is sent to the NMS!!!&lt;BR /&gt;&lt;BR /&gt;Any suggestion ?&lt;BR /&gt;Thanks Fabrizio&lt;BR /&gt;&lt;BR /&gt;this is my snmpd.conf file:&lt;BR /&gt;&lt;BR /&gt;###########################################################################&lt;BR /&gt;#&lt;BR /&gt;# snmpd.conf&lt;BR /&gt;#&lt;BR /&gt;#   - created by the snmpconf configuration program&lt;BR /&gt;#&lt;BR /&gt;###########################################################################&lt;BR /&gt;# SECTION: Access Control Setup&lt;BR /&gt;#&lt;BR /&gt;#   This section defines who is allowed to talk to your running&lt;BR /&gt;#   snmp agent.&lt;BR /&gt;&lt;BR /&gt;# rocommunity: a SNMPv1/SNMPv2c read-only access community name&lt;BR /&gt;#   arguments:  community [default|hostname|network/bits] [oid]&lt;BR /&gt;rocommunity  public&lt;BR /&gt;&lt;BR /&gt;# rwcommunity: a SNMPv1/SNMPv2c read-write access community name&lt;BR /&gt;#   arguments:  community [default|hostname|network/bits] [oid]&lt;BR /&gt;rwcommunity  private&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;###########################################################################&lt;BR /&gt;# SECTION: Trap Destinations&lt;BR /&gt;#&lt;BR /&gt;#   Here we define who the agent will send traps to.&lt;BR /&gt;&lt;BR /&gt;# trap2sink: A SNMPv2c trap receiver&lt;BR /&gt;#   arguments: host [community] [portnum]&lt;BR /&gt;trap2sink  10.203.71.175 word&lt;BR /&gt;&lt;BR /&gt;# trapsess: A generic trap receiver defined using snmpcmd style arguments.&lt;BR /&gt;#   Read the snmpcmd manual page for further information.&lt;BR /&gt;#   arguments: [snmpcmdargs] host&lt;BR /&gt;informsink 10.203.71.175 word&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;###########################################################################&lt;BR /&gt;# SECTION: Monitor Various Aspects of the Running Host&lt;BR /&gt;#&lt;BR /&gt;#   The following check up on various aspects of a host.&lt;BR /&gt;&lt;BR /&gt;# file: Check on the size of a file.&lt;BR /&gt;#   Display a files size statistics.&lt;BR /&gt;#   If it grows to be too large, report an error about it.&lt;BR /&gt;#&lt;BR /&gt;#    file /path/to/file [maxsize_in_bytes]&lt;BR /&gt;#&lt;BR /&gt;#      if maxsize is not specified, assume only size reporting is needed.&lt;BR /&gt;#&lt;BR /&gt;#   The results are reported in the fileTable section of the UCD-SNMP-MIB tree&lt;BR /&gt;&lt;BR /&gt;file  /home/sirius/fabrizio 1000&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;###########################################################################&lt;BR /&gt;# SECTION: Agent Operating Mode&lt;BR /&gt;#&lt;BR /&gt;#   This section defines how the agent will operate when it&lt;BR /&gt;#   is running.&lt;BR /&gt;&lt;BR /&gt;# master: Should the agent operate as a master agent or not.&lt;BR /&gt;#   Currently, the only supported master agent type for this token&lt;BR /&gt;#   is "agentx".&lt;BR /&gt;#&lt;BR /&gt;#   arguments: (on|yes|agentx|all|off|no)&lt;BR /&gt;master agentx&lt;BR /&gt;master all&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;###########################################################################&lt;BR /&gt;# SECTION: System Information Setup&lt;BR /&gt;#&lt;BR /&gt;#   This section defines some of the information reported in&lt;BR /&gt;#   the "system" mib group in the mibII tree.&lt;BR /&gt;&lt;BR /&gt;# syslocation: The [typically physical] location of the system.&lt;BR /&gt;#   Note that setting this value here means that when trying to&lt;BR /&gt;#   perform an snmp SET operation to the sysLocation.0 variable will make&lt;BR /&gt;#   the agent return the "notWritable" error code.  IE, including&lt;BR /&gt;#   this token in the snmpd.conf file will disable write access to&lt;BR /&gt;#   the variable.&lt;BR /&gt;#   arguments:  location_string&lt;BR /&gt;&lt;BR /&gt;syslocation Casamia&lt;BR /&gt;&lt;BR /&gt;# syscontact: The contact information for the administrator&lt;BR /&gt;#   Note that setting this value here means that when trying to&lt;BR /&gt;#   perform an snmp SET operation to the sysContact.0 variable will make&lt;BR /&gt;#   the agent return the "notWritable" error code.  IE, including&lt;BR /&gt;#   this token in the snmpd.conf file will disable write access to&lt;BR /&gt;#   the variable.&lt;BR /&gt;#   arguments:  contact_string&lt;BR /&gt;&lt;BR /&gt;syscontact sirius&lt;BR /&gt;</description>
      <pubDate>Fri, 03 Feb 2006 04:30:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/configuring-netsnmp-to-send-trap-to-nms/m-p/3723679#M21647</guid>
      <dc:creator>Sirius Black</dc:creator>
      <dc:date>2006-02-03T04:30:33Z</dc:date>
    </item>
    <item>
      <title>Re: Configuring NetSnmp to send trap to NMS</title>
      <link>https://community.hpe.com/t5/operating-system-linux/configuring-netsnmp-to-send-trap-to-nms/m-p/3723680#M21648</link>
      <description>Hi &lt;BR /&gt;&lt;BR /&gt;I suggest you use ethereal to monitor snmp packet this is ususally what I do. &lt;BR /&gt;&lt;BR /&gt;I think the problem is that the traps were not sent at all by some reason. Ethereal will be able to clearify this.&lt;BR /&gt;&lt;BR /&gt;thanks&lt;BR /&gt;</description>
      <pubDate>Sun, 05 Feb 2006 17:41:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/configuring-netsnmp-to-send-trap-to-nms/m-p/3723680#M21648</guid>
      <dc:creator>njia_1</dc:creator>
      <dc:date>2006-02-05T17:41:02Z</dc:date>
    </item>
  </channel>
</rss>

