Re: netsnmp_large_fd_set_resize() sucking cycles

2014-10-21 Thread Bill Fenner
On Mon, Oct 20, 2014 at 9:23 PM, Jono Poff jonathan.p...@taitradio.com wrote: On 18/10/2014 2:44 a.m., Bill Fenner wrote: On Thu, Oct 16, 2014 at 9:48 PM, Jono Poff jonathan.p...@taitradio.com wrote: Hi, I'm investigating excessive cpu usage in some server software on Solaris 10. By

Fwd: Getting snmpv2c response for garbage community string.

2014-10-21 Thread timingsrc src
-- Forwarded message -- From: timingsrc src timing...@gmail.com Date: Tue, Oct 21, 2014 at 6:32 PM Subject: Getting snmpv2c response for garbage community string. To: net-snmp-cod...@lists.sourceforge.net net-snmp-cod...@lists.sourceforge.net Hello all, I am facing a problem

snmpget timeout when being run from a script

2014-10-21 Thread Krzysztof Szarlej
Hi all! I have a strange problem. I want to monitor my Synology NAS Device. I created in snmpd.conf an exec statement for my sample script that has to run one snmpget and multiply the result by 4 to give me the correct value: exec synology_disk_usage /opt/bin/bash /usr/bin/diskusage.sh And the

Re: snmpget timeout when being run from a script

2014-10-21 Thread Bill Fenner
The exec handler is synchronous, so snmpd is stuck waiting for the script to return a value. It can't handle the request from the script while it's waiting like this. If your agent has the DISMAN-EXPRESSION-MIB support compiled in, in theory it can do simple math like this. In practice I've

Re: using Mib2c on an entire MIB, not individual MIB objects

2014-10-21 Thread Ali Azar
Could someone with the knowledge please reply? Thanks! On 20 October 2014 17:35, Ali Azar azaad2...@gmail.com wrote: I have a mib file which has many tables. I have used mib2c to generate code for each of the tables separately in the following fashion mib2c -c someconfigFile tablename1

Re: COUNTER64 C type?

2014-10-21 Thread Matt Kappel
To answer my own question, for COUNTER64, the struct counter64 (defined in asn1.h) should be used, where you split the 64 bit value into high and low u_long (unsigned long). On Mon, Oct 20, 2014 at 11:53 PM, Matt Kappel matt.kap...@gmail.com wrote: Hello, I'm trying to write an AgentX

Re: Net-SNMP Python bindings

2014-10-21 Thread Eduardo Bragatto
Hi Bill, Your point is valid, but I always had the impression that the iid always comes down to the last numeric value in the complete OID. That way, just based just on logic, we wouldn't require the MIB definitions to always get the same behaviour just based on the OID. Even on IP-MIB, where

Fwd: Getting snmpv2c response for garbage community string.

2014-10-21 Thread timingsrc src
Hello all, I am facing a problem with authenticating snmpv2c requests. Agent is responding for all garbage community strings, which is not right. In snmpd.conf file has below lines rocommunity bangalore rwcommunity wilson But still am getting responses when i query with wrong community string