RE: Stuck in the way of quering a private MIB (extension using perl)

2012-06-06 Thread Chayvialle, Daniel (External)
The snmpd.conf I provided consists mostly of what's coming with snmp packages I guess. As I must in the end use SNMP v3, I was confused about what to use: r[ow]user, r[ow]community, com2sec, group, view, access, or a mixture of some of them but which ones? I stepped back to SNMP v1 for my test

Net-snmp 5.7.1: trouble with SNMPv3 INFORM's configured via MIBs, via config files ok

2012-06-06 Thread Patrick Rogier
Hi, I'm having trouble with SNMPv3 INFORM's dynamically configured via standard MIB tables. I was able to get SNMPv3 INFORM's configured via the configuration files working. For now my snmpd and snmptrapd run on the same PC. My problems are related to engineID's and localised keys. (With SNMPv3 I

Re: Stuck in the way of quering a private MIB (extension using perl)

2012-06-06 Thread Dave Shield
On 6 June 2012 15:59, Chayvialle, Daniel (External) wrote: > I have read the FAQ you mentioned, as well as other related to this topic a > few days ago, > and I can't says it was all clear to me. FAQ:Agent 24 How do I configure access control stuff? The simplest way is to use the confi

RE: Stuck in the way of quering a private MIB (extension using perl)

2012-06-06 Thread Chayvialle, Daniel (External)
I have read the FAQ you mentioned, as well as other related to this topic a few days ago, and I can't says it was all clear to me. OK, so here are the said files in full version, including changes you suggested below. Daniel -Message d'origine- De : dave.shi...@gmail.com [mailto:dave.s

Re: Binding Values succed, little problem with reloading the values

2012-06-06 Thread Magda Stefan
Sorry Dave, I've completely forgot about the .h file.Here is an archive with my folder. I've read that if I set the Timeout to -1 the load routine will be called every time a get request is received. subagg.tar.gz Description: GNU Zip compressed data --

Re: SNMP using another MIB

2012-06-06 Thread Dave Shield
[ First - *please* don't mail me privately, without copying any responses to the mailing list. I don't have the time or inclination to offer private, unpaid, SNMP consultancy. Keep discussions to the list, where others can both learn and offer advice. Thanks. ] On 2 Jun

Re: Binding Values succed, little problem with reloading the values

2012-06-06 Thread Dave Shield
On 6 June 2012 15:12, Magda Stefan wrote: > I have some printfs to see what value cache_expired return and it seems that > it's always 1. Well, since you've set the expiry time to -1, then that's what you would expect! > Here is my complete code: > > #include > #include > #include > #includ

Re: Configuring SNMP for OpenSIPs

2012-06-06 Thread Dave Shield
On 6 June 2012 14:41, Ahmed Munir wrote: > I'm new in using SNMP, I configured OpenSIPs and want to add SNMP service > into it. As I followed the OpenSIPs document, it states how to configure > SNMP with it. > > The problem I'm facing, I'm unable to understand which specific OIDs to > indicate the

Re: Binding Values succed, little problem with reloading the values

2012-06-06 Thread Magda Stefan
Hi Dave, I have some printfs to see what value cache_expired return and it seems that it's always 1. The program will read the atr and owd values from two files located in /tmp and named atr.out and owd.out. in every file is only one line like 12345.6 and 64321.2. Here is my complete code: #i

Configuring SNMP for OpenSIPs

2012-06-06 Thread Ahmed Munir
Hi, I'm new in using SNMP, I configured OpenSIPs and want to add SNMP service into it. As I followed the OpenSIPs document, it states how to configure SNMP with it. The problem I'm facing, I'm unable to understand which specific OIDs to indicate the current number of active calls, and ideally the

Re: Binding Values succed, little problem with reloading the values

2012-06-06 Thread Dave Shield
On 6 June 2012 14:11, Magda Stefan wrote: > One of my observations is that calling the cache_load routine from the > cache_free will load the data again, N! The free hook is used to release the cached data. The load hook is used to load a new set. These are different tasks, and you should

Re: Stuck in the way of quering a private MIB (extension using perl)

2012-06-06 Thread Dave Shield
On 6 June 2012 14:02, Chayvialle, Daniel (External) wrote: > My intention was to have a perl sub-agent. The pass version was added > just in case it would work by chance (the kind of things that rarely happen, > but for which I get blamed if I don't try). Fair enough - but I have to say that it w

Binding Values succed, little problem with reloading the values

2012-06-06 Thread Magda Stefan
Thanks Dave for helping me during my project. It's almost done. I've done the tests that you were asking me: starting the agent: ## [root@stefan subagg]# ./netSnmpPrvTable_subagent Initialise table cache created: -1080046408 Riding files eth

RE: Stuck in the way of quering a private MIB (extension using perl)

2012-06-06 Thread Chayvialle, Daniel (External)
Hi Dave, Regarding the log options in /etc/default/snmp, I wanted to get some clear, neat and separate log, so as not to get (overwhelmed by) irrelevant information. The TCS-MIB as you'd expect from below in my mail in the said private MIB. My intention was to have a perl sub-agent. The pass ve

Re: Undefined reference to custom function in separate header and c files

2012-06-06 Thread Dave Shield
On 23 May 2012 21:08, Ricardo Hillbrecht wrote: > I'm building a custom MIB using MFD code style. I'd written custom > functions in separate .c and .h files, this files are in the same > folder as the file that uses them (xxxTable_data_access.h). > I think the .c and .h files with the custom func

Re: Stuck in the way of quering a private MIB (extension using perl)

2012-06-06 Thread Dave Shield
On 6 June 2012 10:16, Chayvialle, Daniel (External) wrote: > Here is what I modified in /etc/default/snmp: > > %diff /etc/default/snmpd /etc/default/snmpd.org                         ~ > 11,14c11 > < SNMPDOPTS='-M /var/lib/mibs/ietf:/home/daniel/.snmp/mibs -m > SNMPv2-SMI:TCS-MIB -LS7d > -Dagent

RE: Stuck in the way of quering a private MIB (extension using perl)

2012-06-06 Thread Chayvialle, Daniel (External)
Hi Dave, Thanks for your answer. Here is what I modified in /etc/default/snmp: %diff /etc/default/snmpd /etc/default/snmpd.org ~ 11,14c11 < #SNMPDOPTS='-Lsd -Lf /dev/null -u snmp -g snmp -I -smux -p /var/run/snmpd.pid' < #SNMPDOPTS='-M /var/lib/mibs/ietf:/home/daniel/.snm

Re: Stuck in the way of quering a private MIB (extension using perl)

2012-06-06 Thread Dave Shield
On 1 June 2012 12:07, Chayvialle, Daniel (External) wrote: > I have a MIB file in ~/.snmp/mibs and a perl extension for the agent, that > is currently very close to what I could find on the Net. I have modiified > the /etc/default/snmp, /etc/snmp/snmp.conf and /etc/snmp/snmpd.conf as > under

Re: Mask value

2012-06-06 Thread Dave Shield
On 1 June 2012 20:56, Kodena Dev wrote: > One vendor ask me to put this config in my snmp.conf: > view Systemview included .1 80 > > I read some information about mask value but I'm not sure what I'm doing > setting thiswhat exactly means this 80? The mask is used to indicate which elements o