snmp instalation

2007-02-12 Thread Hamid Taromian
i have downloaded and insatlled net-snmp version 5.2.3 but i have no /etc/init.d/snmpd to start or restart the agent what should i do? - Don't get soaked. Take a quick peak at the forecast with theYahoo! Search weather shortcut.-

snmp installation

2007-02-12 Thread Hamid Taromian
how can we uninstall snmp completely? i have downloaded and installed a net-snmp 5.2.3 package but after installation there is no /etc/init.d/snmp so i can start or stop the agent.even there is no /usr/local/share/snmp/snmpd.conf. but the agent works. - Don

send response: (parse header: message overflow: 69 len + 2 delta > 18 len)

2007-02-12 Thread Yumiko Izumi
With a "GetRequest" function of SNMP, I use an application to acquire a value of following MIB. * sysDescr.0, sysUptime.0 * hrSystemDate.0, hrMemorySize.0 * ifTable * ipAddrTable * hrStorageTable When I carried out this application, snmpd of a target machine outputs the following log. I a

Re: Sending traps with dynamic destinations

2007-02-12 Thread jin zhou
Yes, it is a good idea of using "snmp_clone_pdu" to improve the efficiency of the codes.And because the num of trap receivers is not certain, so I use "struct netsnmp_session *ss_head" as a head of linked list,which is built before sending a series of traps and free at last.It seems like that

Re: Building net-snmp, is not linking against OpenSSL

2007-02-12 Thread Thomas Anders
Daniel Lang wrote: > I then tried to build the monitoring server, zabbix, but it failed when > building the server with the following link errors: > > sqlclient -lm -lz-lnetsnmp -lkvm -lresolv -lnsl -lkstat -lsocket Replace "-lnetsnmp" by "`net-snmp-config --libs`". > I ran ldd against libne

Re: Building net-snmp, is not linking against OpenSSL

2007-02-12 Thread Daniel Lang
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Rick Lloyd wrote: > Daniel, > > The crypt and ssl libraries are statically linked - by default and > probably for a reason - and so won't show up in the ldd output. Try > linking them explicitly with -lcrypt -lssl when you build zabbix. > > Rick

Re: problem managing traps via snmpTargetAddrTable

2007-02-12 Thread Dave Shield
On 12/02/07, Gal Waldman <[EMAIL PROTECTED]> wrote: > IV created a sink with the 'trap2sink [ip]' in the snmpd.conf. > And it worked OK. I received traps as expected. > IV reproduced the behavior and created matching entries via snmp manager in > the tables IV mentioned before. No traps were genera

Re: Building net-snmp, is not linking against OpenSSL

2007-02-12 Thread Rick Lloyd
Daniel, The crypt and ssl libraries are statically linked - by default and probably for a reason - and so won't show up in the ldd output. Try linking them explicitly with -lcrypt -lssl when you build zabbix. Rick Daniel Lang wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > I am t

5.4 snmptrap apparently broken

2007-02-12 Thread Adam Welch
I am a newbie. I have had some trouble getting traps to work with 5.4. The cold start traps work fine from the agent itself and the examples/notification traps work fine, but the http://net-snmp.sourceforge.net/tutorial/tutorial-5/commands/snmptrap.html examples have never worked for me. I just

Re: net-snmp permanent storage behavior

2007-02-12 Thread Thomas Anders
Gal Waldman wrote: > Does this need to be done for each set or it's a permanent setting? It will trigger storing the persistent data *once*. Do this periodically or however you see fit. +Thomas -- Thomas Anders (thomas.anders at blue-cable.de) -

Re: net-snmp permanent storage behavior

2007-02-12 Thread Dave Shield
On 12/02/07, Gal Waldman <[EMAIL PROTECTED]> wrote: > Does this need to be done for each set or it's a permanent setting? This needs to be done whenever you want to save the current configuration. Think of it as a "checkpoint" request. Dave ---

Re: is there really no non-code way to add a bunch of OIDs?

2007-02-12 Thread Adam Welch
Thanks to all posters. Regards, Adam Welch On 2/12/07, Thomas Anders <[EMAIL PROTECTED]> wrote: Dave Shield wrote: > On 08/02/07, Welch, Adam <[EMAIL PROTECTED]> wrote: >> Is there some snmpd.conf directive or other method that I am overlooking >> that would more easily allow me to say to Net-

RE: net-snmp permanent storage behavior

2007-02-12 Thread Gal Waldman
Does this need to be done for each set or it's a permanent setting? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dave Shield Sent: Monday, February 12, 2007 3:59 PM To: Gal Waldman Cc: net-snmp-users@lists.sourceforge.net Subject: Re: net-snmp permanent

RE: problem managing traps via snmpTargetAddrTable

2007-02-12 Thread Gal Waldman
IV created a sink with the 'trap2sink [ip]' in the snmpd.conf. And it worked OK. I received traps as expected. IV reproduced the behavior and created matching entries via snmp manager in the tables IV mentioned before. No traps were generated. There was no deference in the entries IV created thro

Re: Problem using net-snmp as subagent (Error in packet)

2007-02-12 Thread Dave Shield
On 12/02/07, Johnny Ljunggren <[EMAIL PROTECTED]> wrote: > Hmmm, is there a way to block only these types of OID's? It would at least > help through the first deadline I've got. Try the following. Look in 'agent/mibgroup/agentx/protocol.c' in the routine agentx_realloc_build_oid(). The first bl

Re: Problem using net-snmp as subagent (Error in packet)

2007-02-12 Thread Johnny Ljunggren
Dave Shield wrote: >> Didn't get any output with snmpd -f -X -d but adding -D ALL gave a lot >> more information. > > Yes - it tends to! :) I couldn't find any information about the different tokens available. I didn't have access to internet either so I was unable to search for it. The only thin

Building net-snmp, is not linking against OpenSSL

2007-02-12 Thread Daniel Lang
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I am trying to build some monitoring software on Solaris that requires net-snmp. It requires that net-snmp be built with the openssl package as it uses the various crypto functions available. I built net-snmp 5.3.1 from source with the options and ha

Re: Problem using net-snmp as subagent (Error in packet)

2007-02-12 Thread Dave Shield
On 12/02/07, Johnny Ljunggren <[EMAIL PROTECTED]> wrote: > Didn't get any output with snmpd -f -X -d but adding -D ALL gave a lot > more information. Yes - it tends to! > I have extracted the info around the ifSpecific.1 snmpget and put it here: > http://www.navtek.no/~johnny/snmpd/agentxdump.log

Re: is there really no non-code way to add a bunch of OIDs?

2007-02-12 Thread Thomas Anders
Dave Shield wrote: > On 08/02/07, Welch, Adam <[EMAIL PROTECTED]> wrote: >> Is there some snmpd.conf directive or other method that I am overlooking >> that would more easily allow me to say to Net-SNMP (or mib2c) that "I want >> you to manage all the storage for this set of OIDs, go do it"? > > W

Re: problem managing traps via snmpTargetAddrTable

2007-02-12 Thread Dave Shield
On 11/02/07, Gal Waldman <[EMAIL PROTECTED]> wrote: > Iv used the sink configuration via the snmp.conf. > > But trying to reproduce same behavior via snmpTargetAddrTable / > snmpTargetParamsTable / snmpNotifyTable had no affect – no traps are > generated. > ANY Idea what could have gone wrong? No

Re: is there really no non-code way to add a bunch of OIDs?

2007-02-12 Thread Dave Shield
On 08/02/07, Welch, Adam <[EMAIL PROTECTED]> wrote: > Is there some snmpd.conf directive or other method that I am overlooking > that would more easily allow me to say to Net-SNMP (or mib2c) that "I want > you to manage all the storage for this set of OIDs, go do it"? Well, there are directives "

Re: Problem using net-snmp as subagent (Error in packet)

2007-02-12 Thread Johnny Ljunggren
Hello >> > Can you try turning on packet dumps in the subagent >> > and issue a GET request for one of the offending instances. > I'm not sure whether you're using the "normal" Net-SNMP agent > running as a subagent, or the simpler subagent-specific framework. I'm probably using the normal agen

Re: Sending traps with dynamic destinations

2007-02-12 Thread Dave Shield
On 12/02/07, jin zhou <[EMAIL PROTECTED]> wrote: > But I am afraid simply using : > snmp_send( ss1, pdu ); > snmp_send( ss2, pdu ); > snmp_send( ss3, pdu ); > > can't send a trap with content pdu to different destinations ,because the > routine snmp_send will free pdu automaticlly if succeed. Goo

Re: SNMP GET ERROR

2007-02-12 Thread Dave Shield
[ First - *please* don't mail me privately, without copying any responses to the mailing list. I don't have the time or inclination to offer private, unpaid, SNMP consultancy. Keep discussions to the list, where others can both learn and offer advice. Thanks. ] On 09/0

Re: net-snmp permanent storage behavior

2007-02-12 Thread Dave Shield
On 12/02/07, Gal Waldman <[EMAIL PROTECTED]> wrote: > Is there a way to make the agent store the non-volatile data on set? Write the value '1' to UCD-SNMP-MIB::versionSavePersistentData Dave - Using Tomcat but need to do mor

net-snmp permanent storage behavior

2007-02-12 Thread Gal Waldman
Is there a way to make the agent store the non-volatile data on set? IV encountered a problem with most of the supplied tables - data is stored only on kill or restart, Which means that on stand alone station on power break all configurations are lost. ---

Re: Core dump in net-snmp with solaris 10

2007-02-12 Thread Thomas Anders
anand anand wrote: > I am facing a core dump with the latest version of net-snmp on solaris 10. > But when i enable the logs in /.snmp/snmp.conf then there is no core dump. > > Has any one faced similar situation. ? If yes, then any remedies. That sort of description is much too vague. Can you ge

Core dump in net-snmp with solaris 10

2007-02-12 Thread anand anand
I am facing a core dump with the latest version of net-snmp on solaris 10. But when i enable the logs in /.snmp/snmp.conf then there is no core dump. Has any one faced similar situation. ? If yes, then any remedies. Thanks --anand

Re: Continuously displaying the same error message on the screen

2007-02-12 Thread Dave Shield
On 07/02/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I have downloaded the latest net-snmp 5.4 and loaded the agent on one > of the devices. > What I see is the "Missing CPU info entry: No such file or directory" > continuously. Can you please try running the agent using the flag '-Dcpu' an

RE: starting snmpd with multiple configuration files

2007-02-12 Thread Amita Mhaskar
Thanks ! It is working. Regards, Amita From: [EMAIL PROTECTED] on behalf of Dave Shield Sent: Fri 2/9/2007 1:16 AM To: Amita Mhaskar Cc: net-snmp-users@lists.sourceforge.net; Rajesh Prabhu Subject: Re: starting snmpd with multiple configuration files On 09/02

Re: how to get the latest net-snmp for Redhat Linux9

2007-02-12 Thread laihh
I will try it, thanks ! - Original Message - From: "Dave Shield" <[EMAIL PROTECTED]> To: "laihh" <[EMAIL PROTECTED]> Cc: Sent: Thursday, February 01, 2007 6:44 PM Subject: Re: how to get the latest net-snmp for Redhat Linux9 > On 31/01/07, Dave Shield <[EMAIL PROTECTED]> wrote: >> T

Re: Problem using net-snmp as subagent (Error in packet)

2007-02-12 Thread Dave Shield
On 10/02/07, Johnny Ljunggren <[EMAIL PROTECTED]> wrote: > Dave Shield wrote: > > Can you try turning on packet dumps in the subagent > > and issue a GET request for one of the offending instances. > > I wasn't quite sure how to do it, but I've got debug output from my master > agent, and an ethere