NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: snmpd: sysctl vm.bufmem failed (errno 12)



On 2 January 2013 23:21, Jean-Yves Moulin <jym%baaz.fr@localhost> wrote:
Hi,


> Jan 2 19:31:00 dns2 snmpd[136]: sysctl vm.bufmem failed (errno 12)
> Anyone noticed something similar?


Yes, same problem here. I already sent a patch to pkgsrc maintainer but no news.

You have to change one line in  agent/mibgroup/hardware/memory/memory_netbsd.c, line 42:

replace:
   unsigned int    bufspace;
by:
   unsigned long int    bufspace;

And rebuild. This was needed for all my NetBSD-6.0/amd64 (even Xen domU). I have no other hardware to test this change..

Which version of net-snmp do you use? I'm using the one from pkgsrc 2012Q3 (net-snmp-5.6.1.1) and my memory_netbsd.c file is a bit different I think. There is no bufspace variable in it. The bufspace variable is present in memory_freebsd.c

Regards,
--
Bartek Krawczyk
network and system administrator


Home | Main Index | Thread Index | Old Index