Permalink
Browse files

add .gitignore and some comment

  • Loading branch information...
1 parent 71e58fb commit fb29d3529c363e02b748b56d414a0784ffb987ec @kongjian kongjian committed Apr 26, 2013
Showing with 19 additions and 16 deletions.
  1. +4 −0 .gitignore
  2. +1 −1 README.md
  3. +14 −15 src/tsar.c
View
@@ -0,0 +1,4 @@
+*.o
+*.so
+tags
+src/tsar
View
@@ -1,6 +1,6 @@
Introduction
------------
-Tsar(Taobao System Activity Reporter) is an system and application monitor tools, such as system info(cpu, load, io), or apps info(nginx,swift). The collect data can be stored at local disk, you can also send the data to nagios.
+Tsar(Taobao System Activity Reporter) is an system and application monitor tools, such as system info(cpu, load, io), or apps info(nginx, haproxy). The collect data can be stored at local disk, you can also send the data to nagios.
It is very convenient to add custom modules for tsar, you just need to write collect function and report function as requested.
Installation
View
@@ -35,23 +35,22 @@ void usage()
"Options:\n"
#ifdef OLDTSAR
/*used for check alert*/
- " -check display last record for alert\n"
- //" -current display last record for alert\n"
+ " -check display last record for alert\n"
/*end*/
#endif
- " --check/-C display last record for alert.example:tsar --check / tsar --check --cpu --io\n"
- " --cron/-c run in cron mode, output data to file\n"
- " --interval/-i specify intervals numbers, in minutes if with --live, it is in seconds\n"
- " --list/-L list enabled modules\n"
- " --live/-l running print live mode, which module will print\n"
- " --file/-f specify a filepath as input\n"
- " --ndays/-n show the value for the past days (default: 1)\n"
- " --date/-d show the value for the specify day(n or YYYYMMDD)\n"
- " --merge/-m merge multiply item to one\n"
- " --detail/-D \tdo not conver data to K/M/G\n"
- " --spec/-s show spec field data, tsar --cpu -s sys,util\n"
- " --item/-I show spec item data, tsar --io -I sda"
- " --help/-h help\n");
+ " --check/-C display last record for alert.example:tsar --check / tsar --check --cpu --io\n"
+ " --cron/-c run in cron mode, output data to file\n"
+ " --interval/-i specify intervals numbers, in minutes if with --live, it is in seconds\n"
+ " --list/-L list enabled modules\n"
+ " --live/-l running print live mode, which module will print\n"
+ " --file/-f specify a filepath as input\n"
+ " --ndays/-n show the value for the past days (default: 1)\n"
+ " --date/-d show the value for the specify day(n or YYYYMMDD)\n"
+ " --merge/-m merge multiply item to one\n"
+ " --detail/-D do not conver data to K/M/G\n"
+ " --spec/-s show spec field data, tsar --cpu -s sys,util\n"
+ " --item/-I show spec item data, tsar --io -I sda\n"
+ " --help/-h help\n");
fprintf(stderr,
"Modules Enabled:\n"

0 comments on commit fb29d35

Please sign in to comment.