cacti for tomcat8 is ERROR: Empty result
Moderators: Developers, Moderators
cacti for tomcat8 is ERROR: Empty result
Hi,all.
cacti---> console --> Data Input Methods ---> Tomcat Status-->Input String
/usr/bin/perl <path_cacti>/scripts/tomcatstats.pl <hostname>:8086 test test "http-nio-8086"
my cacti log is:
[root@osa scripts]# tailf ../log/cacti.log
12/18/2014 04:06:07 PM - CMDPHP: Poller[0] mURLin - INFO: Reached Poller Bottom, clearing cache
12/18/2014 04:06:07 PM - POLLER: Poller[0] Network Discover is now running
12/18/2014 04:06:07 PM - POLLER: Poller[0] ERROR: Network Discover subnet setting is not set!
12/18/2014 04:07:03 PM - SPINE: Poller[0] Host[4] ERROR: Empty result [192.168.0.86]: '/usr/bin/perl /home/wwwroot/default/cacti/scripts/tomcatstats.pl 192.168.0.86:8086 test test \"http-nio-8086\"'
12/18/2014 04:07:03 PM - SPINE: Poller[0] Host[4] ERROR: Empty result [192.168.0.86]: '/usr/bin/perl /home/wwwroot/default/cacti/scripts/tomcatstats.pl 192.168.0.86:8086 test test \"http-nio-8086\"'
12/18/2014 04:07:03 PM - SPINE: Poller[0] Host[4] ERROR: Empty result [192.168.0.86]: '/usr/bin/perl /home/wwwroot/default/cacti/scripts/tomcatstats.pl 192.168.0.86:8086 test test \"http-nio-8086\"'
12/18/2014 04:07:03 PM - SPINE: Poller[0] Host[4] ERROR: Empty result [192.168.0.86]: '/usr/bin/perl /home/wwwroot/default/cacti/scripts/tomcatstats.pl 192.168.0.86:8086 test test \"http-nio-8086\"'
12/18/2014 04:07:06 PM - SYSTEM STATS: Time:5.5181 Method:spine Processes:1 Threads:1 Hosts:13 HostsPerProcess:13 DataSources:203 RRDsProcessed:140
12/18/2014 04:07:06 PM - SYSTEM THOLD STATS: Time:0.0040 Tholds:0 TotalHosts:12 DownHosts:0 NewDownHosts:0
12/18/2014 04:07:06 PM - CMDPHP: Poller[0] mURLin - INFO: Reached Poller Bottom, clearing cache
^C
But to manually perform access to data:
[root@osa scripts]# /usr/bin/perl /home/wwwroot/default/cacti/scripts/tomcatstats.pl 192.168.0.86:8086 test test \"http-nio-8086\"
jvm_memory_free:1355911000 jvm_memory_max:22543335424 jvm_memory_total:2905604096 connector_max_time:47117 connector_error_count:35 connector_bytes_sent:28009534 connector_processing_time:360250 connector_request_count:69399 connector_bytes_received:14892 connector_current_thread_count:25 connector_min_spare_threads: connector_max_threads:2000 connector_max_spare_threads: connector_current_threads_busy:1
cacti---> console --> Data Input Methods ---> Tomcat Status-->Input String
/usr/bin/perl <path_cacti>/scripts/tomcatstats.pl <hostname>:8086 test test "http-nio-8086"
my cacti log is:
[root@osa scripts]# tailf ../log/cacti.log
12/18/2014 04:06:07 PM - CMDPHP: Poller[0] mURLin - INFO: Reached Poller Bottom, clearing cache
12/18/2014 04:06:07 PM - POLLER: Poller[0] Network Discover is now running
12/18/2014 04:06:07 PM - POLLER: Poller[0] ERROR: Network Discover subnet setting is not set!
12/18/2014 04:07:03 PM - SPINE: Poller[0] Host[4] ERROR: Empty result [192.168.0.86]: '/usr/bin/perl /home/wwwroot/default/cacti/scripts/tomcatstats.pl 192.168.0.86:8086 test test \"http-nio-8086\"'
12/18/2014 04:07:03 PM - SPINE: Poller[0] Host[4] ERROR: Empty result [192.168.0.86]: '/usr/bin/perl /home/wwwroot/default/cacti/scripts/tomcatstats.pl 192.168.0.86:8086 test test \"http-nio-8086\"'
12/18/2014 04:07:03 PM - SPINE: Poller[0] Host[4] ERROR: Empty result [192.168.0.86]: '/usr/bin/perl /home/wwwroot/default/cacti/scripts/tomcatstats.pl 192.168.0.86:8086 test test \"http-nio-8086\"'
12/18/2014 04:07:03 PM - SPINE: Poller[0] Host[4] ERROR: Empty result [192.168.0.86]: '/usr/bin/perl /home/wwwroot/default/cacti/scripts/tomcatstats.pl 192.168.0.86:8086 test test \"http-nio-8086\"'
12/18/2014 04:07:06 PM - SYSTEM STATS: Time:5.5181 Method:spine Processes:1 Threads:1 Hosts:13 HostsPerProcess:13 DataSources:203 RRDsProcessed:140
12/18/2014 04:07:06 PM - SYSTEM THOLD STATS: Time:0.0040 Tholds:0 TotalHosts:12 DownHosts:0 NewDownHosts:0
12/18/2014 04:07:06 PM - CMDPHP: Poller[0] mURLin - INFO: Reached Poller Bottom, clearing cache
^C
But to manually perform access to data:
[root@osa scripts]# /usr/bin/perl /home/wwwroot/default/cacti/scripts/tomcatstats.pl 192.168.0.86:8086 test test \"http-nio-8086\"
jvm_memory_free:1355911000 jvm_memory_max:22543335424 jvm_memory_total:2905604096 connector_max_time:47117 connector_error_count:35 connector_bytes_sent:28009534 connector_processing_time:360250 connector_request_count:69399 connector_bytes_received:14892 connector_current_thread_count:25 connector_min_spare_threads: connector_max_threads:2000 connector_max_spare_threads: connector_current_threads_busy:1
Re: cacti for tomcat8 is ERROR: Empty result
Who can help me solve the problem
Re: cacti for tomcat8 is ERROR: Empty result
Attachment is the scripts and templates
- Attachments
-
- cacti_host_template_tomcat9500_server-1.xml
- cacti for tomcat template
- (53.75 KiB) Downloaded 132 times
-
- tomcatstats.pl
- scripts
- (1.92 KiB) Downloaded 113 times
- phalek
- Developer
- Posts: 2838
- Joined: Thu Jan 31, 2008 6:39 am
- Location: Kressbronn, Germany
- Contact:
Re: cacti for tomcat8 is ERROR: Empty result
That's a known bug. Please either upgrade to 0.8.8c or try fixing the file (lib/utility.php) using the information from this bug report: http://bugs.cacti.net/view.php?id=2390
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
Re: cacti for tomcat8 is ERROR: Empty result
hi,I upgraded version to 0.8.8c ,but is not successful.phalek wrote:That's a known bug. Please either upgrade to 0.8.8c or try fixing the file (lib/utility.php) using the information from this bug report: http://bugs.cacti.net/view.php?id=2390
Error as follows:
12/19/2014 12:57:04 PM - SPINE: Poller[0] Host[4] ERROR: Empty result [192.168.0.86]: '/usr/bin/perl /home/wwwroot/default/cacti/scripts/tomcatstats.pl 192.168.0.86:8086 test test \"http-nio-8086\"'
12/19/2014 12:57:04 PM - SPINE: Poller[0] Host[4] ERROR: Empty result [192.168.0.86]: '/usr/bin/perl /home/wwwroot/default/cacti/scripts/tomcatstats.pl 192.168.0.86:8086 test test \"http-nio-8086\"'
12/19/2014 12:57:04 PM - SPINE: Poller[0] Host[4] ERROR: Empty result [192.168.0.86]: '/usr/bin/perl /home/wwwroot/default/cacti/scripts/tomcatstats.pl 192.168.0.86:8086 test test \"http-nio-8086\"'
12/19/2014 12:57:04 PM - SPINE: Poller[0] Host[4] ERROR: Empty result [192.168.0.86]: '/usr/bin/perl /home/wwwroot/default/cacti/scripts/tomcatstats.pl 192.168.0.86:8086 test test \"http-nio-8086\"'
[root@osa log]# /usr/bin/perl /home/wwwroot/default/cacti/scripts/tomcatstats.pl 192.168.0.86:8086 test test \"http-nio-8086\"
jvm_memory_free:3465287584 jvm_memory_max:22543335424 jvm_memory_total:4031250432 connector_max_time:60648 connector_error_count:38 connector_bytes_sent:38864672 connector_processing_time:689812 connector_request_count:129923 connector_bytes_received:27886 connector_current_thread_count:25 connector_min_spare_threads: connector_max_threads:2000 connector_max_spare_threads: connector_current_threads_busy:1
- Attachments
-
- QQ截图20141219125137.png (3.73 KiB) Viewed 2994 times
Last edited by kernelsky on Fri Dec 19, 2014 12:46 am, edited 1 time in total.
Re: cacti for tomcat8 is ERROR: Empty result
What user is your poller cron running as?
Re: cacti for tomcat8 is ERROR: Empty result
[root@osa default]# idcigamit wrote:What user is your poller cron running as?
uid=0(root) gid=0(root) 组=0(root) 环境=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023
[root@osa cacti]# crontab -l -uroot
*/1 * * * * /usr/local/php/bin/php /home/wwwroot/default/cacti/poller.php > /dev/null &
- phalek
- Developer
- Posts: 2838
- Joined: Thu Jan 31, 2008 6:39 am
- Location: Kressbronn, Germany
- Contact:
Re: cacti for tomcat8 is ERROR: Empty result
kernelsky wrote: hi,I upgraded version to 0.8.8c ,but is not successful.
You have to "Rebuild the poller cache" for this to change.
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
Re: cacti for tomcat8 is ERROR: Empty result
hi,I delete and re add, or no data.phalek wrote:kernelsky wrote: hi,I upgraded version to 0.8.8c ,but is not successful.
You have to "Rebuild the poller cache" for this to change.
The same error.
-rw-r--r--. 1 root root 656704 12月 19 15:32 xuezhi_solr3_jvm_memory_free_378.rrd
-rw-r--r--. 1 root root 656704 12月 19 15:32 xuezhi_solr3_jvm_memory_free_379.rrd
-rw-r--r--. 1 root root 656704 12月 19 15:32 xuezhi_solr3_jvm_memory_free_380.rrd
-rw-r--r--. 1 root root 656704 12月 19 15:32 xuezhi_solr3_jvm_memory_free_381.rrd
- Attachments
-
- QQ截图20141219153201.png (7.07 KiB) Viewed 2989 times
- phalek
- Developer
- Posts: 2838
- Joined: Thu Jan 31, 2008 6:39 am
- Location: Kressbronn, Germany
- Contact:
Re: cacti for tomcat8 is ERROR: Empty result
still did you rebuild the poller cache ( console / utilities ) ?
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
Re: cacti for tomcat8 is ERROR: Empty result
rebuild the poller cache Or errorphalek wrote:still did you rebuild the poller cache ( console / utilities ) ?
Therefore i delete Data Sources
8086 xuezhi_solr3 - 8086 Tomcat Status
8086 xuezhi_solr3 - 8086 Tomcat Status
8086 xuezhi_solr3 - 8086 Tomcat Status
8086 xuezhi_solr3 - 8086 Tomcat Status
and To add monitoring
- Attachments
-
- QQ截图20141219154845.png (21.12 KiB) Viewed 2988 times
-
- QQ截图20141219154836.png (69.23 KiB) Viewed 2988 times
Re: cacti for tomcat8 is ERROR: Empty result
phalek wrote:still did you rebuild the poller cache ( console / utilities ) ?
I added a new 8080 port monitoring,Still the same error.
12/19/2014 04:32:04 PM - SPINE: Poller[0] Host[4] ERROR: Empty result [192.168.0.86]: '/usr/bin/perl /home/wwwroot/default/cacti/scripts/tomcatstats.pl 192.168.0.86:8086 apabi 123 \"http-nio-8086\"'
12/19/2014 04:32:04 PM - SPINE: Poller[0] Host[4] ERROR: Empty result [192.168.0.86]: '/usr/bin/perl /home/wwwroot/default/cacti/scripts/tomcatstats.pl 192.168.0.86:8086 apabi 123 \"http-nio-8086\"'
12/19/2014 04:32:04 PM - SPINE: Poller[0] Host[4] ERROR: Empty result [192.168.0.86]: '/usr/bin/perl /home/wwwroot/default/cacti/scripts/tomcatstats.pl 192.168.0.86:8086 apabi 123 \"http-nio-8086\"'
12/19/2014 04:32:04 PM - SPINE: Poller[0] Host[4] ERROR: Empty result [192.168.0.86]: '/usr/bin/perl /home/wwwroot/default/cacti/scripts/tomcatstats.pl 192.168.0.86:8086 apabi 123 \"http-nio-8086\"'
12/19/2014 04:32:04 PM - SPINE: Poller[0] Host[4] ERROR: Empty result [192.168.0.86]: '/usr/bin/perl /home/wwwroot/default/cacti/scripts/tomcatstats.pl 192.168.0.86:8080 apabi 123 \"http-nio-8080\"'
12/19/2014 04:32:04 PM - SPINE: Poller[0] Host[4] ERROR: Empty result [192.168.0.86]: '/usr/bin/perl /home/wwwroot/default/cacti/scripts/tomcatstats.pl 192.168.0.86:8080 apabi 123 \"http-nio-8080\"'
12/19/2014 04:32:04 PM - SPINE: Poller[0] Host[4] ERROR: Empty result [192.168.0.86]: '/usr/bin/perl /home/wwwroot/default/cacti/scripts/tomcatstats.pl 192.168.0.86:8080 apabi 123 \"http-nio-8080\"'
12/19/2014 04:32:04 PM - SPINE: Poller[0] Host[4] ERROR: Empty result [192.168.0.86]: '/usr/bin/perl /home/wwwroot/default/cacti/scripts/tomcatstats.pl 192.168.0.86:8080 apabi 123 \"http-nio-8080\"'
- phalek
- Developer
- Posts: 2838
- Joined: Thu Jan 31, 2008 6:39 am
- Location: Kressbronn, Germany
- Contact:
Re: cacti for tomcat8 is ERROR: Empty result
Can you send me the file lib/utility.php from your cacti installation ?
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
Re: cacti for tomcat8 is ERROR: Empty result
phalek wrote:Can you send me the file lib/utility.php from your cacti installation ?
my cacti/lib/utility.php Put it in the appendix, thank you.
- Attachments
-
- utility.rar
- (6.13 KiB) Downloaded 62 times
Re: cacti for tomcat8 is ERROR: Empty result
hi,Thank you for your help.phalek wrote:Can you send me the file lib/utility.php from your cacti installation ?
Did you find out the problem? Will be a new bug ?
Who is online
Users browsing this forum: No registered users and 2 guests