Additional image for action_url in host and service definitions patch
Andreas Ericsson
ae at op5.se
Tue Jan 10 16:04:55 CET 2012
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.
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.
>
> 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
--
Andreas Ericsson andreas.ericsson at op5.se
OP5 AB www.op5.se
Tel: +46 8-230225 Fax: +46 8-230231
Considering the successes of the wars on alcohol, poverty, drugs and
terror, I think we should give some serious thought to declaring war
on peace.
------------------------------------------------------------------------------
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