Fix for hrSWRunPerfCPU/Mem

2012-01-25 Thread Vincent Bernat
Hi! On Linux, hrSWRunPerfCPU and hrSWRunPerfMem have incorrect values. I have fixed this in a patch that should follow. I will post it on Sourceforge as soon as I am able to validate my account (the confirmation mail seems to have been lost). I would also like to point that the parsing code in

[PATCH] mibgroup/host: fix hrSWRunPerfCPU and hrSWRunPerfMem

2012-01-25 Thread Vincent Bernat
elements. Same for the loop that needed to skip 9 elements: only 8 elements were skipped. Signed-off-by: Vincent Bernat ber...@luffy.cx --- .../host/data_access/swrun_procfs_status.c |9 +++-- 1 files changed, 3 insertions(+), 6 deletions(-) diff --git a/agent/mibgroup/host

Re: [PATCH] mibgroup/host: fix hrSWRunPerfCPU and hrSWRunPerfMem

2012-01-26 Thread Vincent Bernat
OoO Vers la fin de l'après-midi du jeudi 26 janvier 2012, vers 16:20, Robert Story rst...@freesnmp.com disait : VB Signed-off-by: Vincent Bernat ber...@luffy.cx Did this ever make it into the patch tracker? What release/branch is this patch against? Yes, I have posted it to the patch

Re: Fix for hrSWRunPerfCPU/Mem

2012-01-26 Thread Vincent Bernat
patch: https://sourceforge.net/tracker/index.php?func=detailaid=3479740group_id=12694atid=312694 -- Vincent Bernat ☯ http://vincent.bernat.im Replace repetitive expressions by calls to a common function. - The Elements of Programming Style (Kernighan Plauger

snmp_async_send blocks during snmpv3 probe

2012-03-03 Thread Vincent Bernat
is that if we want to fix this, we need to change the semantics for the callbacks. Is it OK to change the first callback to an async one? I don't know if the semantics of the second one needs any adaptation. -- Vincent Bernat ☯ http://vincent.bernat.im printk(HPFS: G... Kernel memory

Re: snmp_async_send blocks during snmpv3 probe

2012-03-13 Thread Vincent Bernat
simpler with NetSNMP? The bug report from Robert Story tells that the bug should be fixed by queueing the original PDU. Maybe there is a simpler way of doing this than what I am currently doing? -- Vincent Bernat ☯ http://vincent.bernat.im /* * Should be panic but... (Why are BSD

Re: pass_persist agent doesn't work with snmpwalk (probable noob question)

2012-03-16 Thread Vincent Bernat
.1.3.6.1.4.1.59.1.5.3.1.1.2 = STRING: 91 Observe that it gets back only one reply, which is unexpected. At least to me. Use: snmpwalk -On -v 2c -c copan psmdev1 1.3.6.1.4.1.59.1.5.3.1.1 -- Vincent Bernat ☯ http://vincent.bernat.im printk(Penguin %d is stuck in the bottle.\n, i); 2.0.38 /usr/src/linux

Re: pass_persist agent doesn't work with snmpwalk (probable noob question)

2012-03-17 Thread Vincent Bernat
agetnext on 1.3.6.1.4.1.59.1.5.3.1.1.2 and get 1.3.6.1.4.1.59.1.5.3.1.1.3 but returns nothing because it is not included in the subtree rooted at 1.3.6.1.4.1.59.1.5.3.1.1.2. -- Vincent Bernat ☯ http://vincent.bernat.im /* Nobody will ever see this message :-) */ panic(Cannot

Re: pass_persist agent doesn't work with snmpwalk (probable noob question)

2012-03-19 Thread Vincent Bernat
Le 19.03.2012 00:12, Charlie Martin a écrit : Okay, one more case I want to be sure of. Let's assume that 1.3.6.1.4.1.59.1.5.3.1.1.10 is the numerically (as opposed to lexicographically) highest OID in the 1.3.6.1.4.1.59.1.5.3.1.1 subgroup. How should the agent respond to $ snmpwalk

netlink

2012-07-01 Thread Vincent Bernat
Hi! NetSNMP contains several use of a netlink socket to gather information from the kernel for Linux: agent/mibgroup/etherlike-mib/data_access/dot3stats_linux.c agent/mibgroup/if-mib/data_access/interface_linux.c agent/mibgroup/ip-mib/data_access/arp_netlink.c

Re: netlink

2012-07-02 Thread Vincent Bernat
❦ 2 juillet 2012 09:57 CEST, Bart Van Assche bvanass...@acm.org : NetSNMP contains several use of a netlink socket to gather information from the kernel for Linux: agent/mibgroup/etherlike-mib/data_access/dot3stats_linux.c agent/mibgroup/if-mib/data_access/interface_linux.c

[PATCH 3/3] if-mib: don't parse netlink message just to trigger a cache reload

2012-07-21 Thread Vincent Bernat
We need to trigger a cache reload in almost all legit cases. Therefore, we can just ignore the content of the netlink message. As long as we have received one, we trigger a cache refresh. --- .../mibgroup/if-mib/data_access/interface_linux.c | 42 ++-- 1 file changed, 3

use netlink to trigger linkUp/linkDown notifications

2012-07-21 Thread Vincent Bernat
Hi! This is a followup to patch #1759178. I am unable to attach a new patch to an existing patch. Therefore, I send a proposition here. https://sourceforge.net/tracker/?func=detailatid=312694aid=1759178group_id=12694# As stated in a comment (by Wes Hardaker): I haven't finished reviewing

[PATCH 1/3] if-mib: move netlink listening code to a separate function

2012-07-21 Thread Vincent Bernat
--- .../mibgroup/if-mib/data_access/interface_linux.c | 55 +++- 1 file changed, 31 insertions(+), 24 deletions(-) diff --git a/agent/mibgroup/if-mib/data_access/interface_linux.c b/agent/mibgroup/if-mib/data_access/interface_linux.c index e291b9f..d4ac61b 100644 ---

Re: IP-MIB: ipSystemStatsTable working but ipIfStatsTable not working

2012-07-25 Thread Vincent Bernat
❦ 25 juillet 2012 13:57 CEST, Madhu Sudhana Rao madhu...@gmail.com : I am using net-snmp 5.6.1 version on my Linux system. I want to print ipSystemStatsTable ipIfStatsTable of IP-MIB. I can see the below line in .h file in agent/mibgroup path config_require(ip-mib ip-forward-mib tcp-mib

Multicast transports

2012-08-03 Thread Vincent Bernat
Hi! NetSNMP does not support multicast addresses. A valid use could be for snmptrapd to listen to a multicast address. I have a patch for this: https://github.com/vincentbernat/net-snmp/compare/feature/snmptrapd-multicast The patch is quite ugly since it modifies snmptrapd while it should