Bug in ramon?

Steve McInerney spm at healthinsite.gov.au
Sun Sep 7 18:20:21 EDT 2003


FWIW I wrote an awk script to essentially do this for you:
run it over the output and it joins the common protocols back together. 
Same concept as Carters "perl script".

# ramon-post.awk
{
     if ( $5$6 in serv ) {
         split($0, new)
         split(serv[$5$6], old)
         for ( i = 7; i <= 10; i++) old[i] = old[i] + new[i]
         serv[$5$6] = sprintf("%s %s %s %s %4s 
%-17s%-9d%-10d%-13.0f%-15.0f", old[1], old[2], old[3], old[4], old[5], 
old[6], old[7], old[8], old[9], old[10])
     } else {
         serv[$5$6] = $0
     }
}

END {
     for ( i in serv )
         print serv[i]
}


I typically run it thusly:
ramon -M svc > argus-aug.services.txt

awk -f ramon-post.awk argus-aug.services.txt | cut -f 5- -d ' ' |
	sort -rn -k 6

Which then resorts the output nicely, and removes unwanted info (the 
cut). YMMV.


- Steve

Jesper S. Jensen wrote:
> Russell Fulton wrote:
> 
>>> First of all, I hope this is the right place to ask, if not please 
>>> let me know where. :-)
>>
>>
>> Yup this is the right place :)
> 
> 
> Hehe good, I hoped I was right, but wasn't 100% sure.
> 
>>> 32bit barrier
> 
>  >
> 
>> This is a feature.
> 
> 
> Good one. :-)
> 
> Carter may have plans to extent the counters to 64 bits.
> 
> Ok sounds good, any one know when we might expect this to happen?
> 
> 




More information about the argus mailing list