Uploaded image for project: 'Observium'
  1. Observium
  2. OBS-358

Broken img link in the accurate graphs, transfer graphs, hystorical graphs pages

Details

    • Bug
    • Resolution: Not A Bug
    • Critical
    • None
    • None
    • Billing, Web Interface
    •  12.04.2 LTS on a VMWare based VPS

    Description

      I have two systems running observium one in our own production and the the other one is a clean install which I freshly installed for one of our clients.

      after a update we noticed that the images are not working properly. When I viewed this page the first there was a notice about JPGraph to be installed. So I installed JPGraph like instructed and deleted the theme lines in jpg-config.php, still the same result.

      we noticed that the images on our production system on the pages below:

      See images attached.

      When I add the &debug=1 parameter to the url I saw a jpgrapgh message, JpGraph Error: 25082 Illegal sizes specified for width or height when creating an image, (width=0, height=0)

      Looking is my logs I found:
      PHP Warning: Division by zero in /opt/observium/html/pages/bill/infoboxes.inc.php on line 27, referer: http://xxx.yyy.zzz.xxx/bill/bill_id=1/view=accurate/tab=monthly/&debug=1

      looking into the code of that file it doesn't make really sense what I am looking for, since lines 27 tells me something about calculating the % used ....

      Attachments

        1. accurateview.png
          accurateview.png
          191 kB
        2. history.png
          history.png
          178 kB
        3. transfer.png
          transfer.png
          126 kB

        Issue Links

          Activity

            [OBS-358] Broken img link in the accurate graphs, transfer graphs, hystorical graphs pages

            fixed by Adam Armstrong: failure due to a setting missing

            Hi,

            It works now. It seems that jpgraph breaks if it doesn't have a
            SUPERSAMPLING_SCALE defined.

            adam.

            bartus Bart Teunis added a comment - fixed by Adam Armstrong: failure due to a setting missing Hi, It works now. It seems that jpgraph breaks if it doesn't have a SUPERSAMPLING_SCALE defined. adam.

            Hi Dennis,

            still facing these issues ... with the debug = 1 this shows up

            http://178.249.153.24/bandwidth-graph.php?bill_id=1&type=historical&x=1050&y=250&debug=1

            SELECT username,password FROM `users` WHERE `username`= 'admin'SELECT `level` FROM `users` WHERE `username` = 'admin'SELECT `user_id` FROM `users` WHERE `username` = 'admin'SELECT * FROM devices_perms WHERE user_id = '1'SELECT * FROM ports_perms WHERE user_id = '1'SELECT * FROM bill_perms WHERE user_id = '1'SELECT * FROM `bill_history` WHERE `bill_id` = '1' ORDER BY `bill_datefrom` DESC LIMIT 12JpGraph Error: 25082 Illegal sizes specified for width or height when creating an image, (width=0, height=0)

            Looks like the query is not getting any input !

            bartus Bart Teunis added a comment - Hi Dennis, still facing these issues ... with the debug = 1 this shows up http://178.249.153.24/bandwidth-graph.php?bill_id=1&type=historical&x=1050&y=250&debug=1 SELECT username,password FROM `users` WHERE `username`= 'admin'SELECT `level` FROM `users` WHERE `username` = 'admin'SELECT `user_id` FROM `users` WHERE `username` = 'admin'SELECT * FROM devices_perms WHERE user_id = '1'SELECT * FROM ports_perms WHERE user_id = '1'SELECT * FROM bill_perms WHERE user_id = '1'SELECT * FROM `bill_history` WHERE `bill_id` = '1' ORDER BY `bill_datefrom` DESC LIMIT 12JpGraph Error: 25082 Illegal sizes specified for width or height when creating an image, (width=0, height=0) Looks like the query is not getting any input !

            Do you still have that problem with the graphs, as i was not able to reproduce this.

            PS: That php warning has nothing to do with this error, and has no effect what so ever because its a warning and not a error .

            codekiller Dennis de Houx added a comment - Do you still have that problem with the graphs, as i was not able to reproduce this. PS: That php warning has nothing to do with this error, and has no effect what so ever because its a warning and not a error .

            If there is more output needed please let me know more then happy to supply it ...

            bartus Bart Teunis added a comment - If there is more output needed please let me know more then happy to supply it ...

            People

              codekiller Dennis de Houx
              bartus Bart Teunis
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: