CloudFoundry 上的 Hyperic 监控出现问题 - 频繁发出警报
我正在使用一个 Web 应用程序运行单实例 CloudFoundry 配置。我打开了 Hyperic 监控,并在 Web 应用程序不可用时发出通知。
现在,我随机收到应用程序未运行的警报电子邮件(主题“已触发警报 - 部署 myapp - 上下文不可用”),但它显然运行良好。
在 Apache 的访问日志中,我每 15 秒看到两个请求:
127.0.0.1 - - [17/Mar/2010:15:37:33 +0100] "GET /server-status?auto HTTP/1.1" 200 438 "-" "Jakarta Commons-HttpClient/3.1"
127.0.0.1 - - [17/Mar/2010:15:37:33 +0100] "GET /myapp HTTP/1.1" 200 - "-" "Jakarta Commons-HttpClient/3.1"
当我收到警报电子邮件时,日志中的所有内容似乎仍然正常 - 两个请求。
你知道可能出了什么问题吗?有人遇到过这样的问题并解决了吗?
谢谢, 磷
I'm running single instance CloudFoundry configuration with one web application. I turned on Hyperic monitoring with notification for case of web app unavailability.
Now I randomly receive alert emails (Subject "An alert has been triggered - Deployment myapp - context unavailable") that the application is not running, but it obviously is running fine.
In access log of Apache I see two requests every 15 seconds:
127.0.0.1 - - [17/Mar/2010:15:37:33 +0100] "GET /server-status?auto HTTP/1.1" 200 438 "-" "Jakarta Commons-HttpClient/3.1"
127.0.0.1 - - [17/Mar/2010:15:37:33 +0100] "GET /myapp HTTP/1.1" 200 - "-" "Jakarta Commons-HttpClient/3.1"
At the time when I get the alert emails, everything in log still seems to be fine - two requests.
Do you have idea what could be wrong? Did anybody have this kind of problem and solve it?
Thanks,
P
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
好的,从 CloudFoundry 人员那里获取信息。如果 Apache 或内部 Tomcat 请求出错或超时,则会发送警报。我的问题显然来自未记录在访问日志中的内部 Tomcat 请求。
他们现在只是更改了算法,因此当至少连续两次报告不可用(Apache / Tomcat)时就会触发警报。频繁的警报电子邮件问题消失了。
Ok, got info from CloudFoundry guys. The alerts are sent if either Apache or internal Tomcat request goes wrong or is timeouted. My problem apparently came from internal Tomcat requests that are not logged in access log.
They now simply changed the algorithm, so the alert is trigerred when unavailability (Apache / Tomcat) is reported at least two times in a row. Frequent alert emails problem is gone.