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

    你可能感兴趣的文章
    python中base64编码与解码
    查看>>
    python中break怎么用_详解Python中break语句的用法
    查看>>
    python中del函数的垃圾回收
    查看>>
    Python中DrissionPage的详细解析与实战
    查看>>
    python中enumerate、变量类型转换
    查看>>
    python中execute是啥_python – 为什么“c.execute(…)”打破循环?
    查看>>
    python中exit和break区别_Python中exit()和sys.exit()之间的区别
    查看>>
    python中h5的用法
    查看>>
    python中http协议编程_HTTP编程
    查看>>
    python中if的效率_python中关于if-else使用性能的一点感悟
    查看>>
    python中import os_Python:相对导入与绝对导入(import)、os.path、__file__
    查看>>
    python中is和==操作符
    查看>>
    python中range()函数的返回值是多少?
    查看>>
    Python中range对象的使用以及打印九九乘法表
    查看>>
    Python中reshape函数参数-1的意思?
    查看>>
    Python中set.discard和set.remove方法之间的运行时差异?
    查看>>
    Python接口自动化测试企业级实战
    查看>>
    python中tkinter中value_输入字段中的python Tkinter get()值
    查看>>
    Python中wx.FlexGridSizer
    查看>>
    Python中xPath技术和BeautifulSoup的使用
    查看>>