Commit Graph

58 Commits

Author SHA1 Message Date
Johannes Meyer 9b25ffa566 Perfdata: Do not show "xx more..." if there is nothing to show 2015-08-11 15:28:37 +02:00
Matthias Jentsch b505101694 Comply to coding guidelines 2015-07-06 15:47:04 +02:00
Matthias Jentsch 3caa5b428a Merge branch 'bugfix/don-t-show-more-than-the-five-worst-pies-in-list-views-8205'
fixes #8205
2015-06-16 18:40:03 +02:00
Matthias Jentsch 36622101ae Use built-in php sort functions
refs #8205
2015-06-16 18:36:12 +02:00
Matthias Jentsch ab129d094b remove unneeded code 2015-06-02 17:50:31 +02:00
Matthias Jentsch 198834294f Fix table position for perfdata without piecharts
refs #8334
2015-06-02 17:30:24 +02:00
Matthias Jentsch 1e8151bed3 Limit perfdata label size
Add paratentheses when perfdata label size exceeds a certain limit. Display the full label as tooltip.

refs #8334
2015-06-02 17:09:40 +02:00
Matthias Jentsch 8e35bb446a Hide columns with useless information in perfdata table
Hide columns that don't provide any useful information, to reduce the size of the perfdata table.

refs #8334
2015-06-02 16:21:55 +02:00
Matthias Jentsch a5c3782de7 Do not display columns that don't include any values
refs #8334
2015-06-02 15:20:27 +02:00
Alexander A. Klimov 9a141d5e3c Sort Perfdata by ::worseThan() DESC
refs #8205
2015-05-29 18:39:16 +02:00
Alexander A. Klimov 9e4c00506d Revert "Display performance data metrics with value 0"
This reverts commit 3c73f28157.
2015-05-12 17:22:25 +02:00
Alexander A. Klimov 3c73f28157 Display performance data metrics with value 0
fixes #8744
2015-05-12 17:19:20 +02:00
Eric Lippmann 5745c1fec4 Fix code style in the Perfdata view helper 2015-03-30 12:12:58 +02:00
Eric Lippmann 09d713be0d Fix PHPDoc of the Perfdata view helper 2015-03-30 12:10:58 +02:00
Eric Lippmann 8c46e5e285 Use View::translate() instead of t() in the Perfdata view helper
refs #7330
2015-03-30 12:08:26 +02:00
Eric Lippmann 6bae2e0a53 Note that our license is GPL v2 or any later version in our license header instead of pointing to the license's URL 2015-02-04 10:52:27 +01:00
Matthias Jentsch 2f254851e3 Fix pieChart layout and add indicator for truncated piecharts 2015-02-03 17:34:56 +01:00
Matthias Jentsch e8466ec7be Fix inlinePie borders and SVG sizes
Add white border to inline piecharts in the list, to make them more visible on mouse hovering. Set a default image size for the loaded svg charts.
2015-02-03 16:46:12 +01:00
Eric Lippmann 5b4fab0750 Add license header
This time without syntax errors hopefully :)
2015-02-03 16:27:59 +01:00
Eric Lippmann 5fa2e3cfdc Revert "Add license header"
This reverts commit 338d067aba.
2015-02-03 16:16:26 +01:00
Eric Lippmann 338d067aba Add license header
fixes #7788
2015-02-03 15:51:04 +01:00
Matthias Jentsch 5e2594d250 Parse perfdata thresholds provisionary
Use a heuristic to determine whether thresholds should be inverted, to support plugins with non-standard perfdata output while still being able to parse standard-compliant perfdata input.
2015-01-13 10:59:33 +01:00
Matthias Jentsch b5747797b7 Fix perfdata output
Display all perfdata key-value pairs in a formatted table, add padding to table css
improve piechart label.
2014-12-30 16:35:42 +01:00
Matthias Jentsch 41c101d99f Use neutral default color in perfdata piecharts
If nothing is known about the state of the monitoring object, the piecharts should neither indicate OK nor Critical.
2014-12-23 16:12:25 +01:00
Matthias Jentsch c93b13b138 Rework behavior of perfdata visualization
Determine perfdata pie color from host or service state, display zero percent piecharts, only render displayabl PieCharts with min and max values, move perfdata to piechart conversion functions into the Perfdata object.

fixes #6423
fixes #6200
fixes #7170
fixes #7304
2014-12-23 15:54:27 +01:00
Matthias Jentsch 64a2acd12e Do not display labels for single data sets in perfdata piecharts
Display generic chart titles for the whole piechart that only contain title and percentage and don't style perfdata piecharts using HTML properties.

refs #7077
refs #6200
refs #7304
2014-12-23 15:14:17 +01:00
Johannes Meyer 3fde78f2b3 Enable the dompdf float support and fix our list's layout 2014-12-15 13:56:19 +01:00
Matthias Jentsch 3642b7b6fc Adjust CSS for inlinePies to be centered on the current line 2014-08-28 18:27:30 +02:00
Eric Lippmann 9269a0cbd5 Revert "Do not use htmlspecialchars in view scripts"
This reverts commit 607aa9b203.

`Perfdata::escape()' does not exist. But `Perfdata::view::escape()' does.
2014-07-23 12:29:27 +02:00
Alexander Klimov 607aa9b203 Do not use htmlspecialchars in view scripts
fixes #6759
2014-07-23 12:12:49 +02:00
Johannes Meyer bacea36ad9 Improve piechart limitation and show non-piechart perfdata as well
The perfdata helper did an improper limitation as it might have skipped
valid values due to applying the limit before the filter. When not in compact
view the helper now also shows non-piechart values by using their raw
representation.

refs #6515
2014-07-14 13:48:30 +02:00
Johannes Meyer 5908e9fc70 Do not show pie charts for perfdata values when no percentage is available
refs #6515
2014-07-11 16:32:05 +02:00
Johannes Meyer ec2d1daa6b Perfdata plugin should also have a knowledge about labels
Prior to this change the PerfdataSet only knew the labels of a performance
data value which prevented the Perfdata object from being used
individually.

refs #6515
2014-07-11 16:31:00 +02:00
Johannes Meyer 53f3d74103 Fix word wrapping in perfdata labels and values
fixes #6377
2014-07-10 14:54:53 +02:00
Matthias Jentsch 7b19bd1d99 Improve interface of InlinePie
Method setLabel can also accept a simple string and title is mandatory in constructor
2014-06-25 15:21:12 +02:00
Matthias Jentsch 85aed364b7 Fix typing error in 'threshold' 2014-06-25 15:02:04 +02:00
Matthias Jentsch 35a5431512 Revert "Refractor InlinePie and Perfdata helper"
This reverts commit f003c38abd.
2014-06-25 14:29:17 +02:00
Matthias Jentsch f003c38abd Refractor InlinePie and Perfdata helper
Refractor InlinePie methods for better usability, fix several coding guideline
issues and fix some typos
2014-06-25 12:41:17 +02:00
Matthias Jentsch aae49ce0c0 Do not show tooltips for piechart areas that indicate empty or free areas
refs #6117
2014-06-18 17:38:25 +02:00
Matthias Jentsch 6555d347a7 Escape InlinePie html and adjust chart size
fixes #6117
2014-06-18 14:43:14 +02:00
Matthias Jentsch be0c5d4b23 Add more meaningful tooltip labels to InlinePies
Show current title, a well-formated value and a label for each area in a
tooltip and add the ability to customize tooltip labels of InlinePies

refs #6117
2014-06-18 14:43:14 +02:00
Matthias Jentsch d0c56126b8 Fix inline pie reload.
refs #6124
2014-05-07 17:03:27 +02:00
Johannes Meyer 0627d954ac Fix usages of Icinga\Module\Monitoring\Plugin\*
refs #5973
2014-05-05 16:16:45 +02:00
Gunnar Beutner b7f4fa4a29 Fix deprecation warning in Perfdata.php
fixes #6076
2014-04-29 12:00:34 +02:00
Matthias Jentsch 15723f088b Include SVG piecharts in perfData helpers
When no JavaScript is available, SVG piecharts will be shown instead of the
jQuery sparklines.

fixes #5865
2014-03-26 14:56:35 +01:00
Thomas Gelf 20c89bddf2 Perfdata experiments 2014-03-08 19:42:03 +01:00
Thomas Gelf 6ebd3e7b0f Perfdata is not always a table 2014-03-08 19:39:28 +01:00
Thomas Gelf 0e50547a01 Perfdata and PluginOutput helpers, output slightly changed 2014-03-04 12:54:23 +00:00
Thomas Gelf 24a32905f7 Pie spacing 2014-02-21 14:05:28 +00:00
Thomas Gelf 859d964d6b Don't show empty pies 2014-02-21 14:04:40 +00:00