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

Improved Smokeping integration (solution is working)

Details

    • Improvement
    • Resolution: Done
    • Trivial
    • None
    • None
    • Web Interface

    Description

      Reading through the mailing list, I've found that there are some problems with prsing Smokeping RRDs.
      I've attached screenshot of my result in parsing the Smokeping RRDs. Actually, I have only algorithm now, not the PHP code to implement that. I can try to do PHP page, but it'll be rahter hard - programming is not my primary job

      Attachments

        1. from_smokepings_web.png
          from_smokepings_web.png
          32 kB
        2. latency.inc.php.patch
          0.5 kB
        3. rrd_command_smokeping.txt
          3 kB
        4. smokeping_all_common_det.inc.php
          4 kB
        5. smokeping_detailed_tab.png
          smokeping_detailed_tab.png
          127 kB
        6. smokeping_in_all_det.inc.php
          0.2 kB
        7. smokeping_out_all_det.inc.php
          0.2 kB
        8. Smokeping_parsed.png
          Smokeping_parsed.png
          36 kB
        9. smokeping_tab.png
          smokeping_tab.png
          138 kB
        10. steps_to_create_rrd_smokeping.txt
          1 kB

        Activity

          [OBS-1075] Improved Smokeping integration (solution is working)

          Hi!

          This one can be closed, obsoleted by OBSERVIUM-1257.

          j-v-c Sergei Fomin added a comment - Hi! This one can be closed, obsoleted by OBSERVIUM-1257 .

          config.php.patch doesn't want to load Here are it's contents:

          $config['smokeping']['loss_color'] = array('55FF00', '00FFD5', '00D5FF', '00AAFF', '0080FF', '0055FF', '0000FF', '8000FF', 'D400FF', 'FF00D4', 'FF0080', 'FF0000');
          $config['smokeping']['loss_value'] = array(0, 2, 4, 6, 8, 10, 15, 20, 25, 40, 50, 100);

          j-v-c Sergei Fomin added a comment - config.php.patch doesn't want to load Here are it's contents: $config ['smokeping'] ['loss_color'] = array('55FF00', '00FFD5', '00D5FF', '00AAFF', '0080FF', '0055FF', '0000FF', '8000FF', 'D400FF', 'FF00D4', 'FF0080', 'FF0000'); $config ['smokeping'] ['loss_value'] = array(0, 2, 4, 6, 8, 10, 15, 20, 25, 40, 50, 100);

          Finally, I've done it Smokeping loss is now being visualized inside Observium.
          My approach was to create `Detailed` graphs in addition to `Average` and `Aggregate`. This required to modify^
          html/pages/device/latency.inc.php (diff in the attachment)
          config.php and defaults.inc.php (options in the attachment)
          and to create:
          html/includes/graphs/device/smokeping_all_common_det.inc.php
          html/includes/graphs/device/smokeping_in_all_det.inc.php
          html/includes/graphs/device/smokeping_out_all_det.inc.php
          (all in the attachment)

          There are things, that are not done until now:

          • autosensing of ping_count in Smokeping's rrds. I propose this to be extracted exact from the rrrd files with `rrdtool dump` during device discovery and written to the DB in a new table;
          • ability to graph rrds from several Smokeping servers. I propose to insert new config options with something like ['smokeping']['dir'][] and ['smokeping']['server_name'][] to be used in config.php for that.

          If that proposals are ok, I'll try to implement this

          j-v-c Sergei Fomin added a comment - Finally, I've done it Smokeping loss is now being visualized inside Observium. My approach was to create `Detailed` graphs in addition to `Average` and `Aggregate`. This required to modify^ html/pages/device/latency.inc.php (diff in the attachment) config.php and defaults.inc.php (options in the attachment) and to create: html/includes/graphs/device/smokeping_all_common_det.inc.php html/includes/graphs/device/smokeping_in_all_det.inc.php html/includes/graphs/device/smokeping_out_all_det.inc.php (all in the attachment) There are things, that are not done until now: autosensing of ping_count in Smokeping's rrds. I propose this to be extracted exact from the rrrd files with `rrdtool dump` during device discovery and written to the DB in a new table; ability to graph rrds from several Smokeping servers. I propose to insert new config options with something like ['smokeping'] ['dir'] [] and ['smokeping'] ['server_name'] [] to be used in config.php for that. If that proposals are ok, I'll try to implement this

          Both RRD command and steps to create this command are in the attachment.

          j-v-c Sergei Fomin added a comment - Both RRD command and steps to create this command are in the attachment.

          And where your "algorithm" or patch?

          landy Mike Stupalov added a comment - And where your "algorithm" or patch?

          People

            adama Adam Armstrong
            j-v-c Sergei Fomin
            Votes:
            3 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: