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.

  • After many tries on both of my web servers I am unable to get Foo.js to add my server name to the footer.  While poking around I found the login screen background image file called pattern-login-screen located here E:\Program Files\SolarWinds\Orion\Web\Orion\images\Login. I was able to add the server name text into the image, and now the background displays the server name repeatedly as part of the wallpaper, but at least it is there. It is not the best solution, but it works, and chances are nobody but me will notice until I ask during troubleshooting. I appreciate all the input and help. thanks, Steve

Reply
  • After many tries on both of my web servers I am unable to get Foo.js to add my server name to the footer.  While poking around I found the login screen background image file called pattern-login-screen located here E:\Program Files\SolarWinds\Orion\Web\Orion\images\Login. I was able to add the server name text into the image, and now the background displays the server name repeatedly as part of the wallpaper, but at least it is there. It is not the best solution, but it works, and chances are nobody but me will notice until I ask during troubleshooting. I appreciate all the input and help. thanks, Steve

Children
No Data