ICT教育

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 1292|回复: 5

cacti監控tomcat有圖無數據

[复制链接]
发表于 2011-10-13 12:01:51 | 显示全部楼层 |阅读模式
最近用cacti監控tomcat,卻沒有數據顯示。
./tomcatstats.pl 192.168.41.199:8080 manager passwd http-808時,只出了三項有數據,其它都空白
錯誤提示信息如下:

[root@localhost scripts]# ./tomcatstats.pl 192.168.41.199:8080 manager passwd http-8080
Use of uninitialized value in concatenation (.) or string at ./tomcatstats.pl line 28.
Use of uninitialized value in concatenation (.) or string at ./tomcatstats.pl line 29.
Use of uninitialized value in concatenation (.) or string at ./tomcatstats.pl line 30.
Use of uninitialized value in concatenation (.) or string at ./tomcatstats.pl line 31.
Use of uninitialized value in concatenation (.) or string at ./tomcatstats.pl line 32.
Use of uninitialized value in concatenation (.) or string at ./tomcatstats.pl line 33.
Use of uninitialized value in concatenation (.) or string at ./tomcatstats.pl line 34.
Use of uninitialized value in concatenation (.) or string at ./tomcatstats.pl line 35.
Use of uninitialized value in concatenation (.) or string at ./tomcatstats.pl line 36.
Use of uninitialized value in concatenation (.) or string at ./tomcatstats.pl line 37.
Use of uninitialized value in concatenation (.) or string at ./tomcatstats.pl line 38.
jvm_memory_free:496456040 jvm_memory_max:954466304 jvm_memory_total:514523136 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_s


perl -MCPAN -e"install XML::Simple"都安裝好了,
提示信息:
[root@localhost scripts]# perl -MCPAN -e"install XML::Simple"
CPAN: Storable loaded ok
Going to read /root/cacti-nginx/yes/Metadata
  Database was generated on Tue, 11 Oct 2011 09:28:27 GMT
XML::Simple is up to date.

另外cacti的Data Input Methods項裡面的值是設置為:perl /scripts/tomcatstats.pl 192.168.41.199:8080 manager passwd http-8080  tomcat能正常運行,可以登錄

就在 ./tomcatstats.pl 192.168.41.199:8080 manager passwd http-8080只出了幾個數據,奇怪了這是什麼了?難到雙要給spine打補丁?其實在監控nginx時給spine打過補丁,不會又要重新裝一次?HO~!
发表于 2011-10-14 06:53:23 | 显示全部楼层
看到繁体字头晕,难道你是港澳台同胞?
发表于 2011-10-14 08:38:49 | 显示全部楼层
偶不得不用傲游里面的谷歌翻译功能来看LZ的文章
http://translate.google.com/tran ... =zh-TW&tl=zh-CN
发表于 2011-10-19 15:45:31 | 显示全部楼层
我的也是这个问题,以前好好的忽然就没有了。只有那个jvm的了
 楼主| 发表于 2011-10-26 10:21:27 | 显示全部楼层
ltzy 发表于 2011-10-14 06:53
看到繁体字头晕,难道你是港澳台同胞?

呵呵,我不是,只是呆在一家香港公司工作
 楼主| 发表于 2011-10-26 10:22:27 | 显示全部楼层
wnjsnj78 发表于 2011-10-14 08:38
偶不得不用傲游里面的谷歌翻译功能来看LZ的文章
http://translate.google.com/translate?u=http%3A%2F%2Fb ...

哈哈,沒這個必要吧,繁體字應該好懂呀!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|ICT教育—中小学信息技术教育网 ( 苏ICP备10008215号

GMT+8, 2018-1-23 10:00

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表