Re: bsnmpd always died on HDD detach

2012-09-17 Thread Mikolaj Golub
On Sun, Sep 16, 2012 at 07:07:20PM +0200, Miroslav Lachman wrote: I am glad to read that you found the bug! The fix (patch) seems trivial - will it be commited / MFCed? :) Andrey told me that he was not sure when he would be able to commit his work, so I have just committed my fix. I am going

Re: bsnmpd always died on HDD detach

2012-09-16 Thread Andrey V. Elsukov
On 15.09.2012 16:50, Mikolaj Golub wrote: I am attaching the patch that fixes the issue for me. I was wandering why the issue was not observed after md device removal, as disk_OS_get_MD_disks() did the same things. It has turned out that hostres just does not see md devices, so this function

Re: bsnmpd always died on HDD detach

2012-09-16 Thread Miroslav Lachman
Mikolaj Golub wrote: On Sun, Sep 09, 2012 at 11:56:55PM +0200, Miroslav Lachman wrote: I am running bsnmpd with basic snmpd.config (only community and location changed). When there is a problem with HDD and disk disapeared from ATA channel (eg.: disc physically removed) the bsnmpd always dumps

Re: bsnmpd always died on HDD detach

2012-09-16 Thread Mikolaj Golub
On Sun, Sep 16, 2012 at 05:56:22PM +0400, Andrey V. Elsukov wrote: On 15.09.2012 16:50, Mikolaj Golub wrote: I am attaching the patch that fixes the issue for me. I was wandering why the issue was not observed after md device removal, as disk_OS_get_MD_disks() did the same things. It has

Re: bsnmpd always died on HDD detach

2012-09-15 Thread Mikolaj Golub
On Sun, Sep 09, 2012 at 11:56:55PM +0200, Miroslav Lachman wrote: I am running bsnmpd with basic snmpd.config (only community and location changed). When there is a problem with HDD and disk disapeared from ATA channel (eg.: disc physically removed) the bsnmpd always dumps core: kernel:

Re: bsnmpd always died on HDD detach

2012-09-13 Thread Mikolaj Golub
On Wed, Sep 12, 2012 at 10:39:12AM +0200, Miroslav Lachman wrote: (gdb) bt #0 0x000801046cba in disk_query_disk (entry=0x0) at hostres_diskstorage_tbl.c:241 #1 0x000801dd6a00 in ?? () #2 0x000801dd6600 in ?? () #3 0x in ?? () #4 0x000801048230 in

Re: bsnmpd always died on HDD detach

2012-09-12 Thread Miroslav Lachman
Mikolaj Golub wrote: On Tue, Sep 11, 2012 at 10:16:57PM +0200, Miroslav Lachman wrote: (gdb) bt #0 0x000801046cba in refresh_disk_storage_tbl () from /usr/lib/snmp_hostres.so #1 0x0008010478bd in refresh_device_tbl () from /usr/lib/snmp_hostres.so #2 0x000801047be6 in

Re: bsnmpd always died on HDD detach

2012-09-11 Thread Miroslav Lachman
Mikolaj Golub wrote: On Mon, Sep 10, 2012 at 04:46:15PM +0200, Miroslav Lachman wrote: Mikolaj Golub wrote: On Sun, Sep 09, 2012 at 11:56:55PM +0200, Miroslav Lachman wrote: I am running bsnmpd with basic snmpd.config (only community and location changed). When there is a problem with HDD

Re: bsnmpd always died on HDD detach

2012-09-11 Thread Mikolaj Golub
On Tue, Sep 11, 2012 at 10:16:57PM +0200, Miroslav Lachman wrote: (gdb) bt #0 0x000801046cba in refresh_disk_storage_tbl () from /usr/lib/snmp_hostres.so #1 0x0008010478bd in refresh_device_tbl () from /usr/lib/snmp_hostres.so #2 0x000801047be6 in start_device_tbl () from

Re: bsnmpd always died on HDD detach

2012-09-10 Thread Miroslav Lachman
Mikolaj Golub wrote: On Sun, Sep 09, 2012 at 11:56:55PM +0200, Miroslav Lachman wrote: I am running bsnmpd with basic snmpd.config (only community and location changed). When there is a problem with HDD and disk disapeared from ATA channel (eg.: disc physically removed) the bsnmpd always dumps

Re: bsnmpd always died on HDD detach

2012-09-10 Thread Mikolaj Golub
On Mon, Sep 10, 2012 at 04:46:15PM +0200, Miroslav Lachman wrote: Mikolaj Golub wrote: On Sun, Sep 09, 2012 at 11:56:55PM +0200, Miroslav Lachman wrote: I am running bsnmpd with basic snmpd.config (only community and location changed). When there is a problem with HDD and disk

bsnmpd always died on HDD detach

2012-09-09 Thread Miroslav Lachman
I am running bsnmpd with basic snmpd.config (only community and location changed). When there is a problem with HDD and disk disapeared from ATA channel (eg.: disc physically removed) the bsnmpd always dumps core: kernel: pid 1188 (bsnmpd), uid 0: exited on signal 11 (core dumped) I see

Re: bsnmpd always died on HDD detach

2012-09-09 Thread Mikolaj Golub
On Sun, Sep 09, 2012 at 11:56:55PM +0200, Miroslav Lachman wrote: I am running bsnmpd with basic snmpd.config (only community and location changed). When there is a problem with HDD and disk disapeared from ATA channel (eg.: disc physically removed) the bsnmpd always dumps core: kernel: