Additional (external links) for hosts

60 views
Skip to first unread message

bjornf

unread,
May 25, 2013, 4:39:27 AM5/25/13
to th...@googlegroups.com
Hi,

I want to add links/URLs to error logs and config changes for a host. I already use the notes_url and action_url(pnp).  Any hint on how I best add these, is it possible?

Can I add additional links showed by extinfo.cgi where you have:

..
View Notifications for this host
View configuration for this host
...

?

Regards, Bjorn

bjornf

unread,
May 25, 2013, 5:15:35 AM5/25/13
to th...@googlegroups.com
Is modifying templates under /usr/share/thruk/templates a bad idea?

For example:

/usr/share/thruk/templates/extinfo_type_0.tt

?

Sven Nierlein

unread,
May 26, 2013, 7:16:34 AM5/26/13
to th...@googlegroups.com
On 5/25/13 11:15, bjornf wrote:
> Is modifying templates under /usr/share/thruk/templates a bad idea?

definitly a bad idea. A slightly better idea would be to copy that template
in your 'user_template_path' and change it there. That way it won't be
overwritten on the next update.

A better idea would be to send me a patch if its usefull for all users.

And even better would be to just use the existing action_url and use the
old trick of using quotes to add 2 or more links like
action_url http://link1'> <a href='http://link2
something like that.

Sven

bjornf

unread,
May 26, 2013, 3:56:17 PM5/26/13
to th...@googlegroups.com
Thanks Sven for answering. 

Using user_template_path seems to risk "collisions" with future updates of included Thruk templates.

Does the additional action urls trick work with pnp4nagios being the existing one? Today I have this when it comes to action_url:

define host {
   name       host-pnp
   action_url /pnp4nagios/index.php/graph?host=$HOSTNAME$&srv=_HOST_' class='tips' rel='/pnp4nagios/index.php/popup?host=$HOSTNAME$&srv=_HOST_
   register   0
}

Then I include that to each host.

Will they all use the same action icon image? 

Regards, Bjorn

Sven Nierlein

unread,
May 27, 2013, 4:55:52 AM5/27/13
to th...@googlegroups.com
Well, that was just an idea. You can do whatever you can do with html. If you need another icon, just use the <img> tag.

Sven
Reply all
Reply to author
Forward
0 new messages