Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sysstat configuration with sadc options as "-S XALL" not able to get network level statistics. #320

Open
sanjitee07 opened this issue Apr 19, 2022 · 2 comments

Comments

@sanjitee07
Copy link

sanjitee07 commented Apr 19, 2022

while configuring sysstat , the below configuration is provided , where we add the sadc options as "-S XALL". But it does'nt give network level statistics which is fetched explicitly with "sar -n DEV" command:

/etc/sysstat$ cat sysstat

HISTORY=7
COMPRESSAFTER=10
SADC_OPTIONS="-S XALL"
SA_DIR=/var/log/sysstat
ZIP="xz"

Any way we can configure to get the network level statistics at sar reports?

@PeterPitterling
Copy link

The report A_NET_DEV should be collected by default
http:https://sebastien.godard.pagesperso-orange.fr/matrix.html

what is displayed in your case if you run

/usr/lib64/sa/sadc 1 10 /tmp/datafile
sar -n ALL -f /tmp/datafile

@sanjitee07
Copy link
Author

sar -n ALL -f

In My case, the command is : /usr/lib/sysstat/sadc 1 10 /tmp/datafile (ubuntu 18.04)
Now able to get the information successfully through the command : sar -n ALL -f /tmp/datafile

05:23:56 AM IFACE rxpck/s txpck/s rxkB/s txkB/s rxcmp/s txcmp/s rxmcst/s %ifutil
05:23:57 AM vethb788fcd 28.00 28.00 2.76 3.27 0.00 0.00 0.00 0.00
05:23:57 AM vethwepl10925 0.00 46.00 0.00 1.89 0.00 0.00 0.00 0.00
05:23:57 AM vethwe-bridge 3690.00 3675.00 4322.98 934.05 0.00 0.00 0.00 0.35
05:23:57 AM veth1f43c21 2.00 2.00 0.16 0.20 0.00 0.00 0.00 0.00
05:23:57 AM vethdb6f70f 1.00 1.00 0.08 0.10 0.00 0.00 0.00 0.00
05:23:57 AM vetha53fa39 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
05:23:57 AM vethwepl9631 131.00 305.00 98.70 38.85 0.00 0.00 0.00 0.01
05:23:57 AM veth5e24cfa 9.00 6.00 1.16 25.23 0.00 0.00 0.00 0.00
05:23:57 AM vethe802aed 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
05:23:57 AM vethwepl7829 10.00 56.00 1.05 2.87 0.00 0.00 0.00 0.00
05:23:57 AM vethwepl368 18.00 58.00 1.20 2.73 0.00 0.00 0.00 0.00
05:23:57 AM vethca428d6 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00

With only sar -f , we could not get the required info. Need to pass the required args for viewing as well . In this case (sar -n ALL -f ).

Thanks for the quick help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants