bb-sar.sh seems to be truncating data on some boxes

Nicolas Dorfsman <[email protected]> Fri, 13 Jan 2006 11:11:11 +0100
Newsgroups gmane.network.bb4.devel,gmane.network.bb4.general
Message-ID <[email protected]>
	Hi all,


	Found the issue with bb-sar.sh (thanks to truss).

	src/bb.h :
#define MAXLINE         10240                   /* Static buffer size =20
for incoming BB message */

	moved to
#define MAXLINE         30720                   /* Static buffer size =20
for incoming BB message */


	recompiled and it works.

	2k should be ok for many boxes. But I have some with many, many SAN =20
disks.

	Nicolas


-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=
=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-
Nicolas Dorfsman		T=E9l: 06.7981.4486
Expert UNIX				Fax: 06.7981.4485

mailto:[email protected]
http://www.unikservice.com
-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=
=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-
UNIKService est membre
du groupement Opale Group (www.opalegroup.com)




David W Murphy wrote :

> Definately something wrong with the disk display.
>
> I would hazard a guess to say that maybe it's a HMTL issue of maybe =20
> a quoting issue in the data string. I will delve a little deeper =20
> and see if I can get the disk data saved off to a file so that I =20
> can see it to see if there is any strange data in it.
>
> Cheers
>
> Dave
>

>> From: [email protected] [mailto:[email protected]] On Behalf Of =20
>> FIGARO Nicolas
>> Sent: 22 June 2005 13:34
>> To: [email protected]
>> Subject: RE : RE : {bb} bb-sar.sh seems to be truncating data on =20
>> some boxes
>>
>>
>> could you please try to move the sard -d solaris section in the bb-=20
>> sar-sa.sh or bb-sar-up.sh script ?
>> this will check if the problem comes from the sar -d section.
>> (but if it's the case, i can't help you further as I don't have =20
>> any solaris box here).
>>
>> N F
>>
>>> -----Message d'origine-----
>>> De : [email protected] [mailto:[email protected]] De la part de =20
>>> David W Murphy
>>> Envoy=E9 : mercredi 22 juin 2005 13:58
>>> =C0 : [email protected]
>>> Objet : RE: RE : {bb} bb-sar.sh seems to be truncating data on =20
>>> some boxes
>>>
>>> Tried that - didn't make a difference.
>>>
>>> Here's what the page looks like. on all the servers. Obviously =20
>>> the figures are not the same, not the names :-)
>>>
>>> isws8 - sar
>>>
>>>
>>> green Wed Jun 22 11:47:03 GMT 2005 - sar output
>>>
>>>
>>>
>>>         [-u] CPU Utilization
>>>
>>> SunOS isws8 5.8 Generic_117350-16 sun4u    06/22/05
>>>
>>> 11:42:00    %usr    %sys    %wio   %idle
>>> 11:47:00      96       4       0       0
>>>
>>>
>>>
>>>         [-b] Buffer Activity
>>>
>>> SunOS isws8 5.8 Generic_117350-16 sun4u    06/22/05
>>>
>>> 11:42:00 bread/s lread/s %rcache bwrit/s lwrit/s %wcache pread/s =20
>>> pwrit/s
>>> 11:47:00       0      75     100       1       5      85       =20
>>> 1       0
>>>
>>>
>>>
>>>         [-d] Disk Activity<
>>>
>>> Note the < at the end of the Disk Activity line - not sure if =20
>>> it's significant.
>>>
>>> Cheers
>>>
>>> Dave
>>>
>>>
>>>> From: [email protected] [mailto:[email protected]] On Behalf Of =20
>>>> FIGARO Nicolas
>>>> Sent: 22 June 2005 10:59
>>>> To: [email protected]
>>>> Subject: RE : {bb} bb-sar.sh seems to be truncating data on some =20
>>>> boxes
>>>>
>>>>
>>>> If I remember well there is a max size set to limit bb messages.
>>>> check for a MAXLINE entry in bbdef.sh.
>>>>
>>>> try to modify the value and see if it runs well afterwards.
>>>>
>>>> check also the definition in bbd/src/bb.h.
>>>> perhaps you'll have to increase the value in bb.h and recompile =20
>>>> to have the whole sar messages.
>>>>
>>>> N  F
>>>>
>>>>
>>>>
>>>>> -----Message d'origine-----
>>>>> De : [email protected] [mailto:[email protected]] De la part de =20
>>>>> David W Murphy
>>>>> Envoy=E9 : mercredi 22 juin 2005 11:26
>>>>> =C0 : [email protected]
>>>>> Objet : {bb} bb-sar.sh seems to be truncating data on some boxes
>>>>>
>>>>> Guys,
>>>>>
>>>>> I am using bb-sar.sh to pull back sar data in larrd. I am =20
>>>>> having trouble on certain boxes (mostly servers connected to a =20
>>>>> SAN or with a lot of disks attached) where the sar output stops =20
>>>>> just after the url for Disk Activity.
>>>>>
>>>>> Any Ideas ?
>>>>>
>>>>> I'm not sure that is a straight truncation issue as there is =20
>>>>> not a lot of data on screen and I don't get the Data Truncated =20
>>>>> message.
>>>>>
>>>>> Any thoughts would be appreciated.
>>>>>
>>>>> Many Thanks
>>>>>
>>>>>






--
=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D=
-=3D-=3D-=3D-=3D-=3D=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D
To unsubscribe from this list send e-mail to mailto:[email protected]
with unsubscribe bbd in the BODY of the message.