BBMap changes

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

BBMap changes

Post by BanditBBS »

I know, I know, you hate me customizing the code, but the BBMap forcing vertical text change has really screwed me here. I kind of like it myself, but I have users screaming because some of my long service names are being cut off and it is also causing MUCH more screen to be taken up by the same BBMaps used before.

I could fix one of those issues if I just changed the service name table cells be auto height. I can handle php and html, but throw css into the mix and I'm a lost puppy. Can anyone assist with what I'd need to change in bbmap.css or bbmap.inc.php to make the services auto height? Some services are short also, causing extra space to be consumed by the bbmap.

Thanks!
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: BBMap changes

Post by tmcdonald »

Can you post a screenshot of what you're seeing? By "auto-height" do you mean the top header cells?
Former Nagios employee
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: BBMap changes

Post by BanditBBS »

This is a customer's dashboard. The center top bbmap could be shorter and the lower right one needs to be taller. That'd solve the one complaint, but then the empty white space I'll just have to tell them to deal with it.
Capture.PNG
You do not have the required permissions to view the files attached to this post.
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: BBMap changes

Post by tmcdonald »

I played around with the CSS a bit but we use a (to my knowledge) non-standard CSS rule to get the text rotated like that, so standard CSS rules for width and whatnot might not apply, or else I am just doing it wrong. I think this will need to go to the devs. I'll doc it up.

Edit: Bug ID 6778, recommended to auto-adjust height. It's also worth noting that you can hover over the name to get the full thing if it is cut off.
Former Nagios employee
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: BBMap changes

Post by BanditBBS »

I just noticed an updated BBMap component that wasn't available yesterday morning. I installed but no change, any idea what changed?
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: BBMap changes

Post by ssax »

Here is a diff:

Code: Select all

c:\Users\ssax\Downloads>diff -bur component-bbmap/bbmap bbmap
diff -bur component-bbmap/bbmap\bbmap.inc.php bbmap\bbmap.inc.php
--- component-bbmap/bbmap\bbmap.inc.php Fri Oct 02 13:46:33 2015
+++ bbmap\bbmap.inc.php Thu Oct 29 15:02:50 2015
@@ -28,7 +28,7 @@

     $args = array(
         COMPONENT_NAME => $bbmap_component_name,
-        COMPONENT_VERSION => '1.1.3',
+        COMPONENT_VERSION => '1.1.4',
         COMPONENT_AUTHOR => "Nagios Enterprises, LLC",
         COMPONENT_DESCRIPTION => _("Displays a grid-like view of host and service status. ") . $desc,

         COMPONENT_TITLE => "BBMap"
@@ -405,6 +405,6 @@

 function bbmap_get_service_title($s)
 {
-    $title = "<div class='bbmapverticaltext' title='$s'>$s</div>";
+    $title = "<div class='bbmapverticaltext tt-bind-d' title='$s'>$s</div>";
     return $title;
 }          


Looks like they just added the tt-bind-d class to the title.
Locked