Page 1 of 1

Tool Tips

Posted: Fri Jul 08, 2016 9:40 am
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

Re: Tool Tips

Posted: Fri Jul 08, 2016 10:54 am
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?

Re: Tool Tips

Posted: Tue Jul 12, 2016 7:28 am
by crizzo99
Sorry for the delay...long weekend. Attached you will find the screenshot you requested.
nagios.jpg

Re: Tool Tips

Posted: Tue Jul 12, 2016 12:40 pm
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");

Re: Tool Tips

Posted: Wed Jul 13, 2016 7:31 am
by crizzo99
Ouch!!!

But thank you for the insight!

Re: Tool Tips

Posted: Wed Jul 13, 2016 10:09 am
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?