给 cacti 插件 thold 加上飞信和msn报警功能
正好这段时间要做监控,花了点时间做了这个补丁,所有配置都集成在了界面上了,呵呵,这样部署起来应该能方便不少,并且t...
扫描右侧二维码阅读全文
24
2008/11

给 cacti 插件 thold 加上飞信和msn报警功能

正好这段时间要做监控,花了点时间做了这个补丁,所有配置都集成在了界面上了,呵呵,这样部署起来应该能方便不少,并且thold的报警策略同样可以完全应用在飞信和msn上。
补丁安装步骤:
请先确认安装了
settings-0.5.tar.gz thold-0.3.9.tar.gz 这两个插件,下载网地在 http://www.cactiusers.org/
具体安装设置请在博客里搜索

补丁下载
cacti_thold-039_settings-05_add_fetion_msn
补丁安装

cd /var/www/cacti/plugins patch -p1 < cacti_thold-0.3.9_settings-0.5_add_fetion_msn.path

Last modification:November 26th, 2018 at 04:16 pm
If you think my article is useful to you, please feel free to appreciate

10 comments

  1. WADE

    一定要对应的settings和thold版本吗?

  2. learner

    请看下面的测试信息,我一直没收到短信。楼上的说飞信测试成功,是怎么弄的?谢谢!

    Creating Message Text...
    This message was sent to test the configuration of your Fetion Settings.Your Fetion settings are currently set as follows
    Sending Message...
    Login...*********************************************************************************** WEB Service URL锛?http://localhost:40000/, Please Open this in IE or Firefox. *********************************************************************************** ............Load Buddies List........... Input help/? for help OR quit/exit to exit to system 584269223@[15917899032]>> sms 15917899032 This message was sent to test the configuration of your Fetion Settings.Your Fetion settings are currently set as follows [FromBatch] 584269223@[13917899032]>> *********************************************************************************** SendTo[ 15917899032 ] successfully *********************************************************************************** 584269223@[15917899032]>>

  3. Breed

    请问,我打上您这个补丁后找不到在那里添加msn机器人的地方,只有飞信的,飞信测试成功,msn失败

  4. Cactti

    希望打包提供下载!谢谢。

  5. 3123123

    i made it

  6. yangzhigang

    这在个0.8.7b上可以吗?我用的是cactiEZ,但是没有成功!可以帮我吗?

  7. freeke

    搞定,不好意思

  8. freeke

    [root@TS263 cacti]# patch -p1 < cacti_thold-039_settings-05_add_fetion_msn.path
    The next patch would create the file index.php,
    which already exists! Assume -R? [n] y
    patching file index.php
    Hunk #1 FAILED at 1.
    File index.php is not empty after patch, as expected
    1 out of 1 hunk FAILED -- saving rejects to file index.php.rej
    patching file settings/fetion-test.php
    can't find file to patch at input line 42
    Perhaps you used the wrong -p or --strip option?
    The text leading up to this was:
    --------------------------
    |diff -uNr plugins-old/settings/include/functions.php plugins/settings/include/functions.php
    |--- plugins-old/settings/include/functions.php 2008-04-29 14:03:40.000000000 +0800
    |+++ plugins/settings/include/functions.php 2008-11-24 18:22:10.000000000 +0800
    --------------------------
    File to patch:
    Skip this patch? [y] y
    Skipping patch.
    1 out of 1 hunk ignored
    patching file settings/include/msnpauth.php
    patching file settings/include/sendMsg.php
    patching file settings/msn-test.php
    can't find file to patch at input line 537
    Perhaps you used the wrong -p or --strip option?
    The text leading up to this was:
    --------------------------
    |diff -uNr plugins-old/settings/setup.php plugins/settings/setup.php
    |--- plugins-old/settings/setup.php 2008-04-29 14:03:40.000000000 +0800
    |+++ plugins/settings/setup.php 2008-11-24 13:07:48.000000000 +0800
    --------------------------
    File to patch: plugins/settings/
    patch: **** File plugins/settings/ is not a regular file -- can't patch

  9. Martian Guo

    先确认已经正确安装好了 settings-0.5 thold-0.3.9 两个插件
    忘记说了thold配置步骤,首先要在帐号管理中输入,就是倒数第二张的图片,然后才能在thold 中看到多选列表,这些东西都和原来的thold 配置是一样的,没有任何变化

  10. miladuo

    朋友,我按你这个补丁已经倒进去了,我怎么没有看见配置你下面两张图片的地方啊?
    还有,我倒你的补丁后,还需要像你blog里面以前的文章那样,修改什么设置吗?

Leave a Comment