Re: hrStorage doesn't show my partitions

2007-09-04 Thread Thomas Anders
Daniel van Ham Colchete wrote: I'm using net-snmp+cacti to monitor some servers I have. I just finished installing 10 new ones, but hrStorage will not report my disks to me at those 10 new servers. With an old server, when I 'snmpwalk|grep hrStorageDescr' there I have:

Re: Registering tables without TabelEntry: Possible?

2007-09-04 Thread Dave Shield
On 03/09/07, Dirk Süsserott [EMAIL PROTECTED] wrote: Is it possible to register a table *without* the table entry? No. The background for my question is: For some reason someone in our project has defined a table without that TableEntry. Then that MIB is not valid. An SMI table *MUST*

Re: Calling create_v2_trap_session works fine even called from subagent

2007-09-04 Thread Dave Shield
On 02/09/07, DI BACCO ANTONIO - technolabs [EMAIL PROTECTED] wrote: I tried to call_v2_trap_session from within my subagent and it works, the trap is delivered to the master but then the master send it to the sink and sinkport I specified. Yes - that's how sending traps from an AgentX subagent

Re: Sending trap by myself without passing through master agent

2007-09-04 Thread Dave Shield
On 29/08/07, DI BACCO ANTONIO - technolabs [EMAIL PROTECTED] wrote: Is it possible to call a function to give me the UDP packet that should be send as a trap? I want to send it by myself, I'm in a subagent and I don't want to deliver it to the master agent. Use 'snmp_open' to open a connection

Re: Can not find Module (DISMAN-EVENT-MIB): at line 0

2007-09-04 Thread Dave Shield
On 31/08/07, Reza Salehi [EMAIL PROTECTED] wrote: I am running Net-snmp 5.4. Whenever I run snmpd or snmpget or set It will give me two errors: Cannot Finf module : (DISMAN-EVENT-MIB): AT line 0 in (none) cannot find module : (NET-SNMP-VACM-MIB):At ine 0 in (none) I put those MIB file

Re: question about mib tree parser

2007-09-04 Thread Dave Shield
On 29/08/07, [EMAIL PROTECTED] wrote: Does net-snmp support an api that allows to read in a mib file and returns a pointer to the mib tree that is generated based on the mib file? Thanks. netsnmp_read_module() (See snmplib/parse.c) Dave

Re: Passing context name and Engine ID in Request

2007-09-04 Thread Dave Shield
On 28/08/07, [EMAIL PROTECTED] wrote: Do we need to configure context Name and context Engine somewhere in snmpd.conf or it is automatically done for snmpv3 by Net-SNMP If you want to use a non-default context, then yes - this needs to be configured. See the FAQ entry How can I register a

Compiling MIBs under proprietary enterprise tree

2007-09-04 Thread Madan Mohan
Hi All, I have some MIBs which are proprietary(children of enterprise. OID).If I have to compile such kind of MIBs, do I need to take NETSNMP code with --with-enterprise-oid option in Configure script? Thanks, Madan -

Shawn He is out of the office.

2007-09-04 Thread Shawn_He
I will be out of the office starting 09/04/2007 and will not return until 09/10/2007. I will respond to your message when I return. - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find

Re: Compiling MIBs under proprietary enterprise tree

2007-09-04 Thread Dave Shield
On 04/09/07, Madan Mohan [EMAIL PROTECTED] wrote: I have some MIBs which are proprietary(children of enterprise. OID).If I have to compile such kind of MIBs, What do you mean by compile ? What exactly are you trying to do? Please see the FAQ entries How do I add a MIB to the tools?

RE: Compiling MIBs under proprietary enterprise tree

2007-09-04 Thread Madan Mohan Goud
On 04/09/07, Madan Mohan [EMAIL PROTECTED] wrote: I have some MIBs which are proprietary(children of enterprise. OID).If I have to compile such kind of MIBs, What do you mean by compile ? [Madan] : When I say compile, I am trying to compile my MIB with mib2c. What exactly are you trying to

Re: hrStorage doesn't show my partitions

2007-09-04 Thread Daniel van Ham Colchete
Hi Thomas, This is an old server: archer ~ # snmpwalk -V NET-SNMP version: 5.4 archer ~ # snmpwalk -v3 -a MD5 -A 'A PASSWORD' -l authNoPriv -u 'AN USER' A HOST hrStorageDescr HOST-RESOURCES-MIB::hrStorageDescr.1 = STRING: Physical memory HOST-RESOURCES-MIB::hrStorageDescr.3 = STRING: Virtual

Re: Re: Re:Re: Capabilties of pass command in snmpd.conf?

2007-09-04 Thread Stefan Guenther
Hello Ken, The response should be 3 lines: the OID, the data type, and the data value, each on it's own line. For example: .1.3.6.1.4.1.29090.1.1 integer 10 Read the section Extending Agent Functionality here http://net-snmp.sourceforge.net/docs/man/snmpd.conf.html . particularaly

Re: Re: Re:Re: Capabilties of pass command in snmpd.conf?

2007-09-04 Thread Dave Shield
On 04/09/07, Stefan Guenther [EMAIL PROTECTED] wrote: There's only one thing in the output, which might cause some trouble. Here's what I get: SNMPV2-SMI::entrprises.10190.1 = STRING: hello world Error: OID not increasing: SNMPV2-SMI::enterprises.10190.1 =

Re: Re: Re:Re: Capabilties of pass command in snmpd.conf?

2007-09-04 Thread Ken Adey
That message is because you're returning the OID the agent is asking for on a getnext command. You should be returning the next OID from the one it's asking for when it's a getnext command. So basically your script needs to return different OIDs based on whether it's a get or a getnext. When

Disk Usage trap

2007-09-04 Thread Mateus Interciso
Hello, I have the traps correctly setted up for at least the proccess, I've put some basic monitoring, and they are being sent to the snmptrapd, and everything works fine, but I can't seem to be able to do this for the disk usage, here's how's my snmpd.conf file on this issue: (the /dev/sda3

Requests not passed to the handler

2007-09-04 Thread Milan_Tvarozek
Hello all, I am experiencing a strange problem. I have written a simple common handler for MOD_GET a MOD_GETNEXT. The handler seems to work fine but certain SNMP requests are not passed to the handler. Example: snmpget -v 1 -c public localhost .1.3.6.1.2.1.1.1.1is passed. snmpget -v 1 -c

Re: Requests not passed to the handler

2007-09-04 Thread Dave Shield
On 04/09/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: The handler seems to work fine but certain SNMP requests are not passed to the handler. Example: snmpget -v 1 -c public localhost .1.3.6.1.2.1.1.1.1is passed. snmpget -v 1 -c public localhost .1.3.6.1.2.1.4.1.1is NOT passed.

Re: Question about INFORM Protocol

2007-09-04 Thread Dave Shield
On 30/08/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I want to know how inform manages notifications (i.e.: if snmpd doesn't receive an ack, it retries sending notifications until it receive an ack)? This is part of the low-level library code. The netsnmp_session structure includes fields

Re: Disk Usage trap

2007-09-04 Thread Mateus Interciso
On Tue, 04 Sep 2007 14:55:28 +0100, Dave Shield wrote: On 04/09/07, Mateus Interciso [EMAIL PROTECTED] wrote: monitor -r 5 -o prNames -o prErrMessage Process table prErrorFlag != 0 monitor -r 5 -o dskPath -o dskErrMessage Disk Usage dskErrorFlag != 0 defaultMonitors yes You don't need

Re: Disk Usage trap

2007-09-04 Thread Dave Shield
On 04/09/07, Mateus Interciso [EMAIL PROTECTED] wrote: Strangelly enough, if I walk the dskTable and dskErrorFlag, with these commands, here's what I recieve snmpwalk -v3 -u * -n -l authNoPriv -a MD5 -A *** localhost dskTable UCD-SNMP-MIB::dskTable = No Such Object

Re: Disk Usage trap

2007-09-04 Thread Mateus Interciso
On Tue, 04 Sep 2007 15:10:26 +0100, Dave Shield wrote: On 04/09/07, Mateus Interciso [EMAIL PROTECTED] wrote: Strangelly enough, if I walk the dskTable and dskErrorFlag, with these commands, here's what I recieve snmpwalk -v3 -u * -n -l authNoPriv -a MD5 -A ***

Persistent storage

2007-09-04 Thread Peter Czaja
My goal is to persistently store some writable values of a custom MIB so they survive the lifetime of my SNMP AgentX subagent myagent. I already stumbled upon the concept of DEFAULT_STORE and its netsnmp_ds_(get|set)_(boolean|int|string) calls. When compiling using net-snmp-config

Re: Disk Usage trap

2007-09-04 Thread Dave Shield
On 04/09/07, Mateus Interciso [EMAIL PROTECTED] wrote: Yes, I did compiled it by myself, and the ucd-snmp/disk module is enabled by default. And so is it being included right? It *should* be. But I suggest that you check whether it actually *was*. E.g. by recompiling the code (or looking at

Re: Persistent storage

2007-09-04 Thread Dave Shield
On 04/09/07, Peter Czaja [EMAIL PROTECTED] wrote: But where is the equivalent to the init_myagent_scalar() function? Something like finalize_myagent_scalar(), which would be a natural place to implement the corresponding calls to netscnmp_ds_write_*(). What did I miss? Add the following

Fw: pass_persist issue...

2007-09-04 Thread Ken Adey
Regarding my query last week on my pass_persist issue (see below), I've upgraded my Net-SNMP to 5.4.1, but am seeing the same behavior. It must be something with my script that's causing the Net-SNMP agent to send my script 4 SIGPIPE signals, but I just can't see what it is. Any help in

Re: Requests not passed to the handler

2007-09-04 Thread Mateus Interciso
On Tue, 04 Sep 2007 15:48:39 +0200, Milan_Tvarozek wrote: Hello all, I am experiencing a strange problem. I have written a simple common handler for MOD_GET a MOD_GETNEXT. The handler seems to work fine but certain SNMP requests are not passed to the handler. Example: snmpget -v 1

Fwd: RE: RE: RE: snmpget returns Unknown host

2007-09-04 Thread Reza Salehi
Mike, I check that file and that line is there(hosts: files dns). I also can do telnet localhost. But still when I do snmpget localhost . I get the Unknown Host error. Any other suggestion? I appreciate your help. Regards, Reza Note: forwarded

Fwd: Re: Can not find Module (DISMAN-EVENT-MIB): at line 0

2007-09-04 Thread Reza Salehi
Thanks Dave for your response. I ran the snmpd --- snmpd -Dparse-mibs but I couldn't see anywhere if the DISMAN-EVENT_MIB module is loaded.Attached please find snmpd.log . I appreeciate it if you could give me some hints. Regards, Reza Note: forwarded message

Re: Re: Can not find Module (DISMAN-EVENT-MIB): at line 0

2007-09-04 Thread Dave Shield
On 04/09/07, Reza Salehi [EMAIL PROTECTED] wrote: I ran the snmpd --- snmpd -Dparse-mibs but I couldn't see anywhere if the DISMAN-EVENT_MIB module is loaded.Attached please find snmpd.log . Well, according to that log - the DISMAN-EVENT-MIB is not listed as being in

Fwd: Re: Re: Can not find Module (DISMAN-EVENT-MIB): at line 0

2007-09-04 Thread Reza Salehi
Thanks Dave, Please find in attached file the out put of ls /usr/local/share/snmp/mibs command . It shows that DISMAN-EVENT-MIB.txt is there. Regards, Reza Note: forwarded message attached. - Fussy? Opinionated? Impossible to please? Perfect.

RE: snmpget returns Unknown host

2007-09-04 Thread Mike Ayers
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Reza Salehi Sent: Tuesday, September 04, 2007 2:24 PM I check that file and that line is there(hosts: files dns). I also can do telnet localhost. But still when I do snmpget localhost . I get the Unknown

Fwd: RE: snmpget returns Unknown host

2007-09-04 Thread Reza Salehi
Mike, The good thing is I can run the commands using 127.0.0.1 instead of localhost but As you mentioned I might need to rebuild again the net-snmp. Thanks for your help. Regards, Reza Note: forwarded message attached. - Choose the right car