identify web server

Hi, we are running HCO advanced enterprise 2024.2.1, and I am adding two web servers behind a load balancer with our MPE. I am looking for a simple way on the login screen to identify the server a user is connecting to. I have searched THWACK, and found a couple of feature requests from over a year ago, and then a similar question answered many years ago. I tried to follow the older solution, but it seems the structure is very different now. Has anyone been able to add an identity to each of the web servers? Any help is appreciated.

thanks

Parents
  • I think I may have found a solution that could work for this by adapting this old tutorial I've used in the past: HERE

    The actual post itself is pretty dated, so here is a list of steps I took to achieve the desired outcome:

    Step 1: Create "foo.js"

    On each web server, create a file called "foo.js" (or whatever you want, really)

    Inside of the file, paste this code (update to include the individual sever name):

    document.addEventListener('DOMContentLoaded'),function(){
    setTimeout(function(){
    document.getElementById("footer").innerHTML += ' Server: {SERVER_NAME}';
    }, 3000);
    }, false);

    Step 2: Copy "foo.js" to the OrionMinReqs.js Directory

    In my lab, the path was here:

     

    C:\Program Files\SolarWinds\Orion\Web\Orion\js\OrionMinReqs.js

    ...and that was it. Once I did a Shift+F5 to reload the page, I saw the updated HTML in the footer:

    A few notes:

    I had originally followed the linked tutorial and updated the bundler.config, but I was running some tests and I didn't seem to need to do this anymore. YMMV.

    I only tested on a single server lab that I set up specifically for this, so I can't guarantee 100% that it'll work with multiple WFE's, or that the juice will be worth the squeeze, but this should give a solid starting point if you want to test it out. I'd recommend trying in a lab environment first and nailing down the process since I had limited time to try out different steps or scenarios. I also can't guarantee it'll show up on every page. From limited testing, it doesn't show up on a lot of the newer UI pages, like Modern Dashboards, etc. You'd have to tweak the "foo.js" file to look for a different div element most likely.

  • hi   thank you for your response and updates. I gave this a try and am not so lucky that it would work on the first try. I created the foo.js file and copied what you have above. In the quotes for server I replaced {server name} with my servers name. I found the path for OrionMinReqs.js folder and copied the foo file. When I refresh the dashboard I am on at the time it will not complete loading and the footer does not show server name from foo. If I remove foo and refresh again the page completes loading. I checked for typos, and even tried adding foo to the bundler.config as one of the files, as the one in this directory had an entry for each file in the folder. This did not make a difference and page would not fully load. 

    I do not have a lab environment yet, on the todo list, but my web servers are new with no users connecting to them yet. Gives me some freedom to try anything. I will try again, maybe a third time will be the charm. 

    Thanks, Steve

Reply
  • hi   thank you for your response and updates. I gave this a try and am not so lucky that it would work on the first try. I created the foo.js file and copied what you have above. In the quotes for server I replaced {server name} with my servers name. I found the path for OrionMinReqs.js folder and copied the foo file. When I refresh the dashboard I am on at the time it will not complete loading and the footer does not show server name from foo. If I remove foo and refresh again the page completes loading. I checked for typos, and even tried adding foo to the bundler.config as one of the files, as the one in this directory had an entry for each file in the folder. This did not make a difference and page would not fully load. 

    I do not have a lab environment yet, on the todo list, but my web servers are new with no users connecting to them yet. Gives me some freedom to try anything. I will try again, maybe a third time will be the charm. 

    Thanks, Steve

Children
No Data