Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Dpinger Gateway Monitor

    Traffic Monitoring
    2
    4
    288
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • F
      FrankZappa
      last edited by

      I just found out that dennypage is the author/creator of dpinger (amongst his numerous other skills e.g. NUT) So this is a question for dennypage (or anyone who knows how to edit scripts, which I do not).

      Is there any way to get rid of the blue block on the Gateway monitor?
      f3c38fc1-4cdc-49c0-9225-112b36106796-image.png

      I was hoping to have the output "Online" in green letters with no background blue block. Not sure if dennypage has other colors with different outputs e.g. "Offline" in red letters.

      I know, this is all looks vs function, but I thought it would look much nicer.

      Thanks

      dennypageD 1 Reply Last reply Reply Quote 0
      • dennypageD
        dennypage @FrankZappa
        last edited by

        @FrankZappa Sorry, didn't see your post earlier.

        While I am the author of dpinger, I did not write the supporting PHP code that displays the status. That PHP code actually predates dpinger.

        Looking at the file /usr/local/www/status_gateways.php, there is no simple option to turn it off. However, the color and style should be coming from the webConfigurator theme defined in System / General Setup.

        Probably the easiest thing to do would be to copy one of the existing CSS files in /usr/local/www/css/ and then modify it to your taste. I can't guide you much there... I'm even less of a CSS guy than a PHP guy. 😊

        F 1 Reply Last reply Reply Quote 1
        • F
          FrankZappa @dennypage
          last edited by FrankZappa

          @dennypage Thanks. I'll play around with it. Hopefully, I dont break anything (which I'm prone to do) 😬

          F 1 Reply Last reply Reply Quote 0
          • F
            FrankZappa @FrankZappa
            last edited by FrankZappa

            @FrankZappa Dennypage, thanks for the advice. I was able to edit the CSS file you referenced above and changed the color from the ugly blue (#009688) to a nicer green (#33EF0E). What I would really like to do is get rid of the colored box and just have the color of the letters coded e.g. online = green letters and offline = red letters.

            Anyway, for those of you interested in changing the color on the blue box in pfSense dark theme (which is probably just me), you need to edit lines 178, 337, and 343 in /usr/local/www/css/pfSense-dark.css. If you use a different theme, you will not have the same line numbers and it may be a different color on your Gateway widget. Change the background-color to whatever CSS code color you'd like (https://www.quackit.com/css/css_color_codes.cfm).

            I will play around with the CSS code to see if I can get rid of the box completely.

            Many thanks to dennypage.

            71c64a10-60d0-4a12-9292-bf4b966f04d4-image.png

            1 Reply Last reply Reply Quote 1
            • First post
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.