博客
关于我
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/

    你可能感兴趣的文章
    NuGet Gallery 开源项目快速入门指南
    查看>>
    NuGet(微软.NET开发平台的软件包管理工具)在VisualStudio中的安装的使用
    查看>>
    nuget.org 无法加载源 https://api.nuget.org/v3/index.json 的服务索引
    查看>>
    Nuget~管理自己的包包
    查看>>
    NuGet学习笔记001---了解使用NuGet给net快速获取引用
    查看>>
    nullnullHuge Pages
    查看>>
    NullPointerException Cannot invoke setSkipOutputConversion(boolean) because functionToInvoke is null
    查看>>
    null可以转换成任意非基本类型(int/short/long/float/boolean/byte/double/char以外)
    查看>>
    Number Sequence(kmp算法)
    查看>>
    Numix Core 开源项目教程
    查看>>
    numpy
    查看>>
    NumPy 库详细介绍-ChatGPT4o作答
    查看>>
    NumPy 或 Pandas:将数组类型保持为整数,同时具有 NaN 值
    查看>>
    numpy 或 scipy 有哪些可能的计算可以返回 NaN?
    查看>>
    numpy 数组 dtype 在 Windows 10 64 位机器中默认为 int32
    查看>>
    numpy 数组与矩阵的乘法理解
    查看>>
    NumPy 数组拼接方法-ChatGPT4o作答
    查看>>
    numpy 用法
    查看>>
    Numpy 科学计算库详解
    查看>>
    Numpy.fft.fft和numpy.fft.fftfreq有什么不同
    查看>>