-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Script metrics-jstat.rb return "IndexError: list index out of range" #29
Comments
The other script metrics-java-heap-graphite.rb works $ metrics-java-heap-graphite.rb -n Server |
Hello
I am just trying to get jstat metrics in Sensu with sensu-plugins-java
I launched "metrics-jstat.rb -D -H localhost -j Server" and got error message "IndexError: list index out of range"
It use jstat from java-1.8.0-openjdk-1.8.0.151-1.b12.el7_4.x86_64 on CentOS Linux release 7.4.1708
Else version of others packages are: sensu-1.1.1-1.el7.x86_64
Best regards.
rsf
$ metrics-jstat.rb -D -H localhost -j Server
Traceback (most recent call last):
File "/opt/sensu/embedded/lib/ruby/gems/2.4.0/gems/sensu-plugins-java-1.3.0/bin/metrics-jstat.py", line 315, in
JstatMetricsToGraphiteFormat().main()
File "/opt/sensu/embedded/lib/ruby/gems/2.4.0/gems/sensu-plugins-java-1.3.0/bin/metrics-jstat.py", line 268, in main
gc_stats = get_jstat_metrics("-gc", lvmid, metric_maps_gc)
File "/opt/sensu/embedded/lib/ruby/gems/2.4.0/gems/sensu-plugins-java-1.3.0/bin/metrics-jstat.py", line 243, in get_jstat_metrics
return dict([(metric_maps[title], values[position]) for position, title in enumerate(titles) if title in metric_maps])
IndexError: list index out of range
The text was updated successfully, but these errors were encountered: