Host Icon Image

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
SteveBeauchemin
Posts: 524
Joined: Mon Oct 14, 2013 7:19 pm

Host Icon Image

Post by SteveBeauchemin »

In CCM, in Host Management, on the Misc Settings tab I have added an Icon image and a Free variable.
The host file shows the items.
define host {
other stuff ...
__DEVICE_ID 1234
icon_image cisco.png
}

How can I get that image to do something useful. I want to click it and have it use the variable.

In Nagios XI the image is displayed to the right of the host name.
I would like a live URL like the following
http:...default.aspx?pg=sw&DeviceID=$_HOST_DEVICE_ID$

to run as
http:...default.aspx?pg=sw&DeviceID=1234

Please advise.

Thanks

Steve B
XI 5.7.3 / Core 4.4.6 / NagVis 1.9.8 / LiveStatus 1.5.0p11 / RRDCached 1.7.0 / Redis 3.2.8 /
SNMPTT / Gearman 0.33-7 / Mod_Gearman 3.0.7 / NLS 2.0.8 / NNA 2.3.1 /
NSClient 0.5.0 / NRPE Solaris 3.2.1 Linux 3.2.1 HPUX 3.2.1
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Host Icon Image

Post by tmcdonald »

Doc links for reference:

http://nagios.sourceforge.net/docs/3_0/macros.html (Custom Variable Macros section)
http://nagios.sourceforge.net/docs/3_0/ ... tvars.html (Custom Variables As Macros section)

This is something the devs would need to add in, but you can get the same sort of functionality using the Action URL field. Though I am not certain that macros will work in that field.
Former Nagios employee
SteveBeauchemin
Posts: 524
Joined: Mon Oct 14, 2013 7:19 pm

Re: Host Icon Image

Post by SteveBeauchemin »

I have read those docs you linked many time over the years. I know Macros and Free variables. Been on Net Saint a long time.

I believe I will just make a service that has an active URL in the status information. Then I can use a Free variable and integrate to the service. Using an icon would have been nicer. But this work around should be okay until the product matures some more.

What I really want is to able to click on my status screen and have it launch what I need. If I see non-green, I want a one click solution to launch a URL. An Icon would be best as it would always be there as part of the host on a "Service Problems" screen. Using a "Service" test to provide a URL is a work around. A right-click sub menu of Quick actions without a need to drill in would actually be a Quick action.

I would be curious to know if someone has a better solution, using Free variables, with no need to drill in to another menu.

Thanks

Steve B
XI 5.7.3 / Core 4.4.6 / NagVis 1.9.8 / LiveStatus 1.5.0p11 / RRDCached 1.7.0 / Redis 3.2.8 /
SNMPTT / Gearman 0.33-7 / Mod_Gearman 3.0.7 / NLS 2.0.8 / NNA 2.3.1 /
NSClient 0.5.0 / NRPE Solaris 3.2.1 Linux 3.2.1 HPUX 3.2.1
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Host Icon Image

Post by tmcdonald »

I will leave the thread open for discussion and put in a feature request in the meantime.
Former Nagios employee
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: Host Icon Image

Post by eloyd »

I definitely would second a motion for a clickable action URL any time a service/host name is displayed on the screen, with the same variables presented to it that an event handler would have. In fact, it's basically a clickable event handler, no?

Setting the icon should be able to take those variables into account as well, so that specialized (or dynamic) images could be created per host/service if desired by manipulating the filename requested in the URL.
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Host Icon Image

Post by tmcdonald »

Feature request that was filed states:
User would like the host/service icons to have a configurable URL or action that can take place when clicked. This could possibly work by having the Action URL linked to the icon.
I think adding new fields just for the icon won't make it in, but linking the icon to the Action URL would be much easier and would make use of the current structure much more nicely.
Former Nagios employee
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Re: Host Icon Image

Post by WillemDH »

Hello,

Sorry to jump in. Is the above not something more or less like what I described in this feature request. http://tracker.nagios.com/view.php?id=578 If we had a separate column in the host / service overview containing all the icons which could be made clickable, that would just be awesome. then we wouldn't need to got into the host / service details for the most used actions.

Grtz

WIllem
Nagios XI 5.8.1
https://outsideit.net
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Host Icon Image

Post by tmcdonald »

Wasn't aware of that. Looks like Scott did some work on it back in March. I'll see what the status is.
Former Nagios employee
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: Host Icon Image

Post by eloyd »

I suppose this part is the part I would like to see:
An icon with action that should be accessible from the host / service /openj service problems overview (not detail) is the schedule immediate check icon. Even better would be if it was possible to add icons linking to custom actions (for example creating a support service request and acknowledging the problem)
Clickable, configurable icons, right next to the host/service name with full access to all event-handler style variables.
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Host Icon Image

Post by tmcdonald »

Scott's definitely working on this. I linked back to this thread so he'll be able to follow the conversation.
Former Nagios employee
Locked