Ad Widget

Collapse

PATCH: Vertical hostnames in overview page

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • cameronsto
    Senior Member
    • Oct 2005
    • 148

    #1

    PATCH: Vertical hostnames in overview page

    I took the instructinos from this thread and made a patch to apply the same changes.

    Here's a screenshot of the patch in action.

    Unfortunately this only works in IE.

    Great job primos. Looks awesome

    -cameron
    Attached Files
  • axel
    Member
    • Aug 2005
    • 36

    #2
    HI and thx

    Can you give me an Example.

    I get the following errors

    pc-52:/var/www# patch -i vertical_header_overview.diff.txt
    can't find file to patch at input line 4
    Perhaps you should have used the -p or --strip option?
    The text leading up to this was:
    --------------------------
    |diff -urN zabbix11beta6/css.css zabbix_new/css.css
    |--- zabbix11beta6/css.css 2006-01-27 09:51:37.000000000 -0500
    |+++ zabbix_new/css.css 2006-01-31 09:14:23.000000000 -0500
    --------------------------
    File to patch:

    Comment

    • Alexei
      Founder, CEO
      Zabbix Certified Trainer
      Zabbix Certified SpecialistZabbix Certified Professional
      • Sep 2004
      • 5654

      #3
      Can this be implemented for Mozilla somehow? Is it something non-standard?
      Alexei Vladishev
      Creator of Zabbix, Product manager
      New York | Tokyo | Riga
      My Twitter

      Comment

      • edeus
        Senior Member
        • Aug 2005
        • 120

        #4
        I would be happy with GD library generated images acting as the headers. Easy to implement and then you could get some nice alert effects on the image as well.

        Comment

        • Wolfgang
          Senior Member
          Zabbix Certified Trainer
          Zabbix Certified Specialist
          • Apr 2005
          • 116

          #5
          Originally posted by Alexei
          Can this be implemented for Mozilla somehow? Is it something non-standard?
          I am not an css expert. But it seems that the filter being used in the Stylesheet is not available in Mozilla or Firefox.

          So if this should be implemented and work with browers other than Internet Explorer, then one way to go might be to render on the server as stated by edeus.
          http://www.intellitrend.de
          Specialised in monitoring large environments and Zabbix API programming.

          Comment

          • cameronsto
            Senior Member
            • Oct 2005
            • 148

            #6
            This is correct. The CSS attribute that is used is non-standard and IE specific. I've been out of town for the last week so I haven't looked into this further, but I'll see what I can come up with for using the PHP-GD library to make the names.

            -cameron
            Last edited by cameronsto; 14-02-2006, 18:15.

            Comment

            • bytesize
              Member
              • Aug 2005
              • 71

              #7
              Hi,

              Please can this patch be updated for beta7 - I'm desperate to get vertical hostnames back!

              Thanks!

              John

              Comment

              • cameronsto
                Senior Member
                • Oct 2005
                • 148

                #8
                Here's an updated patch. DISCLAIMER: I have not tested this. I don't have a 1.1beta7 installation so I'm just working with the source and haven't actually put this patch in place and seen the results. If anyone is brave enough to try this please post back and let everyone else know. The changes are minimal so the only possible impact will be a messed up overview page until you fix it.

                I've attached the patch and also an UNDO patch in case this breaks things.

                -cameron

                Note: removed patch file since it didn't work.
                Last edited by cameronsto; 11-03-2006, 20:41.

                Comment

                • cameronsto
                  Senior Member
                  • Oct 2005
                  • 148

                  #9
                  The previous patch didn't seem to work because the necessary css styles can't be applied to a row, only a cell or span. The attached patch here should apply it as a span.

                  -cameron
                  Attached Files

                  Comment

                  • bytesize
                    Member
                    • Aug 2005
                    • 71

                    #10
                    Hi Cameron,

                    Success - it works!! I have modified the patch slightly to enable a few more tweaks:

                    - Changed line format of diff file to Unix
                    - Removed hosts array line from overview.php (caused duplication of headers)
                    - Added vertical-align: bottom; to the css.css file to align headers
                    - Changed ' to " in the span class

                    I have attached the patch to this post. Many, many thanks Cameron - without your help I would never have got this to work!

                    Thanks!

                    John
                    Attached Files

                    Comment

                    Working...