Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Warnings in using NetSNMP::TrapReceiver while starting Snmptrapd -

16 views
Skip to first unread message

Chetan Mahadev

unread,
Mar 20, 2009, 8:52:24 AM3/20/09
to
--===============7404359911018558639==
Content-Type: multipart/alternative; boundary=0016e652fa2605252704658c5179

--0016e652fa2605252704658c5179
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

Hi,

I am getting the following warnings when I try to start the snmptrapd
daemon.
Can you let me what is wrong with the usage??

[root@dhcp-64-104-139-158 ~]# /FNMT_SAN_DISK/fnmt/sbin/snmptrapd -f -Le -On
-C -c /FNMT_SAN_DISK/fnmt/etc/snmptrapd.conf -p
/var/run/snmptrapd.pid netsnmp_assert !"registration != duplicate"
failed agent_registry.c:535 netsnmp_subtree_load()
netsnmp_assert !"registration != duplicate" failed agent_registry.c:535
netsnmp_subtree_load()
netsnmp_assert !"registration != duplicate" failed agent_registry.c:535
netsnmp_subtree_load()
/FNMT_SAN_DISK/fnmt/etc/snmptrapd.conf: line 66: Warning: Unknown token:
/usr/local/fnmt/bin/perl.
/FNMT_SAN_DISK/fnmt/etc/snmptrapd.conf: line 67: Warning: Unknown token:
/usr/local/fnmt/bin/perl.
NET-SNMP version 5.4.1

Following is the corresponding lines in snmptrapd.conf

60 # format2: How SNMPv2 and SNMPv3 traps are formatted.
61 # See the snmptrapd.conf manual page for format string details.
62 # arguments: formatstring
63
64 format2 "%.3M %.2L %.02H:%.02J:%.02K %b/%b %M/%L/%Y %H:%J:%K E=%N
T=%w/%q D=%W %V=%v"
65
66 /usr/local/fnmt/bin/perl NetSNMP::TrapReceiver::register("all",
\&my_receiver);
67 /usr/local/fnmt/bin/perl do
"/usr/local/fnmt/bin/genericTrapHandler.pl";
68
69


Regds
Chetan

--0016e652fa2605252704658c5179
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<div>=A0</div>
<div>Hi,</div>
<div>=A0</div>
<div>I am getting the following warnings when I try to start the snmptrapd =
daemon.</div>
<div>Can you let me what is wrong with the usage?? </div>
<div>=A0</div>
<div><font style=3D"BACKGROUND-COLOR: #ff0000"><font style=3D"BACKGROUND-CO=
LOR: #ffffff">[root@dhcp-64-104-139-158 ~]# /FNMT_SAN_DISK/fnmt/sbin/snmptr=
apd -f -Le -On -C -c /FNMT_SAN_DISK/fnmt/etc/snmptrapd.conf=A0 -p /var/run/=
snmptrapd.pid=A0=A0=A0=A0=A0=A0=A0=A0=A0 netsnmp_assert !&quot;registration=
!=3D duplicate&quot; failed agent_registry.c:535 netsnmp_subtree_load()<br=
>
netsnmp_assert !&quot;registration !=3D duplicate&quot; failed agent_regist=
ry.c:535 netsnmp_subtree_load()<br>netsnmp_assert !&quot;registration !=3D =
duplicate&quot; failed agent_registry.c:535 netsnmp_subtree_load()<br></fon=
t>/FNMT_SAN_DISK/fnmt/etc/snmptrapd.conf: line 66: Warning: Unknown token: =
/usr/local/fnmt/bin/perl.<br>
/FNMT_SAN_DISK/fnmt/etc/snmptrapd.conf: line 67: Warning: Unknown token: /u=
sr/local/fnmt/bin/perl.<br></font></div>
<div>NET-SNMP version 5.4.1<br></div>
<div>=A0</div>
<div>Following is the corresponding lines in snmptrapd.conf</div>
<div>=A0</div>
<div>=A0 60 # format2: How SNMPv2 and SNMPv3 traps are formatted.<br>=A0=A0=
=A0=A0 61 #=A0=A0 See the snmptrapd.conf manual page for format string deta=
ils.<br>=A0=A0=A0=A0 62 #=A0=A0 arguments: formatstring<br>=A0=A0=A0=A0 63<=
br>=A0=A0=A0=A0 64 format2=A0 &quot;%.3M %.2L %.02H:%.02J:%.02K %b/%b %M/%L=
/%Y %H:%J:%K E=3D%N T=3D%w/%q D=3D%W %V=3D%v&quot;<br>
=A0=A0=A0=A0 65<br><font style=3D"BACKGROUND-COLOR: #ffff00">=A0=A0=A0=A0 6=
6 /usr/local/fnmt/bin/perl NetSNMP::TrapReceiver::register(&quot;all&quot;,=
\&amp;my_receiver);<br>=A0=A0=A0=A0 67 /usr/local/fnmt/bin/perl do &quot;/=
usr/local/fnmt/bin/genericTrapHandler.pl&quot;;<br>
</font>=A0=A0=A0=A0 68<br>=A0=A0=A0=A0 69<br>=A0=A0=A0=A0 </div>
<div>=A0</div>
<div><br>=A0</div>
<div>Regds</div>
<div>Chetan</div>

--0016e652fa2605252704658c5179--


--===============7404359911018558639==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
--===============7404359911018558639==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Net-snmp-users mailing list
Net-snm...@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

--===============7404359911018558639==--

0 new messages