Publish vsar release package.
Provide a design plan to make sar's output visualized. Currently, this software reads sar's output through a pipe, and writes output data into influxdb for visualization.
Run sh start.sh -v
Copyright (c) 2024 Liu Hua Jun
All rights reserved.
Do not use it for commercial purposes.
Run sh start.sh -h
Run "sh start.sh -u [influxdb write url] -H [host ip or name]", it will write sar's output into influxdb in realtime.
First, you must have a command to generate sar's output. Then use -s to specify this command. For example:
- You can run "sar -A 1 -l ./sar.log" for a while and generate offline file sar.log.
- Run "sh start.sh -u [influxdb write url] -H [host ip or name] -s 'sar -A 1 -f ./sar.log'", it will write sar's output of the offline file into influxdb.
- Enter deploy folder.
- Add your machines' ip, user, password, deploy_path, influxdb_url, batch_count into hosts file.
- sh deploy.sh
- Enter deploy folder.
- sh start.sh
- Enter deploy folder.
- sh stop.sh