Icinga / icinga-reports

Icinga Reports 1.x MySQL (EOL 31.12.2018)
GNU General Public License v2.0
14 stars 13 forks source link

[dev.icinga.com #4720] Suggested improvements for the sample with pnp4nagios graph #65

Open icinga-migration opened 11 years ago

icinga-migration commented 11 years ago

This issue has been migrated from Redmine: https://dev.icinga.com/issues/4720

Created by dgoetz on 2013-09-19 13:53:21 +00:00

Assignee: (none) Status: New Target Version: Backlog Last Update: 2015-05-18 12:17:49 +00:00 (in Redmine)


Add process_performance_data to the sql query and a print when expression "$F{process_performance_data} == 1" to the graph image. This would make it possible to use the report for all services without error if process_performance_data is disabled for services not providing those.

Furthermore changing the image expression to the following statement will make it working for services with characters which need encoding and proper support for the dates.

"http://host/pnp4nagios/image?host=" + $F{name1} + "&srv=" + URLEncoder.encode($F{display_name},"ISO-8859-1") + "&start=" + URLEncoder.encode($P{p_date_start}.toString(),"ISO-8859-1") + "&end=" + URLEncoder.encode($P{p_date_end}.toString(),"ISO-8859-1")
icinga-migration commented 9 years ago

Updated by berk on 2015-05-18 12:17:49 +00:00