pnp4nagios graphs displays on a new page and whithout Thruk frames

1,161 views
Skip to first unread message

toto...@yopmail.com

unread,
Jan 18, 2012, 11:52:25 AM1/18/12
to Thruk
Hello,

I have some problems displaying correctly the graphs generated by
pnp4nagios.

This is my action_url defined in shinken configuration :

action_url /pnp4nagios/index.php/graph?host=$HOSTNAME$&srv=$SERVICEDESC
$' class='tips' rel='/pnp4nagios/popup?host=$HOSTNAME$&srv=$SERVICEDESC
$'

From inside the service information page, the graph appears correctly
under "Performance Graph" section. A click on it display the graph
nicely inside the Thruk frame.

I tried to customize the menu like this : add_link('name' => 'test',
'href' => "http://my_host/pnp4nagios/index.php/graph");
This work great (graph opens inside Thruk frame).

From the "Service Status Details For All Host" page, the graph icon
appear near the service for which perfdata was gathered. When moving
the mouse over the icon, the tooltip opens and show the graph
thumbnail but when clicking on this icon, the graph page open in a new
page and outside thruk frames.

I try various different configuration parametes whitout success
(action_url_target, allowed_frame_links).

What action_url/Thruk directive did I need to configure so that a
click on the small graph icon display the graph page inside Thruk
frames ?

I already lost a lot of time on this and cannot figure out what the
problems his, I need some help from experienced people please. Thank
you.

Peter

Sven Nierlein

unread,
Jan 18, 2012, 3:38:36 PM1/18/12
to th...@googlegroups.com
On 1/18/12 17:52, toto...@yopmail.com wrote:
> From the "Service Status Details For All Host" page, the graph icon
> appear near the service for which perfdata was gathered. When moving
> the mouse over the icon, the tooltip opens and show the graph
> thumbnail but when clicking on this icon, the graph page open in a new
> page and outside thruk frames.
>
> I try various different configuration parametes whitout success
> (action_url_target, allowed_frame_links).
>
> What action_url/Thruk directive did I need to configure so that a
> click on the small graph icon display the graph page inside Thruk
> frames ?

Hi Peter,

I cannot reproduce that behavior. Did you try a different browser/workstation?
Links only open in new tabs/window if they have a "target" attribute set and
if that target attribute is differs from the name of the current window.
Could you verify the link behind the icon does not have a target attribute set?

I use this action_url:
action_url /pnp4nagios/index.php/graph?host=$HOSTNAME$&srv=$SERVICEDESC$' class='tips' rel='/pnp4nagios/index.php/popup?host=$HOSTNAME$&srv=$SERVICEDESC$

But this seem to make no difference, i tried yours too.

Do you use the standard status-header.ssi?
-> https://github.com/sni/Thruk/blob/master/ssi/status-header.ssi-pnp

Bye,
Sven

toto...@yopmail.com

unread,
Jan 19, 2012, 4:40:47 AM1/19/12
to Thruk
Hello,

Thank you for your reply Sven.

I found a solution to my problem, adding target="main" to the
action_url :

action_url /pnp4nagios/index.php/graph?host=$HOSTNAME$&srv=$SERVICEDESC
$' target='main' class='tips' rel='/pnp4nagios/index.php/popup?host=
$HOSTNAME$&srv=$SERVICEDESC$

but using :

action_url_target = "main"

doesn't seems to work.

Peter

On Jan 18, 9:38 pm, Sven Nierlein <s...@nierlein.de> wrote:
Reply all
Reply to author
Forward
0 new messages