cacti for tomcat8 is ERROR: Empty result

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

kernelsky
Posts: 12
Joined: Thu Dec 18, 2014 3:11 am
Contact:

cacti for tomcat8 is ERROR: Empty result

Post by kernelsky »

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
kernelsky
Posts: 12
Joined: Thu Dec 18, 2014 3:11 am
Contact:

Re: cacti for tomcat8 is ERROR: Empty result

Post by kernelsky »

Who can help me solve the problem
kernelsky
Posts: 12
Joined: Thu Dec 18, 2014 3:11 am
Contact:

Re: cacti for tomcat8 is ERROR: Empty result

Post by kernelsky »

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 112 times
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Re: cacti for tomcat8 is ERROR: Empty result

Post by phalek »

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
kernelsky
Posts: 12
Joined: Thu Dec 18, 2014 3:11 am
Contact:

Re: cacti for tomcat8 is ERROR: Empty result

Post by kernelsky »

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
hi,I upgraded version to 0.8.8c ,but is not successful.

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
QQ截图20141219125137.png (3.73 KiB) Viewed 2992 times
Last edited by kernelsky on Fri Dec 19, 2014 12:46 am, edited 1 time in total.
cigamit
Developer
Posts: 3367
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Re: cacti for tomcat8 is ERROR: Empty result

Post by cigamit »

What user is your poller cron running as?
kernelsky
Posts: 12
Joined: Thu Dec 18, 2014 3:11 am
Contact:

Re: cacti for tomcat8 is ERROR: Empty result

Post by kernelsky »

cigamit wrote:What user is your poller cron running as?
[root@osa default]# id
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 &
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Re: cacti for tomcat8 is ERROR: Empty result

Post by phalek »

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
kernelsky
Posts: 12
Joined: Thu Dec 18, 2014 3:11 am
Contact:

Re: cacti for tomcat8 is ERROR: Empty result

Post by kernelsky »

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.
hi,I delete and re add, or no data.
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
QQ截图20141219153201.png (7.07 KiB) Viewed 2987 times
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Re: cacti for tomcat8 is ERROR: Empty result

Post by phalek »

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
kernelsky
Posts: 12
Joined: Thu Dec 18, 2014 3:11 am
Contact:

Re: cacti for tomcat8 is ERROR: Empty result

Post by kernelsky »

phalek wrote:still did you rebuild the poller cache ( console / utilities ) ?
rebuild the poller cache Or error
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
QQ截图20141219154845.png (21.12 KiB) Viewed 2986 times
QQ截图20141219154836.png
QQ截图20141219154836.png (69.23 KiB) Viewed 2986 times
kernelsky
Posts: 12
Joined: Thu Dec 18, 2014 3:11 am
Contact:

Re: cacti for tomcat8 is ERROR: Empty result

Post by kernelsky »

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\"'
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Re: cacti for tomcat8 is ERROR: Empty result

Post by phalek »

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
kernelsky
Posts: 12
Joined: Thu Dec 18, 2014 3:11 am
Contact:

Re: cacti for tomcat8 is ERROR: Empty result

Post by kernelsky »

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
kernelsky
Posts: 12
Joined: Thu Dec 18, 2014 3:11 am
Contact:

Re: cacti for tomcat8 is ERROR: Empty result

Post by kernelsky »

phalek wrote:Can you send me the file lib/utility.php from your cacti installation ?
hi,Thank you for your help.

Did you find out the problem? Will be a new bug ?
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests