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
Tool Tips
Re: Tool Tips
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
Re: Tool Tips
Sorry for the delay...long weekend. Attached you will find the screenshot you requested.
Re: Tool Tips
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 -
As an example, the below shows how line 1440 would need to be modified in order to remove the ALT tag.
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");
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
Re: Tool Tips
Ouch!!!
But thank you for the insight!
But thank you for the insight!
Re: Tool Tips
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?
Are we good to mark this thread as resolved?
Former Nagios Employee