4 Jul 2007 03:29
problem experienced with ra client: unequal results
<real.melancon <at> videotron.ca>
2007-07-04 01:29:34 GMT
2007-07-04 01:29:34 GMT
Hello List, I use latest argus daemon as well as latest ra* clients. We collect data using argus daemon using: /argus -d -S 60 -F /etc/argus/argus.conf -w /var/log/argus/argus.out -i eth1 Then rotate argus.out every hour (using argusarchive) , which generates files in format: /var/log/argus/archive/YYYY/MM/DD/argus.YYYY.MM.DD.hh.mm.ss.gz This works well. For example to get Top Talkers & listeners, we use: /usr/local/bin/racluster -m matrix -r /var/log/argus/argus.out -w - | /usr/local/bin/rasort -m bytes -w - | /usr/local/bin/ra -nu For specific days, we use (e.g. July 1st, between 15:00 and 7:00): /usr/local/bin/racluster -t 01.15:00-17:00 -m matrix -r /var/log/argus/archive/2007/07/01/* -w - | /usr/local/bin/rasort -m bytes -w - | /usr/local/bin/ra -nu But. Here is the problem.... (sorry for the long introduction) Sometimes, argus ra client just doesn't output any data. e.g. /usr/local/bin/racluster -t 02.15:00-17:00 -m matrix -r /var/log/argus/archive/2007/07/02/* -w - | /usr/local/bin/rasort -m bytes -w - | /usr/local/bin/ra -nu same syntax as before but for a different day. data file size is about same size, but ra doesn't output(Continue reading)
):
line 1223:
if (((retn = write (asock->fd, asock->buf, cnt)) < cnt)) {
if (retn < 0) {
if ((errno == EAGAIN) || (errno == EINTR) ||
((errno == EPIPE) && !(asock->status & ARGUS_WAS_FUNCTIONAL)))
retn = 0;
else {
#ifdef ARGUSDEBUG
ArgusDebug (2, "ArgusWriteSocket: errno %d\n", errno);
#endif
return (retn);
}
}
} else
#ifdef ARGUSDEBUG
ArgusDebug (2, "ArgusWriteSocket: errno %d\n", errno);
#endif
was added above as well as a bunch of the debug levels set to 2 in this
same routine.
Peter Van Epp / Operations and Technical Support
Simon Fraser University, Burnaby, B.C. Canada
RSS Feed