Re: snmp module help
astal vista <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
Where can i find snmpdtrap.conf file. when i check with locate command. it is showing under /var/net-snmp/snmpdtrap.conf but when i open with vi editor ,, the message given is "don't edit this file" is there any alternative? On Thu, Feb 4, 2010 at 5:40 PM, astal vista <[email protected]>wrote: > I have compile from source directory. > > I have installed net-snmp using YUM. > > On Thu, Feb 4, 2010 at 5:24 PM, Dave Shield <[email protected]>wrote: > >> On 4 February 2010 11:39, astal vista <[email protected]> wrote: >> > i have install net-snmp package on RHEL5.3. >> >> How? Did you compile from source, or install a pre-compiled binary. >> >> >> > #make snmp-demo >> > >> > gcc -I. `net-snmp-config --cflags` -c -o snmp-demo.o snmp-demo.c >> > gcc: -lcrypto: linker input file unused because linking not done >> > gcc -I. `net-snmp-config --cflags` -c -o cap001a.o cap001a.c >> > gcc: -lcrypto: linker input file unused because linking not done >> > gcc -I. `net-snmp-config --cflags` -c -o cap001b.o cap001b.c >> > gcc: -lcrypto: linker input file unused because linking not done >> > gcc -o snmp-demo snmp-demo.o cap001a.o cap001b.o `net-snmp-config >> > --agent-libs` >> > >> > what might be the problem. >> >> >> What is the output of >> net-snmp-config --cflags >> net-snmp-config --ldflags >> ? >> >> It looks suspiciously as if the original configuration was wrong. >> I get "-lcrypto" as part of the output of "net-snmp-config --ldflags", >> but not in "net-snmp-config --cflags" >> >> (Rakesh - it *is* appropriate to use "net-snmp-config --cflags" >> when compiling code, since this provides a list of definitions >> and header file locations. There's a separate invocation for >> linkage-time settings) >> >> Dave >> > > ------------------------------------------------------------------------------ The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com _______________________________________________ Net-snmp-users mailing list [email protected] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users