Additional image for action_url in host and service definitions patch
Wim Hoekman
wim.hoekman at altium.com
Wed Jan 12 15:47:39 CET 2011
(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.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: action_image-nagios-3.2.3.patch
URL: <https://www.monitoring-lists.org/archive/developers/attachments/20110112/634b636e/attachment.ksh>
-------------- next part --------------
------------------------------------------------------------------------------
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
-------------- next part --------------
_______________________________________________
Nagios-devel mailing list
Nagios-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-devel
More information about the Developers
mailing list