博客
关于我
tsar命令
阅读量:209 次
发布时间:2019-02-28

本文共 1744 字,大约阅读时间需要 5 分钟。

Tsar????????

Tsar ?????????????????????????????????????????????Nagios??????????????????????????????????

????

Tsar??????????????

  • ?????src???????????????????????????????????
  • ?????modules???????????????????????
    ?????????????????????

??????Tsar????????????????crond??????????????????crond???????crontab???

????

GitHub????Tsar???????????

  • ??Git?????
    git clone git://github.com/kongjian/tsar.gitcd tsarmake install
  • ?????zip???
    wget -O tsar.zip https://github.com/alibaba/tsar/archive/master.zip --no-check-certificateunzip tsar.zipcd tsarmake install
  • ???????????????????

    • /etc/tsar/tsar.conf???????
    • /etc/cron.d/tsar?crond??????
    • /etc/logrotate.d/tsar?????????
    • /usr/local/tsar/modules??????????

    ?????????tsar -l?????????

    ????

    Tsar?????????????????????????????????

    • ?????????tsar -l
      -?????tsar modname
      -???????tsar -l --live
      -???????tsar -i interval
      -?????????tsar --spec
      -???????tsar -D
      -??????tsar --merge
      -???????tsar --io
      -???????tsar -h

    ????

    ???Nagios

    Tsar????????Nagios?????????file,nagios??Nagios?????????????

    • ??Nagios????????
      server_addr=your_nagios_server.comserver_port=5667cycle_time=300
    • ??NSCA????
      send_nsca_cmd=/usr/bin/send_nscasend_nsca_conf=/path/to/send_nsca.conf
    • ??????
      threshold servicedesc;w-max;w-min;c-max;c-min;...

    ???MySQL

    ?????????MySQL???Tsar????????????

    output_interface file,dboutput_db_mod mod_cpu,mod_mem,mod_traffic,mod_load,mod_tcp,mod_udp,mod_iooutput_db_addr your_mysql_address:port

    Tsar2db????GitHub???????????????

    ????

    Tsar??????C?Lua??????????

    C????

  • ???????
    make tsardevel
  • ??????
    tsardevel testbuild
  • ???????
    • ??mod_test.c?????????
  • ?????
    make installtsar --test
  • Lua????

  • ???????
    make tsarluadevel
  • ??????
    tsarluadevel testbuild
  • ???????
    • ??mod_lua_test.lua?????????
  • ?????
    make installtsar --lua_test
  • ????

    转载地址:http://ncti.baihongyu.com/

    你可能感兴趣的文章
    notepad如何自动对齐_notepad++怎么自动排版
    查看>>
    Notes on Paul Irish's "Things I learned from the jQuery source" casts
    查看>>
    Notification 使用详解(很全
    查看>>
    NotImplementedError: Cannot copy out of meta tensor; no data! Please use torch.nn.Module.to_empty()
    查看>>
    NotImplementedError: Could not run torchvision::nms
    查看>>
    nova基于ubs机制扩展scheduler-filter
    查看>>
    Now trying to drop the old temporary tablespace, the session hangs.
    查看>>
    nowcoder—Beauty of Trees
    查看>>
    np.arange()和np.linspace()绘制logistic回归图像时得到不同的结果?
    查看>>
    np.power的使用
    查看>>
    NPM 2FA双重认证的设置方法
    查看>>
    npm build报错Cannot find module ‘webpack/lib/rules/BasicEffectRulePlugin‘解决方法
    查看>>
    npm build报错Cannot find module ‘webpack‘解决方法
    查看>>
    npm ERR! ERESOLVE could not resolve报错
    查看>>
    npm ERR! fatal: unable to connect to github.com:
    查看>>
    npm ERR! Unexpected end of JSON input while parsing near '...on":"0.10.3","direc to'
    查看>>
    npm ERR! Unexpected end of JSON input while parsing near ‘...“:“^1.2.0“,“vue-html-‘ npm ERR! A comp
    查看>>
    npm error Missing script: “server“npm errornpm error Did you mean this?npm error npm run serve
    查看>>
    npm error MSB3428: 未能加载 Visual C++ 组件“VCBuild.exe”。要解决此问题,1) 安装
    查看>>
    npm install CERT_HAS_EXPIRED解决方法
    查看>>