请教heartbeat

发布于 2022-07-18 07:06:58 字数 118 浏览 13 评论 5

开原的heartbeat软件,能不能监控到,当前所提供的软件服务的状态.
比如我的apache或者我的mysql  down了,heartbeat可以作到吗?
似乎,好象监控到硬件层次的多些.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

泪之魂 2022-07-26 23:45:09

原帖由 ljhb 于 2006-9-21 10:00 发表
你这个太老了 ,现在hb2.0已经有明确的resource management的概念了,

这个我是从heartbeat2.0.5的DOC里翻到的.

太老了?老到啥地步?

我看了,觉得按照他说的,确实有cluster的味道了.

至于你说的resource management,我还真是不太了解.哪位能具体说说吗?

心意如水 2022-07-22 09:39:37

原帖由 ljhb 于 2006-9-21 10:00 发表
你这个太老了 ,现在hb2.0已经有明确的resource management的概念了,

是有资源的概念,但是它只限于本机

HOHO,比如apache的状态

唯憾梦倾城 2022-07-20 13:19:30

你这个太老了 ,现在hb2.0已经有明确的resource management的概念了,

霊感 2022-07-19 21:15:52

翻了原码里的DOC,找到下面这些信息.

Heartbeat itself was not designed for monitoring various resources. If you need to monitor some resources (for example, availability of WWW server) you need some third party software. Mon is a reasonable solution.

Get Mon from http://kernel.org/software/mon/.
Get all required modules listed. You can find them at nearest mirror or at the CPAN archive (www.cpan.org). I am not very familiar with Perl, so I downloaded them from CPAN archive as .tar.gz packages and installed them in the usual way (perl Makefile.pl && make && make test && make install).
Mon is software for monitoring different network resources. It can ping computers, connect to various ports, monitor WWW, MySQL etc. In case of dysfunction of some resources it triggers some scripts.
Unpack mon in some directory. Best starting point is README file. Complete documentation is in the <dir>/doc, where <dir> is the place you unpacked mon package.
For a fast start do following steps:
copy all subdirs found in <dir> to /usr/lib/mon
create dir /etc/mon
copy auth.cf from <dir>/etc to /etc/mon
Now, mon is prepared to work. You need to create your own mon.cf file, where you should point to resources mon should watch and actions mon will start in case of dysfunction and when resources are available again.   All monitoring scripts are in /usr/lib/mon/mon.d/. At the beginning of every script you can find explanation how to use it.
All alert scripts are placed in /usr/lib/mon/alert.d/. Those are scripts triggered in case something went wrong. In case you are using ipvs on theirs homepage (www.linuxvirtualserver.org) you can find scripts for adding and removing servers from an ipvs list.

上面说Heartbeat 本身不支持监控用户的应用. 需要第三方的东西.

应该就是上面说的mon或者ldirectord了.这样就变成一个带ha的集群了.

[ 本帖最后由 NICKY.BOY 于 2006-9-20 13:52 编辑 ]

音盲 2022-07-18 09:23:57

yes. read docs.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文