|
|
| Author |
Message |
dirty_al Helper
Joined: 19 Dec 2003 Posts: 19
|
Posted: Tue May 18, 2004 7:37 pm Post subject: Threads. |
|
|
| Although I am specifying 15 threads, it only runs one thread. Any ideas? |
|
| Back to top |
|
 |
balleman Site Admin
Joined: 20 Jan 2003 Posts: 282
|
Posted: Tue May 18, 2004 10:57 pm Post subject: |
|
|
| Do you only have one device? NetMRG starts a thread for each device, limiting the number of concurrent threads to the number specified in the configuration. |
|
| Back to top |
|
 |
silfreed Site Admin
Joined: 19 Jan 2003 Posts: 394 Location: Shippensburg, PA, USA
|
Posted: Wed May 19, 2004 3:35 pm Post subject: |
|
|
If you have more than one device, and you have a newer linux distro (like Redhat 9, or Fedora), `ps` hides threads from you. You'll need to use the 'm' flag to show them, like this:
| Code: |
$ps faxm
1677 ? S 0:01 crond
26635 ? S 0:00 \_ CROND
26636 ? S 0:00 \_ /bin/sh /usr/bin/netmrg_cron.sh
26638 ? R 0:00 \_ /usr/bin/netmrg-gatherer
26639 ? S 0:00 \_ sh -c /usr/bin/rrdtool - >/dev/null
26640 ? S 0:00 | \_ /usr/bin/rrdtool -
26643 ? S 0:00 \_ /usr/bin/netmrg-gatherer
26646 ? S 0:00 \_ /usr/bin/netmrg-gatherer
26686 ? S 0:00 \_ /usr/bin/netmrg-gatherer
26697 ? S 0:00 \_ /usr/bin/netmrg-gatherer
26704 ? S 0:00 \_ /usr/bin/netmrg-gatherer
26709 ? S 0:00 \_ /usr/bin/netmrg-gatherer
26719 ? S 0:00 \_ /usr/bin/netmrg-gatherer
26727 ? S 0:00 \_ /usr/bin/netmrg-gatherer
26729 ? S 0:00 \_ /usr/bin/netmrg-gatherer
26731 ? S 0:00 \_ /usr/bin/netmrg-gatherer |
|
|
| Back to top |
|
 |
dirty_al Helper
Joined: 19 Dec 2003 Posts: 19
|
Posted: Wed May 19, 2004 7:47 pm Post subject: Threads. |
|
|
Yes, I have only one device that has 47 sub-devices. So that's why I get just one thread. Each subdeivces has 6 SNMP gets and it is taking 30 seconds to get it done, for only 20 subdevices.
It is a storage that has 47 LUNs and I can't colletct using NetMrg snmp module, because SNMP uptime for this device returns 0. So I have a script colleting the data.
Cant I have multiuple threads by sub-devices?
Thanks. |
|
| Back to top |
|
 |
silfreed Site Admin
Joined: 19 Jan 2003 Posts: 394 Location: Shippensburg, PA, USA
|
Posted: Wed May 19, 2004 8:30 pm Post subject: Re: Threads. |
|
|
| dirty_al wrote: |
| Cant I have multiuple threads by sub-devices? |
Currently, no. That would be threads-of-threads for us, and I'm not sure how much we like that at this point.
| dirty_al wrote: |
| because SNMP uptime for this device returns 0. |
Don't mean to hijack your thread, but we'd really like to get to the bottom of this. Can you give us any information about your target host (OS, kernel version, net-snmp version, distribution + version, whether any of these are compiled from source). With all our boxes we update, we haven't been able to reproduce this bug yet.
-Doug |
|
| Back to top |
|
 |
dirty_al Helper
Joined: 19 Dec 2003 Posts: 19
|
Posted: Thu May 20, 2004 9:00 pm Post subject: Threads. |
|
|
The system where netmrg is installed is running Net-SNMP 5.1, kernel 2.4.24 and id a RedHat 7.2.
The device that is returning SNMP uptime 0 is a HITACHI-DF500F storage and it returns so:
SNMPv2-MIB::sysDescr.0 = STRING: HITACHI DF500F Ver 055G/M
SNMPv2-MIB::sysObjectID.0 = OID: SNMPv2-SMI::enterprises.116.3.11.1.2
SNMPv2-MIB::sysUpTime.0 = Timeticks: (0) 0:00:00.00
It's uptime is actually always zero, but it returns 0. Cant netmrg check if it's responding negleting the fact that the uptime is zero?
[]s. |
|
| Back to top |
|
 |
silfreed Site Admin
Joined: 19 Jan 2003 Posts: 394 Location: Shippensburg, PA, USA
|
Posted: Thu May 20, 2004 9:18 pm Post subject: |
|
|
I think we're going to add a checkbox to ignore the snmp uptime value for a device. You can monitor the progress in bug#202.
Of course, we just had a release today, so you'll have to get this feature out of CVS when it goes in (snapshot tarballs are available).
-Doug |
|
| Back to top |
|
 |
|