Subagent hanging

2007-04-20 Thread rama p
Hi , We are using Net-SNMP Master Agent and subagent functionality. In some scenarios our subagent needs to report lot of traps around 60 -70 at once to the SNMP agent. After sending some of the traps our subagent stops responding to all queries. It is not crashing but going into some waiting mo

Re: Cannot send V1 PDU on V2 session

2007-04-20 Thread rama p
Hi Dave, For me also SNMP agent is sending both V1 and V2 traps to the configured SNMP trap destinations . Here only the problem is with the below error messages that are reported in the snmpd.log file for each trap. "snmpd: send_trap: Cannot send V1 PDU on V2 session" Rgrds, Ramas On 4/20/0

Re: very simple exec usage

2007-04-20 Thread Charles Sprickman
On Mon, 16 Apr 2007, Dave Shield wrote: > On 13/04/07, Charles Sprickman <[EMAIL PROTECTED]> wrote: >> In snmpd.conf I have something like this: >> >> exec .1.3.6.1.4.1.2021.9100.1 QmailQueue1 /usr/local/adm/bin/qm-stat-cat.sh 1 >> exec .1.3.6.1.4.1.2021.9100.2 QmailQueue2 /usr/local/adm/bin/qm-st

Fwd: RE: about mib2c

2007-04-20 Thread Reza Salehi
Thanks Adam, Even mib2c.iterate_access.conf makes empty c file. I ran this command with ifTable (from IF-MIB.txt) and it worked fine.My table is exactly like ifTable just the name is different.I don't know why it works with ifTable but not working with myTable. Any clue? Thank

about mib2c

2007-04-20 Thread Reza Salehi
Hi All, I am trying to run mib2c using create-dataset.conf. In return it creates 2 files (mymibTable.c & mymibTable.h) .But in .C file it is just a empty subroutine that looks like this: init_mymibTable(void) { // here we initialize all the table } Shouldn't it create som

RE: Getsa and walks by name

2007-04-20 Thread Donald_Wilde
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dave Shield Sent: Monday, April 16, 2007 6:23 AM To: Wilde, Donald Cc: net-snmp-users@lists.sourceforge.net Subject: Re: Getsa and walks by name On 15/04/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Th

Re: Unable to query lm_sensors MIB

2007-04-20 Thread Benton Roberts
Hello, again. Dave Shield wrote: > ...delete all of the 'com2sec/group/view/access' lines altogether, > and simply use > rocommunity{community} > That ought to work. Indeed it does. I can now query the sensor info through SNMP and graph it over time with Cacti. Thanks, Dave! -benton

Re: Unable to query lm_sensors MIB

2007-04-20 Thread Benton Roberts
Dave Shield wrote: > On 19/04/07, Benton Roberts <[EMAIL PROTECTED]> wrote: >>> Did you compile the agent yourself, or is this a vendor-supplied agent? >> I'm using the current, stable Fedora 6 release RPM (5.3.1-14.fc6). See >> original message for hints that lm_sensors should work with this packa

Re: Unable to query lm_sensors MIB

2007-04-20 Thread Dave Shield
On 20/04/07, Benton Roberts <[EMAIL PROTECTED]> wrote: > > If that still doesn't work, then I'd suggest looking at the access control > > settings in the snmpd.conf file. > I have attempted to make sure that all MIB data for this host are > available through the SNMP server, in snmpd.conf: > view s

Re: Cannot send V1 PDU on V2 session

2007-04-20 Thread rama p
Hi Dave, Actually while sending the mail I typed the configuration details wrong. trapsink 10..0.0.4 public 162 trap2sink 10.0.0.5 public 162 Sorry for that. Thanks for your response. Rgrds, Ramas On 4/20/07, Dave Shield <[EMAIL PROTECTED]> wrote: On 20/04/07, rama p <[EMAIL PROTECTED]>

Re: Cannot send V1 PDU on V2 session

2007-04-20 Thread Dave Shield
On 20/04/07, rama p <[EMAIL PROTECTED]> wrote: > Actually while sending the mail I typed the configuration details wrong. > > trapsink 10..0.0.4 public 162 > trap2sink 10.0.0.5 public 162 OK - I've tried running the current 5.3.x code with those settings, and it works fine. Try running the age

Re: Cannot send V1 PDU on V2 session

2007-04-20 Thread Dave Shield
On 20/04/07, rama p <[EMAIL PROTECTED]> wrote: > trapsink 10.0.0.4 public localhost > trap2sink 10.0.0.5 public localhost The syntax of the "trapsink" directive is trapsink HOST COMMUNITY PORT (and the same for trap2sink). It does not make sense to specify a port number of "localhost". T

Cannot send V1 PDU on V2 session

2007-04-20 Thread rama p
Hello All, I am using Net-SNMP 5.3.1. We are getting some error messages in snmpd log file if we configure the SNMP Agent to report both V1 and V2 traps as below. trapsink 10.0.0.4 public localhost trap2sink 10.0.0.5 public localhost The err messages : "snmpd: send_trap: Cannot send V1 PDU on

Re: How to do an snmpget when using the embeded perl trap receiver in 5.3.1?

2007-04-20 Thread Dave Shield
On 20/04/07, thomas <[EMAIL PROTECTED]> wrote: > My problems is that i would like to do an SNMPGET on an OID when i am > receiveing > a specific trap, but this seems to fail: i am getting the error: > > ERROR: Unable to resolve UDP/IPv4 address 'HASH(0x82666a0)'. What does the code for retrieving

Re: very simple exec usage

2007-04-20 Thread Dave Shield
On 20/04/07, Max <[EMAIL PROTECTED]> wrote: > With 5.4 it seems that exec is completely deprecated and no longer > works as I just get 'no such OID' errors when I try to use the exec > lines I use with 5.0.9 (RHEL3 stable) snmpd. The relocatable form of "exec" has been dropped, yes. (i.e. "exten

Re: very simple exec usage

2007-04-20 Thread Dave Shield
On 19/04/07, Charles Sprickman <[EMAIL PROTECTED]> wrote: > > You'd need to adjust the 'qm-stat-cat' script to return the numeric > > value as the *exit* status from the script, and then retrieve (and monitor) > > the OID UCD-SNMP-MIB::ucdavis.9100.1.100 > > I'm a little fuzzy on that... Are you s

Re: Bizarre MIB translation problems

2007-04-20 Thread Dave Shield
On 20/04/07, Andy Fry <[EMAIL PROTECTED]> wrote: > This is the difference between the two outputs, but I'm not entirely > sure what's going on: > from command line snmpget -c public -Dparse-mibs -m CISCO-PROCESS-MIB -v > 1 129.127.71.2 CISCO-PROCESS-MIB::cpmCPUTotal5min.9 > name 2>&1 > < parse-mibs

Re: Unable to query lm_sensors MIB

2007-04-20 Thread Dave Shield
On 19/04/07, Benton Roberts <[EMAIL PROTECTED]> wrote: > > Did you compile the agent yourself, or is this a vendor-supplied agent? > I'm using the current, stable Fedora 6 release RPM (5.3.1-14.fc6). See > original message for hints that lm_sensors should work with this package. OK - I can confirm

How to do an snmpget when using the embeded perl trap receiver in 5.3.1?

2007-04-20 Thread thomas
Hello Net-snmp I am using Net-SNMp 5.3.1 And using the embedded perl functionallity to receive traps, just as described in the CPAN module NetSNMP::TrapReceiver My problems is that i would like to do an SNMPGET on an OID when i am receiveing a specific trap, but this seems to fail: i am gettin

Hello Net-snmp

2007-04-20 Thread thomas elsgaard
Hello Net-snmp I am using Net-SNMp 5.3.1 And using the embedded perl functionallity to receive traps, just as described in the CPAN module NetSNMP::TrapReceiver My problems is that i would like to do an SNMPGET on an OID when i am receiveing a specific trap, but this seems to fail: i am getting