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

    你可能感兴趣的文章
    Node JS: < 一> 初识Node JS
    查看>>
    Node Sass does not yet support your current environment: Windows 64-bit with Unsupported runtime(72)
    查看>>
    Node-RED中使用JSON数据建立web网站
    查看>>
    Node-RED中使用json节点解析JSON数据
    查看>>
    Node-RED中使用node-random节点来实现随机数在折线图中显示
    查看>>
    Node-RED中使用node-red-browser-utils节点实现选择Windows操作系统中的文件并实现图片预览
    查看>>
    Node-RED中使用node-red-contrib-image-output节点实现图片预览
    查看>>
    Node-RED中使用node-red-node-ui-iframe节点实现内嵌iframe访问其他网站的效果
    查看>>
    Node-RED中使用Notification元件显示警告讯息框(温度过高提示)
    查看>>
    Node-RED中实现HTML表单提交和获取提交的内容
    查看>>
    Node-RED中建立Websocket客户端连接
    查看>>
    Node-RED中通过node-red-ui-webcam节点实现访问摄像头并截取照片预览
    查看>>
    node-request模块
    查看>>
    Node.js 8 中的 util.promisify的详解
    查看>>
    Node.js 函数是什么样的?
    查看>>
    Node.js 历史
    查看>>
    Node.js 在个推的微服务实践:基于容器的一站式命令行工具链
    查看>>
    Node.js 实现类似于.php,.jsp的服务器页面技术,自动路由
    查看>>
    Node.js 异步模式浅析
    查看>>
    node.js 怎么新建一个站点端口
    查看>>