Skip to content

Taobao System Activity Reporter

kongjian edited this page Jan 16, 2013 · 1 revision

tsar is Taobao monitor tool for collect system activity status, and report it. It have a plugin system that is easy for collect plugin development. and may setup different output target such as local logfile and remote nagios host.

NAME
tsar - Taobao System Activity Reporter
SYNOPSIS

tsar [options] --tsar main function

tsardevel [modname] --develop new mod

DESCRIPTION

tsar is a monitor tool for collect system activity status and apps.

tsar reads and logs messages to the log files,It support different output target such as local console or remote db/nagios host.It have a plugin system that is easy for collect plugin development.

OPTIONS
-check , -check
display last record for alert,it is just used for taobao inner alert
-C , --check
display last record for alert.example:tsar --check / tsar --check --cpu --io
-c , --cron
run in cron mode, output data to file,default is /var/log/tsar.data
-l ,--live
running print live mode which module will print
-i , --interval
specify intervals numbers, if not with --live,it is in minutes;if with --live, it is in seconds
-m , --merge
merge multiply item to one
-L , --list
list enabled modules
-n , --ndays
show the value for the past days (default: 1)
-d , --date
special one day to display,support formate YYYYMMDD or int for somedays ago
-f , --file
special tsar.data for tsar to read
-n , --ndays
show the value for the past days (default: 1)
-d , --date
special one day to display,support formate YYYYMMDD or int for somedays ago
-f , --file
special tsar.data for tsar to read
-n , --ndays
show the value for the past days (default: 1)
-h , --help
print help info
DIAGNOSTICS
It is expected that tsar will run as root
FILES
/etc/tsar/tsar.conf
Configuration file for tsar.output mod list for differnt type
/etc/tsar/cron.d/*.conf
extrat config file, usually tsar devel modules config
BUGS
If you find any, please send email to the kongjian@taobao.com
Clone this wiki locally