error msg "No such instance ~" on trap message?

2010-04-12 Thread key
Hi, all.. I'm using net-snmp 5.4.2.1 compiled for sun solaris 10 sparc (I downloaded it from sunfreeware.com) as a master agent, And sun masf (management agent for sun fire) as a subagent. I'm testing triggering a trap when CPU temperature is over 40 degree. This is my snmpd.conf: creat

Re: question on proxy agent

2010-04-12 Thread Dave Shield
On 12 April 2010 20:44, Kathy McLeod 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, and signal the age

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 auto-failover

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 wrote: > On 10 April 2010 08:53, Bart Van Assche 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" /

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 wrote: > > Building 5.4.3.rc2 on Windows via build.bat fails: > > ..\..\snmplib\snmpTCPDomain.c(187) : error C2065: 'socklen_t' : > undeclared identifier > > ..

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 r

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 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_

Re: help

2010-04-12 Thread Dave Shield
On 12 April 2010 14:58, jihed lazid 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) responsible for sendi

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 mes

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 mes

Re: help

2010-04-12 Thread Dave Shield
On 12 April 2010 12:47, jihed lazid wrote: > i need juste the agent without the > commandes : snmpget, snmpset ./configure --disable-applications Dave -- Download Intel® Parallel Studio Eval Try the new s

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 use

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). s

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 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 identifier 'farend

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 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] = describe_disk; and add

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 > On 12 April 2010 06:30, Evgeny Nagaev wrote: > > But can you tell me what is the reason to do so? > > Because at the time that I was

Re: snmp trap for interface up/down

2010-04-12 Thread Dave Shield
On 12 April 2010 09:33, vaibhav khatavkar 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 to be used for intern

Re: delay in trap management

2010-04-12 Thread Dave Shield
2010/4/12 Javier González Lázaro > I want to say the traps are logged with a delay of 40 seconds when > simultaneous traps are received. > As you can see, the timestamps  being recorded are not based on the time at > which the traps arrive. > * > 2010-

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 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). >

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

Re: Seg fault when querying for the UDP table

2010-04-12 Thread Dave Shield
On 11 April 2010 00:21, Malathi Panyam 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 debug further on OpenWRT

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 if