Tool Tips

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
crizzo99
Posts: 3
Joined: Fri Jul 08, 2016 9:10 am

Tool Tips

Post by crizzo99 »

Hello,
I am in the process of implementing a Nagios system for our network. In doing so, I am using Nagios Core 3.5.1 along with pnp4nagios 0.6.25 plugin to provide me the rrd graphics for the data we are interested in seeing and trending. Everything is going fine and I have the system operating and displaying everything I want. However, I have one thing that is irritating me...

I have turned on the "popups" feature in pnp4nagios to have my graphs display on the currently viewed page by hovering over the appropriate icon I am interested in. The problem is that there is a tooltip which is also popping up and laying directly over the graphic popup.

I have already done the searches through Nagios documentation and Google searches for an answer to no avail.

Is there a configuration parameter somewhere that I don't see or any other way to disable these tooltips? I am assuming the tooltip is coming from Nagios and not pnp4nagios but I could be wrong. I really like to use tooltips in the beginning when I am learning a new system and trying to get used to what the icons are for but after I get over my learning curve, I definitely like to turn them off after that.

It really is a nuisance having these tooltips overlaying the graphics!

Thanks in advance,
Chris
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Tool Tips

Post by rkennedy »

Could you show us a screenshot of the tool tip you're trying to remove so that we can see exactly what you're referring to?
Former Nagios Employee
crizzo99
Posts: 3
Joined: Fri Jul 08, 2016 9:10 am

Re: Tool Tips

Post by crizzo99 »

Sorry for the delay...long weekend. Attached you will find the screenshot you requested.
nagios.jpg
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Tool Tips

Post by rkennedy »

Unfortunately, this part is compiled in C so you would need to make changes directly to the status.c file and then recompile core.

I took a look at the file cgi/status.c in 4.1.1, and found 6 occurrences that would need to be changed. Depending on your version, you'll need to make changes accordingly.

Here's what I ran -

Code: Select all

[root@localhost cgi]# cat status.c | nl | grep 'Perform Extra'
  1440                                          printf("<IMG SRC='%s%s' border=0 WIDTH=%d HEIGHT=%d ALT='%s' TITLE='%s'>", url_images_path, ACTION_ICON, STATUS_ICON_WIDTH, STATUS_ICON_HEIGHT, "Perform Extra Host Actions", "Perform Extra Host Actions");
  1532                                  printf("<IMG SRC='%s%s' border=0 WIDTH=%d HEIGHT=%d ALT='%s' TITLE='%s'>", url_images_path, ACTION_ICON, STATUS_ICON_WIDTH, STATUS_ICON_HEIGHT, "Perform Extra Service Actions", "Perform Extra Service Actions");
  1893                                  printf("<IMG SRC='%s%s' border=0 WIDTH=%d HEIGHT=%d ALT='%s' TITLE='%s'>", url_images_path, ACTION_ICON, STATUS_ICON_WIDTH, STATUS_ICON_HEIGHT, "Perform Extra Host Actions", "Perform Extra Host Actions");
  2766                          printf("<IMG SRC='%s%s' border=0 WIDTH=%d HEIGHT=%d ALT='%s' TITLE='%s'>", url_images_path, ACTION_ICON, STATUS_ICON_WIDTH, STATUS_ICON_HEIGHT, "Perform Extra Host Actions", "Perform Extra Host Actions");
  2992                  printf("<IMG SRC='%s%s' border=0 WIDTH=%d HEIGHT=%d ALT='%s' TITLE='%s'>", url_images_path, ACTION_ICON, STATUS_ICON_WIDTH, STATUS_ICON_HEIGHT, "Perform Extra Host Actions", "Perform Extra Host Actions");
  3698                          printf("<IMG SRC='%s%s' border=0 WIDTH=%d HEIGHT=%d ALT='%s' TITLE='%s'>", url_images_path, ACTION_ICON, STATUS_ICON_WIDTH, STATUS_ICON_HEIGHT, "Perform Extra Host Actions", "Perform Extra Host Actions");
As an example, the below shows how line 1440 would need to be modified in order to remove the ALT tag.

Code: Select all

  1440                                          printf("<IMG SRC='%s%s' border=0 WIDTH=%d HEIGHT=%d TITLE='%s'>", url_images_path, ACTION_ICON, STATUS_ICON_WIDTH, STATUS_ICON_HEIGHT, "Perform Extra Host Actions");
Former Nagios Employee
crizzo99
Posts: 3
Joined: Fri Jul 08, 2016 9:10 am

Re: Tool Tips

Post by crizzo99 »

Ouch!!!

But thank you for the insight!
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Tool Tips

Post by rkennedy »

Since it's all compiled, it's the only route to go. Once you make the changes it shouldn't be too difficult to recompile.

Are we good to mark this thread as resolved?
Former Nagios Employee
Locked