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

    你可能感兴趣的文章
    Objective-C实现字符串boyer moore search博耶摩尔搜索算法(附完整源码)
    查看>>
    Objective-C实现字符串IP地址转DWORD地址(附完整源码)
    查看>>
    Objective-C实现字符串jaro winkler算法(附完整源码)
    查看>>
    Objective-C实现字符串manacher马拉车算法(附完整源码)
    查看>>
    Objective-C实现字符串wildcard pattern matching通配符模式匹配算法(附完整源码)
    查看>>
    Objective-C实现字符串word patterns单词模式算法(附完整源码)
    查看>>
    Objective-C实现字符串Z 函数或 Z 算法(附完整源码)
    查看>>
    Objective-C实现字符串加解密(附完整源码)
    查看>>
    Objective-C实现字符串反转(附完整源码)
    查看>>
    Objective-C实现字符串复制功能(附完整源码)
    查看>>
    Objective-C实现字符串是否回文Palindrome算法 (附完整源码)
    查看>>
    Objective-C实现字符串查找子串(附完整源码)
    查看>>
    Objective-C实现完整的ComplexNumber复数类(附完整源码)
    查看>>
    Objective-C实现实现rabin karp算法(附完整源码)
    查看>>
    Objective-C实现对图像进行色调处理算法(附完整源码)
    查看>>
    Objective-C实现对称矩阵压缩存储(附完整源码)
    查看>>
    Objective-C实现寻找欧拉路径/回路(附完整源码)
    查看>>
    Objective-C实现导弹跟踪算法(附完整源码)
    查看>>
    Objective-C实现将 base64 字符串转换为字节数组算法(附完整源码)
    查看>>
    Objective-C实现将位转换为浮点数bitsToFloat算法(附完整源码)
    查看>>