Ad Widget

Collapse

PATCH : make overview usefull again

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ghoz
    Senior Member
    • May 2011
    • 204

    #1

    PATCH : make overview usefull again

    Do you remember when you started using zabbix, and the overview screen was nice and clean with all the relevant info for your 2 test servers ?

    Are you , like me, adding more and mode items, triggers and hosts ?

    Your overview is getting bigger and completely unuseable.

    Maybe you'd like get back a useful overview again...

    Here is my small contribution .

    This patch is made against 1.8.5 it adds the ability to filter by application the overview page for data and triggers, and works at the screens level.

    Known limitations :
    * there is no '- other -' application filter for items and triger with no application. you have to pick 'all' applicaitons to be able to see those...
    * this has only been tested on my setup .
    * This is as usual provided 'as is'

    enjoy ...
    Attached Files
    Last edited by ghoz; 23-08-2011, 10:07.
  • richlv
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Oct 2005
    • 3112

    #2
    seems to be relevant for feature request https://support.zabbix.com/browse/ZBXNEXT-484
    Zabbix 3.0 Network Monitoring book

    Comment

    • ghoz
      Senior Member
      • May 2011
      • 204

      #3
      thanks, I wasn't able to find this feateure request, and was about to create a dupe ...

      Comment

      • cferraro
        Junior Member
        • Jun 2011
        • 16

        #4
        This is a great feature. I've got it working in 1.8.6.

        Extending this to the Data Overview in Screens would be helpful too.

        Thanks for the great work.

        Comment

        • ghoz
          Senior Member
          • May 2011
          • 204

          #5
          Thanks.

          It already works in the screens...
          when you create your screen, for data and trigger overviews, the patch is supposed to add an "Application" filter.


          Ghoz

          Comment

          • dougbee
            Member
            • Apr 2011
            • 68

            #6
            Is there any chance of getting this patch for 1.8.9? Looks very useful!

            Comment

            • ghoz
              Senior Member
              • May 2011
              • 204

              #7
              Here is a version that was made for 1.8.7,
              I just tested patching 1.8.9, it seems to apply correctly...
              Attached Files

              Comment

              • dougbee
                Member
                • Apr 2011
                • 68

                #8
                Yes, the 1.8.7 patch worked nicely against 1.8.9. Thanks very much!

                Comment

                • cferraro
                  Junior Member
                  • Jun 2011
                  • 16

                  #9
                  Awesome work!

                  Got this working in 1.8.9. Works in both screens and overview.

                  Voted up the feature request too. This is an extremely valuable addition to the UI.

                  Thanks

                  Comment

                  • linuxgurugamer
                    Member
                    • Oct 2010
                    • 66

                    #10
                    Working well in 1.8.11


                    Thank You!

                    Comment

                    • aladenov
                      Junior Member
                      • May 2012
                      • 8

                      #11
                      Can we get this for 2.0.0? Was just talking to someone about how useful this would be.

                      Comment

                      • ghoz
                        Senior Member
                        • May 2011
                        • 204

                        #12
                        I'm still running on 1.8, so no cookie for now...
                        I guess I'll have an updated patch in the following months when we start our tests and migration ...
                        Last edited by ghoz; 14-06-2012, 19:06.

                        Comment

                        • BrendanG
                          Junior Member
                          • Nov 2006
                          • 18

                          #13
                          Updated patch for 2.0

                          I've updated the patch to 2.0. The patch is based on the 2.0 Branch from SVN revision 28312. Hope it works for others and we can get something like this integrated into Zabbix soon. It really cleans things up (and gives me a reason to utilize applications). Much thanks to ghoz for the original work. Standard disclaimer applies: I've only done limited testing, your experience may vary.
                          Attached Files

                          Comment

                          • linuxgurugamer
                            Member
                            • Oct 2010
                            • 66

                            #14
                            Reversed patch??

                            Originally posted by BrendanG
                            I've updated the patch to 2.0. The patch is based on the 2.0 Branch from SVN revision 28312. Hope it works for others and we can get something like this integrated into Zabbix soon. It really cleans things up (and gives me a reason to utilize applications). Much thanks to ghoz for the original work. Standard disclaimer applies: I've only done limited testing, your experience may vary.
                            I just applied this to a test 2.0 system I have. I got a message that the first part of the patch was possibly a reversed of previously applied:


                            patch -p2 </tmp/zabbix_2.0_overview-by-app.patch
                            patching file overview.php
                            Reversed (or previously applied) patch detected! Assume -R? [n]
                            Apply anyway? [n]
                            Skipping patch.
                            3 out of 3 hunks ignored -- saving rejects to file overview.php.rej
                            patching file include/triggers.inc.php
                            Hunk #1 succeeded at 1437 (offset 45 lines).
                            Hunk #2 succeeded at 1449 (offset 45 lines).
                            patching file include/screens.inc.php
                            Hunk #1 succeeded at 1184 (offset -11 lines).
                            patching file include/items.inc.php
                            patching file include/views/configuration.screen.constructor.edit.php
                            Hunk #1 succeeded at 369 (offset -15 lines).
                            patching file api/classes/CTrigger.php
                            Hunk #1 succeeded at 76 (offset -1 lines).
                            Hunk #2 succeeded at 293 (offset -1 lines).



                            Is it, or did you just make a mistake doing the diff?

                            Thanks

                            Comment

                            • BrendanG
                              Junior Member
                              • Nov 2006
                              • 18

                              #15
                              I could have a mistake, as I am by no means an expert in creating patch files, but it does seem to work for me. FYI, the patch was created via svn diff. To test I just downloaded the current 2.0 release from the website and applied the patch successfully as follows:

                              Code:
                              patch -p0 < ~/zabbix_2.0_overview-by-app.patch 
                              patching file frontends/php/overview.php
                              patching file frontends/php/include/triggers.inc.php
                              Hunk #1 succeeded at 1437 (offset 45 lines).
                              Hunk #2 succeeded at 1449 (offset 45 lines).
                              patching file frontends/php/include/screens.inc.php
                              Hunk #1 succeeded at 1184 (offset -11 lines).
                              patching file frontends/php/include/items.inc.php
                              patching file frontends/php/include/views/configuration.screen.constructor.edit.php
                              Hunk #1 succeeded at 369 (offset -15 lines).
                              patching file frontends/php/api/classes/CTrigger.php
                              Hunk #1 succeeded at 76 (offset -1 lines).
                              Hunk #2 succeeded at 293 (offset -1 lines).

                              Comment

                              Working...