Ad Widget

Collapse

Vertical hostnames in Overview page

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bytesize
    Member
    • Aug 2005
    • 71

    #1

    Vertical hostnames in Overview page

    Hi,

    Please could someone post a workaround in order to get the hostnames to be listed vertically on the overview page?

    I really, really need this option because I have a large number of hosts and after around 7 hosts are added to a group I have to scroll in order to see the full overview page.

    I managed to get this working in beta6 (see the cookbook forum) but the code has changed significantly in beta7 and now I can't get it to work!

    Thanks!

    John
  • edeus
    Senior Member
    • Aug 2005
    • 120

    #2
    Why wasnt this included in beta7?

    Comment

    • sauron
      Senior Member
      • Jan 2005
      • 215

      #3
      This feathure work only Internet Explorer. But when use FF or Opera it's not work. Why devolopers need include this ugly feathure ?

      Comment

      • bytesize
        Member
        • Aug 2005
        • 71

        #4
        It could be argued that the way hosts with long hostnames are displayed at the moment is ugly! How many websites do you visit where you have to scroll sideways in order to see the whole of the page?

        If the problem is that it doesn't work in FF or Opera, then perhaps the solution isn't to use CSS, but to use GD as someone mentioned before.

        Either way, this is a feature which I'm sure other people also need so could it be included in the next beta?

        Thanks!

        John

        Comment

        • edeus
          Senior Member
          • Aug 2005
          • 120

          #5
          It is worth someone writing the GD version, but it is unknown is Alexei would support this.

          I would do this but my coding is unfortunately not professional in the zabbix format.

          Comment

          • bytesize
            Member
            • Aug 2005
            • 71

            #6
            I have the same problem; I implemented a patch for IE on Beta5 because I could understand how the PHP code was working, but now the code has changed and I don't know how to get it to work! I can't go back to beta5 because I really need the last(#) function.

            It would be nice if someone could implement the vertical hostnames for IE using CSS as a patch or option for those who want it.

            Thanks!

            John

            Comment

            • bbrendon
              Senior Member
              • Sep 2005
              • 870

              #7
              Originally posted by bytesize
              I have the same problem; I implemented a patch for IE on Beta5 because I could understand how the PHP code was working, but now the code has changed and I don't know how to get it to work! I can't go back to beta5 because I really need the last(#) function.
              I think I see your dillema. the tables are done with a class which makes it a little more difficult to just hack in a solution. Hmmmm
              Unofficial Zabbix Expert
              Blog, Corporate Site

              Comment

              • bytesize
                Member
                • Aug 2005
                • 71

                #8
                Yep, thats exactly my dilemma! Can anybody help me out?

                Comment

                • cameronsto
                  Senior Member
                  • Oct 2005
                  • 148

                  #9
                  I've posted a patch for 1.1beta7 here. As I said in my post there, I have not tested this so I'm not 100% positive it works, but it should.

                  -cameron

                  Comment

                  • bytesize
                    Member
                    • Aug 2005
                    • 71

                    #10
                    Hi Cameron,

                    Thanks a million for updating the patch, but...!

                    The patch works great, I now have the extra class being added to the tr when creating the header:

                    Code:
                    <table class="tborder" cellspacing="1" cellpadding="3">
                    <tr class="table_header_vertical">
                    <td>
                    ...and the class is definately being applied to the header cells, because if I change the formatting (for example, the text colour) then the change is applied.

                    The problem is that the text still isn't vertical - its horizontal. I tried setting the following in the css.css file as a test:

                    Code:
                    tr.table_header_vertical
                    {
                    width: 1px;
                    writing-mode: tb-rl;
                    filter: flipv() fliph();
                    }
                    ...but still no vertical text. This is exactly the same css code which was used in the old patch. Perhaps the writing-mode and filter tags aren't valid within a TR class context? I have spent a few hours Googling but not been able to shed any light. I think the writing-mode and filter tags may have to be within SPAN tags, but I don't know how this could be done using the classes in Zabbix beta7?

                    Any ideas?

                    Thanks!

                    John

                    Comment

                    • cameronsto
                      Senior Member
                      • Oct 2005
                      • 148

                      #11
                      Originally posted by bytesize
                      Perhaps the writing-mode and filter tags aren't valid within a TR class context?
                      This looks to be the case. Just did a quick test outside of Zabbix and when I apply those styles to a table cell it works fine, but when applied to a table row it doesn't work.

                      I've added another patch to the other thread that I think will do it. Instead of just passing the host name as a header I append the span tag to it before passing. I'm thinking this should work. Same disclaimer applies as before though!

                      -cameron

                      Comment

                      • bytesize
                        Member
                        • Aug 2005
                        • 71

                        #12
                        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 the post in the patches forum. Many, many thanks Cameron - without your help I would never have got this to work!

                        Thanks!

                        John

                        Comment

                        Working...