Re: Seg fault when querying for the UDP table

2010-04-12 Thread Malathi Panyam
Hi Dave,     Sure, once I figure out the fix, I will definitely update the users list. Meanwhile I tried to debug the agent code and these are my observations. Call stack on the OpenWRT  environment Breakpoint 1, ifTable_index_to_oid (oid_idx=0xbefe2f64, mib_idx=0xbefe318c) at

Re: Seg fault when querying for the UDP table

2010-04-12 Thread Dave Shield
On 11 April 2010 00:21, Malathi Panyam malathipan...@yahoo.com wrote: Hi Dave,   Sure, once I figure out the fix, I will definitely update the users list. Thanks. Sorry if I sounded a bit sharp last week. Supporting this software does get a bit frustrating at times. I tried to

snmp trap for interface up/down

2010-04-12 Thread vaibhav khatavkar
Hi all, I have referred to the tutorials and got them worked on my side for trap generation. Also I can get Cold Start Trap and NET-SNMP-AGENT-MIB::nsNotifyShutdown when i start/stop the snmp service on the remote machine. But I am unable to get link up and link down. How can I get that

Re: No OID's for hrDeviceStatus in HOST-RESOURCES-MIB of net-SNMP agent(RHEL, Solaris)

2010-04-12 Thread Dave Shield
On 12 April 2010 06:30, Evgeny Nagaev enag...@gmail.com wrote: But can you tell me what is the reason to do so? Because at the time that I was writing the original code, it wasn't clear to me exactly how you would detect the status of a disk (or most of the other hardware types).

Re: snmp trap for interface up/down

2010-04-12 Thread Dave Shield
On 12 April 2010 09:33, vaibhav khatavkar khatavkarvaibha...@gmail.com wrote: But I am unable to get link up and link down. How can I get that worked ? See the 'snmpd.conf(5)' man page entry on linkUpDownNotification. Note that you will need to create a suitable SNMPv3 user, and configure this

Re: No OID's for hrDeviceStatus in HOST-RESOURCES-MIB of net-SNMP agent(RHEL, Solaris)

2010-04-12 Thread Evgeny Nagaev
OK, but can you provide me with info about how to extend your sources to support my own development of hrDeviceStatus support in net-snmp? 2010/4/12 Dave Shield d.t.shi...@liverpool.ac.uk On 12 April 2010 06:30, Evgeny Nagaev enag...@gmail.com wrote: But can you tell me what is the reason to

Re: No OID's for hrDeviceStatus in HOST-RESOURCES-MIB of net-SNMP agent(RHEL, Solaris)

2010-04-12 Thread Dave Shield
On 12 April 2010 10:32, Evgeny Nagaev enag...@gmail.com wrote: OK, but can you provide me with info about how to extend your sources to support my own development of hrDeviceStatus support in net-snmp? In the routine init_hr_disk(), look for the line device_descr[HRDEV_DISK] =

Re: Net-SNMP 5.4.3.rc2 and 5.2.6.rc2 available for testing

2010-04-12 Thread Dave Shield
On 10 April 2010 08:53, Bart Van Assche bvanass...@acm.org wrote: Building 5.4.3.rc2 on Windows via build.bat fails: ..\..\snmplib\snmpTCPDomain.c(187) : error C2065: 'socklen_t' : undeclared identifier ..\..\snmplib\snmpTCPDomain.c(187) : error C2146: syntax error : missing ';' before

help

2010-04-12 Thread jihed lazid
hello; I'm working in my project to devellop an agent SNMP using the source of Net-SNMP. For me, i need juste the agent without the commandes : snmpget, snmpset because this agnet has to send the trap messages and response to the request (set, get ...) send by the manager SNMP (OpenNMS).

Sending GENERR back in GET Request

2010-04-12 Thread JORDI LOPEZ
I'm writing a simple AgentX sub-agent to handle two scalars called defaultBackGroundColor and dmsColorScheme. When accesing defaultBackGroundColor I have to return its value or a genErr depending on the value of dmsColorScheme. I'm forced by specification to use SNMP v1. Here is the code I

Re: help

2010-04-12 Thread Dave Shield
On 12 April 2010 12:47, jihed lazid jihed.la...@gmail.com wrote: i need juste the agent without the commandes : snmpget, snmpset ./configure --disable-applications Dave -- Download Intel#174; Parallel

help

2010-04-12 Thread jihed lazid
I don't need to install the agent but I'll do an extension to the agent, how I want to write an SNMP agent in C starting with the source of Net-SNMP, but without the commandes. So I want to know what the agent files among all the package. So I want to know the file (. C) responsible for sending

Re: help

2010-04-12 Thread jihed lazid
I don't need to install the agent but I'll do an extension to the agent, how I want to write an SNMP agent in C starting with the source of Net-SNMP, but without the commandes. So I want to know what the agent files among all the package. So I want to know the file (. C) responsible for sending

Re: help

2010-04-12 Thread Dave Shield
On 12 April 2010 14:58, jihed lazid jihed.la...@gmail.com wrote: . I want to know what the agent files among all the package. The files for the agent are in the folder 'agent'. The agent also relies on the Net-SNMP library, which is under 'snmplib'  So I want to know the file (. C)

Re: Net-SNMP 5.4.3.rc2 and 5.2.6.rc2 available for testing

2010-04-12 Thread Dave Shield
On 10 April 2010 08:53, Bart Van Assche bvanass...@acm.org wrote: Building 5.4.3.rc2 on Windows via build.bat fails: [ ... ] cl.exe /nologo /MD /W3 /GX /O2 /I . /I .. /I ..\..\snmplib /I ..\.. /I ..\..\include /D WIN32 /D NDEBUG /D _CONSOLE /D _MBCS /D NETSNMP_DLL /Fp.\release\libsnmp_dll.pch

Re: delay in trap management

2010-04-12 Thread Javier González Lázaro
Hi Dave, As you say, there was a problem with Names Resolution. With the option -n (Do not attempt to translate source addresses of incoming packets into hostnames) in the /etc/init.d/snmptrapd the delay between all the traps is reduced to 1 second. But now, i have another problem, nagios don´t

RE: Net-SNMP 5.4.3.rc2 and 5.2.6.rc2 available for testing

2010-04-12 Thread Mike Ayers
From: Dave Shield [mailto:d.t.shi...@liverpool.ac.uk] Sent: Monday, April 12, 2010 3:37 AM On 10 April 2010 08:53, Bart Van Assche bvanass...@acm.org wrote: Building 5.4.3.rc2 on Windows via build.bat fails: ..\..\snmplib\snmpTCPDomain.c(187) : error C2065: 'socklen_t' : undeclared

Re: Net-SNMP 5.4.3.rc2 and 5.2.6.rc2 available for testing

2010-04-12 Thread Bart Van Assche
On Mon, Apr 12, 2010 at 4:20 PM, Dave Shield d.t.shi...@liverpool.ac.ukwrote: On 10 April 2010 08:53, Bart Van Assche bvanass...@acm.org wrote: Building 5.4.3.rc2 on Windows via build.bat fails: [ ... ] cl.exe /nologo /MD /W3 /GX /O2 /I . /I .. /I ..\..\snmplib /I ..\.. /I ..\..\include

question on proxy agent

2010-04-12 Thread Kathy McLeod
Hi - We are considering making one agent a proxy for other agents. I read the documentation and have a few questions. 1) If the proxy is not being configured from the command line, is there an API for setting it up? 2) What happens if the proxy agent fails - is there some kind of

Re: question on proxy agent

2010-04-12 Thread Dave Shield
On 12 April 2010 20:44, Kathy McLeod kmcl...@us.ibm.com wrote: 1) If the proxy is not being configured from the command line, Proxy support is typically configured via the config file, rather than the command line. is there an API for setting it up? No. You'd need to update the config file,