免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 4939 | 回复: 1
打印 上一主题 下一主题

cacti 中tomcat的配置 [复制链接]

论坛徽章:
1
2015年辞旧岁徽章
日期:2015-03-03 16:54:15
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2011-09-06 15:18 |只看该作者 |倒序浏览
本帖最后由 greysky-zfj 于 2011-09-08 15:47 编辑

cacti 监控 tomcat 时
在cacti->Data Input Methods->Tomcat Status->Input String里面输入的
perl <path_cacti>/scripts/tomcatstats.pl <hostname>:8444/manager/status user pass http-8080这个8444和http-8080

分别代表的是 status的端口 和 web的端口8080吗?

按模板中的install文件,修改了server.xml,但端口号码 没有使用8444 而是8111,并且我原本的tomcat 跑在8081下 也不是8080

那我是否应做相应的修改将 8444 改为8111 http-8080 改为http-8081?

但是我在用命令行测试时,却不能获取数据

tomcatstats.pl x.x.x.x:8111  Cacti pwdCacti. http-8081

mismatched tag at line 1, column 940, byte 940 at /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi/XML/Parser.pm line 187
而如果改成
tomcatstats.pl x.x.x.x:8081  Cacti pwdCacti. http-8111

jvm_memory_free:278042160 jvm_memory_max:5618532352 jvm_memory_total:378535936 connector_max_time:2 connector_error_count:15 connector_bytes_sent:12376 connector_processing_time:10 connector_request_count:15 connector_bytes_received:0 connector_current_thread_count:1 connector_min_spare_threads: connector_max_threads:150 connector_max_spare_threads: connector_current_threads_busy:0

或tomcatstats.pl x.x.x.x:8081  Cacti pwdCacti. http-8180
jvm_memory_free:272750408 jvm_memory_max:5618532352 jvm_memory_total:378535936 connector_max_time: connector_error_count: connector_bytes_sent: connector_processing_time: connector_request_count: connector_bytes_received: connector_current_thread_count: connector_min_spare_threads: connector_max_threads: connector_max_spare_threads: connector_current_threads_busy:

亦或tomcatstats.pl x.x.x.x:8081  Cacti pwdCacti. http-8181
jvm_memory_free:271044000 jvm_memory_max:5618532352 jvm_memory_total:378535936 connector_max_time:751 connector_error_count:6 connector_bytes_sent:200986 connector_processing_time:1132 connector_request_count:102 connector_bytes_received:0 connector_current_thread_count:3 connector_min_spare_threads: connector_max_threads:200 connector_max_spare_threads: connector_current_threads_busy:1 [

为何?

论坛徽章:
1
2015年辞旧岁徽章
日期:2015-03-03 16:54:15
2 [报告]
发表于 2011-09-08 16:03 |只看该作者
顶一下
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP