how to configure snmptrapd

2005-02-21 Thread Paul Chen (QD/LJC)
Hi, I want to use a scipt to handle the trap messages that trapd received. So I configured the snmptrapd.conf as following: ### # # snmptrapd.conf # # - created by the snmpconf configuration program #

Questions on SET operation

2005-02-21 Thread sun
Hi:    I was trying to implement an agent , using the  netSnmpHostsTable as an example and trying to understand the calling sequence for the table handler when performing SET operation.    I noticed that in a normal operation (without any error). The sequence is MODE_SET_RESERVE1->MODE_SET

(no subject)

2005-02-21 Thread Paul Chen (QD/LJC)
Hi,all I want to forward the traps to different destination based on their oid. I know that in the snmptrap.conf there is a forward directives which an do this job. But how to configure the snmptrapd.conf? By using snmpconf tool, I can not find the position to configure the forward direc

Re: Processor load data

2005-02-21 Thread Shawn Wilson
Okay thanks for the info. After running the new query I do see some load average values now. However they might not be exactly what I'm looking for (I'll have to check on that). The reason I need this information is for Cacti, but according to various posts on the Cacti forums it is looking for

Re: Help building manager please help

2005-02-21 Thread Andres C
Hello, I'm trying to build a manager around Net-SNMP which uses both snmpd and snmptrapd demons. I have agents distributed in some copmuters monitoring some events. When it is necesary they generate a trap that needs to be reveived by this manager. Basically I'm building a manager to receive traps

Re: SnmpTrap help Needed!!

2005-02-21 Thread Robert Story
First, please don't post to both lists. On Wed, 16 Feb 2005 21:48:48 -0800 (PST) raja wrote: RK> "snmptrapd -f -P" to capture notifications,but failed RK> to capture any notifications.i am sure that my code RK> generates traps. Try snmptrapd -f -Le -d That will dump all packets receive

Re: Processor load data

2005-02-21 Thread Robert Story
On Mon, 21 Feb 2005 14:10:11 -0700 Shawn wrote: SW> I used snmpconf to create my configuration file, which like I said SW> contains only that one line. So chances are I don't have the ucd table SW> included unless that's the default. Probably a stupid question, but how SW> do I go about includin

Re: question on logfile monitoring

2005-02-21 Thread Robert Story
On Sun, 20 Feb 2005 22:36:48 +0100 Denis wrote: DG> > > To have the snmpd daemon send a trap as soon as DG> > > messages containing a certain string are written DG> > > to logfiles. DG> > > Strings like "error" or "warning" and so on. DG> > DG> > Ah. nope, we don't have anything like that. Shouldn

Re: Managing multiple instances of a MIB

2005-02-21 Thread Robert Story
On Fri, 18 Feb 2005 19:44:50 +0530 Kurapati wrote: KMG> Response as KMG> KMG> -Original Message- KMG> 3) If I use an SNMP v1 manager, how will it handle the scenario? I mean, KMG> say I have 3 instances of a1.mib running under different context, how will KMG> an SNMP v1 request for a vari

Re: Processor load data

2005-02-21 Thread Shawn Wilson
I used snmpconf to create my configuration file, which like I said contains only that one line. So chances are I don't have the ucd table included unless that's the default. Probably a stupid question, but how do I go about including it? Thanks, -shawn Robert Story wrote: On Thu, 17 Feb 2005 13

RE: Parse error in mylex mib file ?

2005-02-21 Thread Brian Ipsen
Hi, > BI> > Expected a Number (EOF): At line 6105 in > BI> > /usr/share/snmp/mibs/mlxraid.mib Bad parse of > TRAP-TYPE: At line > BI> > 6105 in /usr/share/snmp/mibs/mlxraid.mib > BI> > BI>--#SUMMARY "[ctl: %d :] Controller parameters > checksum > BI> verification failed -- resto

Re: Host-Resources MIB (Was Feeding the UCD-SNMP MIB on Windows 2000)

2005-02-21 Thread Alex Burger
Hi Jim. Mohr James wrote: I have found that there are some peformance metrics in the Host-Resources MIB. The wierd thing is that when I tried to read from it a Windows 2000 machine running net-snmp 5.2.1 I come up empty. However, on another Windows machine uisng the default Windows SNMP agent, I ca

Re: snmp queries became slow and High Cpu usage

2005-02-21 Thread Robert Story
On Thu, 17 Feb 2005 09:08:44 -0200 Marão wrote: MAAN> Thanks for help ... MAAN> I'm saying which in my networking there 70 hosts and all hosts are MAAN> monitoring with Cacti software(create graphs) and before to use net-snmp MAAN> 5.2.1(source) I used 5.1.1( Slackware's package). The time of snmp

Re: How to install PERL Modules

2005-02-21 Thread Robert Story
On Mon, 21 Feb 2005 11:32:01 +0530 Chenna wrote: C>Im using the Net-SNMP 5.1.2 . while comipling the MIB files using C> mib2c its asking to install the perl modules. C> C>Where can I find the perl modules for solaris operating sysytem. C> and How to install them. Solaris is picky about th

Re: response timout by snmp agent: plzzzzzzzzzzz help

2005-02-21 Thread Robert Story
plzzz don't post the same question more than once. On Sun, 20 Feb 2005 02:42:42 -0800 (PST) anubhuti wrote: AK> com2sec mynetwork 10.20.81.145/24 public you've got a host address with a network mask. Try deleting the '/24'. AK> then i executed the command 'snmpwalk -v 1 10.20.81.145 -c pu

Re: Parse error in mylex mib file ?

2005-02-21 Thread Robert Story
On Sun, 20 Feb 2005 22:20:44 +0100 Brian wrote: BI> > Expected a Number (EOF): At line 6105 in BI> > /usr/share/snmp/mibs/mlxraid.mib Bad parse of TRAP-TYPE: At BI> > line 6105 in /usr/share/snmp/mibs/mlxraid.mib BI> BI>--#SUMMARY "[ctl: %d :] Controller parameters checksum BI> veri

Re: About using netsnmp_xxx_list_data APIs

2005-02-21 Thread Robert Story
On Fri, 18 Feb 2005 19:05:14 +0530 Sridhar wrote: SS> In my agent, I am required to write a code to implement the linked list. SS> Instead, I am thinking of using netsnmp_xxx_list_data () APIs SS> implemented in 'data_list.c'. Yes, you can do that. You could also use the container API, which woul

Re: How to specify the interface to send traps FROM

2005-02-21 Thread Robert Story
On Fri, 18 Feb 2005 12:13:10 + David wrote: DG> I can see how to configure snmpd (Linux sid) to send V2c traps TO a DG> specific machine, but I can not see how to specify which interface (or ip DG> address) to send the traps from. Add the following to your snmpd.conf file: [snmp] clie

Re: SNMP Installation Problem

2005-02-21 Thread Robert Story
On Fri, 18 Feb 2005 16:10:19 +0530 Aparna wrote: AR> I Installed Net-SNMP 5.2.1, ActivePerl and snmp perl modules. AR> Using mib2c, I created [ch] files . AR> AR> OS. Windows 2000 AR> AR> My Issues are:- AR> AR> 1. Created .c and .h files and placed it in c:\usr\include\snmp\agent\ AR> AR>

Re: how to use powerpc-linux-gcc in net-snmp-5.0.9

2005-02-21 Thread Robert Story
On Fri, 18 Feb 2005 08:56:09 +0800 (CST) Florid wrote: FW> Thanks a lot! I want to know how to build the cross-compile FW> environment under net-snmp-5.0.9 using powerpc-linux-gcc.This problem FW> does not appear underucd-snmp-4.2.4. Best wishes! What problem? You didn't mention any

Re: How to install PERL Modules

2005-02-21 Thread Gavin Henry
On Monday 21 Feb 2005 06:02, Chenna wrote: > Hi All, >Im using the Net-SNMP 5.1.2 . while comipling the MIB files using > mib2c its asking to install the perl modules. > >Where can I find the perl modules for solaris operating sysytem. > and How to install them. I hev found some perl module

response time out by agent: plz help me out

2005-02-21 Thread anubhuti kaushik
Hi all, I am quite new to snmp. I started my snmpd agent by running the command - `snmpd -l -L`. After that I executed the command `snmpwalk -v 1 localhost -c public`. It worked fine & gave me the complete output. Now I want to run this command for some remote system. For that I appended this lin

Feeding the UCD-SNMP MIB on Windows 2000

2005-02-21 Thread Mohr James
Hi All! I installed net-snmp 5.2.1 on a Windows 2000 Server. I can query and walk through the data with no problem. However, when walking the UCD SNMP MIB (starting at OID .1.3.6.1.4.1.2021) I only get about 20 values. However, querying other machines I gets screenfulls of values. The UCB-SNMP-MIB

Parse error in mylex mib file ?

2005-02-21 Thread Brian Ipsen
Hi, I wonder if anyone could help me find out why net-snmp can't parse a mib file from Mylex ? The mib-file can be found at http://62.242.9.138/snmp/mlxraid.mib When doing a walk with "-m all" I get: Expected a Number (EOF): At line 6105 in /usr/share/snmp/mibs/mlxraid.mib Bad parse of TRAP-T

RE: How to specify the interface to send traps FROM

2005-02-21 Thread Olsson, Sten
DG > I can see how to configure snmpd (Linux sid) to send V2c traps TO a specific DG> machine, but I can not see how to specify which interface (or ip address) to DG> send the traps from. David, I have this exact problem in my system. The agent code calls a function called get_myaddr() which retu

how to use powerpc-linux-gcc in net-snmp-5.0.9

2005-02-21 Thread Florid Wang
net-snmp-users, Thanks a lot! I want to know how to build the cross-compile environment under net-snmp-5.0.9 using powerpc-linux-gcc.This problem does not appear underucd-snmp-4.2.4. Best wishes!     Florid WangDo You Yahoo!? 150万曲MP3疯狂搜

Re: snmp queries became slow and High Cpu usage

2005-02-21 Thread Marão A . A . Neto
Thanks for help ... I'm saying which in my networking there 70 hosts and all hosts are monitoring with Cacti software(create graphs) and before to use net-snmp 5.2.1(source) I used 5.1.1( Slackware's package). The time of snmp queries for all hosts was 120 seconds and now with net-snmp 5.2.1 the ti

SnmpTrap help Needed!!

2005-02-21 Thread raja krishna
Hi, I am using Agentx protocol to manage a couple of protocols.I am using my own agentx-code as subagent and net-snmp ver 5.0.8 as the master agent. I tested get/Set and walk successfully,But i am unable to capture traps on snmptrap deamon. I used the following option: "snmptrapd -f -P" to capt

Re: enable debuging output

2005-02-21 Thread Robert Story
On Thu, 17 Feb 2005 18:38:37 -0500 sun wrote: S> Any idea how I could make the debugging output to standard output ? Try snmpd -f -Lo -- Robert Story; NET-SNMP Junkie Support: Archive: Yo

Re: Processor load data

2005-02-21 Thread Robert Story
On Thu, 17 Feb 2005 13:35:45 -0700 Shawn wrote: SW> I'm having problems trying to get any sort of CPU load information from SW> my SNMP installation. I'm using net-snmp 5.2 w/ kernel 2.6.9. I admit SW> I'm not very familiar with SNMP so hopefully I'm just looking in the SW> wrong place, but here's

Re: Feeding the UCD-SNMP MIB on Windows 2000

2005-02-21 Thread Robert Story
On Mon, 21 Feb 2005 07:13:13 +0100 Mohr wrote: MJ> I installed net-snmp 5.2.1 on a Windows 2000 Server. I can query and MJ> walk through the data with no problem. However, when walking the UCD MJ> SNMP MIB (starting at OID .1.3.6.1.4.1.2021) I only get about 20 values. MJ> However, querying other m

Re: net-snmp to configure linux box?

2005-02-21 Thread Robert Story
On Mon, 21 Feb 2005 10:13:45 +0100 David wrote: DB> i am interested in remotely managing a linux box using snmp (like, DB> setting network card address, changing iptables setup ecc). however, i DB> did not find any information in the docs, how and to what extend this DB> would be possible. Mana

Re: Host-Resources MIB (Was Feeding the UCD-SNMP MIB on Windows 2000)

2005-02-21 Thread Robert Story
On Mon, 21 Feb 2005 16:24:18 +0100 Mohr wrote: MJ> I have found that there are some peformance metrics in the MJ> Host-Resources MIB. The wierd thing is that when I tried to read from it MJ> a Windows 2000 machine running net-snmp 5.2.1 I come up empty. However, MJ> on another Windows machine uisng

Re: about trap

2005-02-21 Thread Robert Story
On Fri, 18 Feb 2005 11:47:18 +0800 Paul wrote: PC> If one of my own process generate a trap message, and send it out. PC> then who will listen to it. This is to say, who will my own process PC> send its traps to? snmpd, trapsnmpd, or another process? That depends on where (ip/port)

Re: Ending tables

2005-02-21 Thread Robert Story
On Thu, 17 Feb 2005 14:47:12 -0800 John wrote: JH> Arggh... Problem solved. Further research showed enterprises.3495 is where JH> the Squid MIB is registered. The agent was proxying for Squid, but JH> Squid was down. That broke the walk and caused the error That shouldn't break the walk. The a

open source java snmp api

2005-02-21 Thread Subodh Bansal
Hello,   I know my question is not directly related to Net-SNMP-API. Please suggest me which is the best open source Java-API for developing SNMP-Management application?    Thanks Subodh

Host-Resources MIB (Was Feeding the UCD-SNMP MIB on Windows 2000)

2005-02-21 Thread Mohr James
Hi All! I have found that there are some peformance metrics in the Host-Resources MIB. The wierd thing is that when I tried to read from it a Windows 2000 machine running net-snmp 5.2.1 I come up empty. However, on another Windows machine uisng the default Windows SNMP agent, I can read the values

Re: problems with mib2c

2005-02-21 Thread manik chopra
Hello Robert, When I do: "/usr/lib/*snmp*" I get: ls: /usr/lib/*snmp*: No such file or directory when I do "/usr/local/lib/*snmp*" I get: -rw-r--r-- 1 root root 1123416 Feb 20 20:26 /usr/local/lib/libnetsnmp.a -rw-r--r-- 1 root root 228654 Feb 20 20:26 /usr/local/lib/libnetsnmpagent.a -rwx

AW: Feeding the UCD-SNMP MIB on Windows 2000

2005-02-21 Thread Mohr James
Does SSCpuRawIdle belong to the "UCD pass-through extensions" that, "do not currently work under Windows"? If so, how do we monitor performance information like CPU-Idle, Diskspace, NIC packets, etc, using snmp? The name of the MIB would be suffficient. Regards, Jim Mohr > -Ursprüngliche

net-snmp to configure linux box?

2005-02-21 Thread David Buchmann
hello, i am interested in remotely managing a linux box using snmp (like, setting network card address, changing iptables setup ecc). however, i did not find any information in the docs, how and to what extend this would be possible. does anybody have indications where to look, if it is supporte

Re: How to install PERL Modules

2005-02-21 Thread Gavin Henry
On Monday 21 Feb 2005 06:02, Chenna wrote: > Hi All, >Im using the Net-SNMP 5.1.2 . while comipling the MIB files using > mib2c its asking to install the perl modules. > >Where can I find the perl modules for solaris operating sysytem. > and How to install them. I hev found some perl module