Skip to content
This repository was archived by the owner on Jan 15, 2019. It is now read-only.
This repository was archived by the owner on Jan 15, 2019. It is now read-only.

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

@icinga-migration

Description

@icinga-migration

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")

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions