Additional image for action_url in host and service definitions patch

Michael Friedrich michael.friedrich at univie.ac.at
Tue Jan 10 22:33:55 CET 2012


On 10.01.2012 16:04, Andreas Ericsson wrote:
> On 01/10/2012 12:13 PM, Wim Hoekman wrote:
>> Bump!
>>
>
> Bomp.
>
> The problem with the patch isn't so much that it's not feature-complete,
> but that it wreaks havoc with the object abi. That means it can't be
> considered for inclusion until 3.4.0 at the earlist.

the patch is huge and shouldn't be applied as is without extensive 
testing. i have had a look but struggled with time issues for properly 
testing it. maybe users can decide with their votes on ideas.nagios.org 
how much popular demand is there?

>
> To be quite honest though, I can't quite see myself working on getting
> this patch included. I've got another one that integrates seamlessly
> with pnp to print the perfdata link and that doesn't require any change
> to the object abi at all. I'll see if I can dig that one up and send it
> to you for testing. If it pans out ok, maybe we'll include that one in
> the core release so you can simply stop configuring a lot of extra
> stuff and have the GUI determine presence or absence of perfdata graphs
> on its own.

Jochen created the multiurl patch which allows to add more than one url 
and also to change the icons then.

http://exchange.nagios.org/directory/Patches/Nagios-Core/MultiURL-Patch/details

or you'll use quick and dirty config hack for icon_image adding some pnp 
url to that. sort of that, being s.gif a not visible picture and 
Stats2.png your preferred graph icon then.

icon_image s.gif' width='0' height='0' border='0'></a><a 
href='/pnp4nagios/graph?host=$HOSTNAME$&srv=$SERVICEDESC$' class='tips' 
rel='/pnp4nagios/popup?host=$HOSTNAME$&srv=$SERVICEDESC$'><img 
width='20' height='20' src='/icinga/images/logos/Stats2.png' border='0

>
>>
>> On 2011-01-12 15:47, Wim Hoekman wrote:
>>> (I've submitted this patch about 2 years ago, but it wasn't considered
>>> 'feature complete' by then. And I didn't have the time to add the
>>> missing features, as I didn't use them myself. But here it is again, now
>>> complete)
>>>
>>> Hello all,
>>>
>>> For some services my action_url is set to view performance
>>> data (graphs), while for other services the action_url is set to lead to
>>> an external webbased system to perform additional commands.
>>>
>>> To be able to see what action is to be performed in the Service Detail
>>> overview , I would like to be able to define different images for
>>> different actions.
>>>
>>>
>>> The attached patch adds the field 'action_image' to be defined for
>>> hosts, hostgroups, services, and service groups:
>>>
>>> define service {
>>> use template
>>> host_name host1
>>> service_description Load
>>> action_url http://....
>>> action_image graph.gif
>>> action_image_alt View graphs
>>> }
>>>
>>> If the action_image is not defined, the default red "splat" icon is used.
>>>
>>> If action_image_alt is not defined, the default text "Perform additional
>>> actions" is used.
>>>
>>> I have also added the notes_image (as requested previously) and
>>> notes_image_alt keywords.
>>>
>>> Attached patch is made against 3.2.3, and is already running on my
>>> production Nagios servers.
>>>
>>> I would be very happy if this patch can be included in the next Nagios
>>> minor release. (probably 3.3.0 or something ?)
>>>
>>> Regards,
>>>
>>> Wim.
>>>
>>>
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Protect Your Site and Customers from Malware Attacks
>>> Learn about various malware tactics and how to avoid them. Understand
>>> malware threats, the impact they can have on your business, and how you
>>> can protect your company and customers by using code signing.
>>> http://p.sf.net/sfu/oracle-sfdevnl
>>>
>>>
>>>
>>> _______________________________________________
>>> Nagios-devel mailing list
>>> Nagios-devel at lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/nagios-devel
>>
>>
>> ------------------------------------------------------------------------------
>> Write once. Port to many.
>> Get the SDK and tools to simplify cross-platform app development. Create
>> new or port existing apps to sell to consumers worldwide. Explore the
>> Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
>> http://p.sf.net/sfu/intel-appdev
>> _______________________________________________
>> Nagios-devel mailing list
>> Nagios-devel at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/nagios-devel
>
>


-- 
DI (FH) Michael Friedrich

Vienna University Computer Center
Universitaetsstrasse 7 A-1010 Vienna, Austria

email:     michael.friedrich at univie.ac.at
phone:     +43 1 4277 14359
mobile:    +43 664 60277 14359
fax:	   +43 1 4277 14338
web:       http://www.univie.ac.at/zid
            http://www.aco.net

Lead Icinga Core Developer
http://www.icinga.org


------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev




More information about the Developers mailing list