How to send float values from agent

2007-05-29 Thread Vishal N
Hi, How to send float values from agent? I have tried but it is giving error message "SMPS-MIB::loadFRFC9.0 = Wrong Type (should be Opaque): INTEGER: 1110585115 " What is Opaque? How to handle float values in agent. Vishal N Looking for people who are YOUR TYPE? Find them at in.groups.y

Re: Can two MIB Tables be related and be required to share the same row index?

2007-05-29 Thread ALBERT BEZZINA
Hi, I am assume that when you have this kind of tables one should use the AUGMENTS clause. Am I write? If not what, than when should one use the AUGMENTS clause instead of INDEX one? What is the difference exactly? Furthermore, can a table have both an AUGMENTS and INDEX clauses? For example, I

Re: Can two MIB Tables be related and be required to share the same row index?

2007-05-29 Thread Dave Shield
On 29/05/07, ALBERT BEZZINA <[EMAIL PROTECTED]> wrote: > I am assume that when you have this kind of tables one should use the > AUGMENTS clause. Am I write? Yes. > Furthermore, can a table have both an AUGMENTS and INDEX clauses? No. One or the other, not both. > For example, I would like to

Re: snmpget, snmpwalk timeout, but response comes

2007-05-29 Thread Dave Shield
On 29/05/07, Artur WILCZEK <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED]: ~]$ snmpget -d -v1 -c plmik01 ups1 system.sysName.0 > > Sending 44 bytes to UDP: [192.168.1.100]:161 > : 30 2A 02 01 00 04 07 70 6C 6D 69 6B 30 31 A0 1C0*.plmik01 . > 0016: 02 04 77 64 4E 5E This outgoi

snmpget, snmpwalk timeout, but response comes

2007-05-29 Thread Artur WILCZEK
Hi, I can observe something strange with new UPS equipped with InsightPower SNMP card. I'm trying monitor it from Debian Etch (kernel 2.6.8) and net-snmp apps in version 5.2.3. For example: [EMAIL PROTECTED]: ~]$ snmpget -v1 -c plmik01 ups1 system.sysName.0 Timeout: No Response from ups1. but i

trouble with proc monitoring incorrectly setting prErrorFlag

2007-05-29 Thread Kelsey Cummings
We use snmpd on a couple hundered linux servers all using the 'proc' monitoring features. After a recent upgrade to centos 4.5, we've started getting a lot of false alerts from snmpd where prErrorFlag is incorectly set to one even though the process is operating within the bounds specified in the

Re: trap handling

2007-05-29 Thread Daniel Coelho
I have configured net-snmp this way: /etc/snmp/snmp.conf: logtimestamp 1 defaultport 161 defversion 2c defcommunity public dodebugging 0 dumppacket 1 printNumericOids true /etc/snmp/snmpd.conf: trapcommunity public trap2sink 127.0.0.1 public 162 authtrapenable 1 syscontact [EMAIL PROTE

Re: Sending Duplicate Traps

2007-05-29 Thread Eduardo Saavedra Cea
I have another doubt. Maybe this is my problem with the problem before. In my subagent I need to call the function init_agent("alarmas") and init_snmp("alarmas"). When I do It, the configuration file "alarmas.conf" is read form the /var/net-snmp/ directory. How can I avoid this??? Is this interferi

Re: trap handling

2007-05-29 Thread Dave Shield
On 29/05/07, Daniel Coelho <[EMAIL PROTECTED]> wrote: > I thought I needed the DisMan Event Handling > to receive traps... No. The DisMan Event handling is used to *generate* traps. > I want to send a trap to an IP when it occurs. > For example, when I unplug the network cable, > I want a trap

Re: Sending Duplicate Traps

2007-05-29 Thread Eduardo Saavedra Cea
I see the follow: condor:~ # /usr/local/sbin/snmpd -f -Le -Dread_config registered debug token read_config, 1 read_config: reading premib configuration tokens read_config: config path used for snmpd:/usr/local/etc/snmp:/usr/local/share/snmp:/usr/local/lib/snmp:/root/.snmp (persistent path:/var/ne

Re: multi-destination trap send .

2007-05-29 Thread Dave Shield
On 29/05/07, Julien Pinon <[EMAIL PROTECTED]> wrote: > Is there a way to add at run time some trap sinks ? You can manipulate the snmpNotifyTable, snmpTargetAddrTable and snmpTargetParamsTable directly. Try walking these tables to see what entries get installed by the "trapsink" (and similar) di

Re: Sending Duplicate Traps

2007-05-29 Thread Dave Shield
On 29/05/07, Eduardo Saavedra Cea <[EMAIL PROTECTED]> wrote: > I'm using an agentx to send traps through the snmpd daemon. My problem > is that It send duplicate traps for each request from my agentx. I saw > this whit the strace tool. You can see this in the log below. > I don't understand the rea

Sending Duplicate Traps

2007-05-29 Thread Eduardo Saavedra Cea
Hello. I'm using an agentx to send traps through the snmpd daemon. My problem is that It send duplicate traps for each request from my agentx. I saw this whit the strace tool. You can see this in the log below. I don't understand the reason. I include the follows lines in the snmpd.conf configurat

Re: multi-destination trap send .

2007-05-29 Thread Julien Pinon
Le mardi 29 mai 2007 à 09:58, "Dave Shield" <[EMAIL PROTECTED]> écrivait : > On 29/05/07, feebright <[EMAIL PROTECTED]> wrote: >> I want to send trap to multi destination.And i config the snmpd.conf as: >> trap2sink xx.xx.xx.xx public >> trap2sink yy.yy.yy.yy public >> And i successful!

trap handling

2007-05-29 Thread Daniel Coelho
I thought I needed the DisMan Event Handling to receive traps... I'm a bit confused. Let me explain again my aim. I want to send a trap to an IP when it occurs. For example, when I unplug the network cable, I want a trap to be sent to an IP automaticaly. The same goes for other kinds of traps that

Re: disman/event-mib argument on net-snmp configure script

2007-05-29 Thread Dave Shield
On 29/05/07, Daniel Coelho <[EMAIL PROTECTED]> wrote: >I used a agentSecName equal to my rocommunity. No. That's not correct. The DisMan event handling uses SNMPv3 requests internally, so you *must* create an SNMPv3 user, and specify this as the agentSecName. See the documentation for detai

Re: disman/event-mib argument on net-snmp configure script

2007-05-29 Thread Daniel Coelho
Hello, I ran the configure script with the "--with-mib-modules=disman/event" argument and now there isn't a linkUpDownNotifications warning, but when I unplug the network cable my snmptrapd.conf runs the authenticationFailure traphandler. I used a agentSecName equal to my rocommunity. My aim is t

Re: Wrong interface speed for bonding interfaces.

2007-05-29 Thread Lars Erik Thorsplass
On 5/29/07, Dave Shield <[EMAIL PROTECTED]> wrote: > On 29/05/07, Lars Erik Thorsplass <[EMAIL PROTECTED]> wrote: > > I have tried to modify the snmpd.conf to set the interface > > speed manually: > > > > interface bond* 6 10 > > > > This does not seem to work, but I might have misunderstoo

Re: Wrong interface speed for bonding interfaces.

2007-05-29 Thread Dave Shield
On 29/05/07, Lars Erik Thorsplass <[EMAIL PROTECTED]> wrote: > I have tried to modify the snmpd.conf to set the interface > speed manually: > > interface bond* 6 10 > > This does not seem to work, but I might have misunderstood the > snmpd.conf man page. Any hints? Try interface bond

Wrong interface speed for bonding interfaces.

2007-05-29 Thread Lars Erik Thorsplass
I have a problem getting snmpd to report the "correct" interface speed for a couple of bonding interfaces. Enviroment: NET-SNMP version: 5.1.2 on RedHat Enterprise Linux 4 x86-54 (update 4) I have 2 bonding interfaces: bond0 (eth0, eth2) bond1 (eth1, eth3) IF-MIB::ifDescr.1 = STRING: lo IF-MI

Re: multi-destination trap send .

2007-05-29 Thread Dave Shield
On 29/05/07, feebright <[EMAIL PROTECTED]> wrote: I want to send trap to multi destination.And i config the snmpd.conf as: trap2sink xx.xx.xx.xx public trap2sink yy.yy.yy.yy public And i successful! But i think this is not a good ways and want to kown there is some ways better. No -