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

bind user agent script is extremely slow

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Major
    • None
    • None
    • Unix Agent
    • virtualmachine that started off life as turnkey-observium but has since been migrated to svn.

    Description

      unix-agent ships with a local bash script called "bind" which parses the rndc stats output for pretty reporting.

      After adding some new zones (to blackhole malware), the bash script is taking an age to parse the stats file which means running the agent can take upwards of a minute to complete it's run.
      Admittedly I have added >14,000 zones in an attempt to protect users from known malware domains, however bind itself seems to deal with this just fine.

      #time /usr/bin/observium_agent
      real 0m38.804s
      user 0m2.508s
      sys 0m2.546s

      #time /usr/lib/observium_agent/local/bind
      real 0m41.357s
      user 0m2.968s
      sys 0m2.687s

      1. time rndc stats
        real 0m0.021s
        user 0m0.001s
        sys 0m0.001

      I have noticed that Chris started writing a perl based agent (http://jira.observium.org/browse/OBSERVIUM-250) which seems far faster to deal with the parsing, though I've yet to apply the patch to observium.
      I'd like to push for this making it into the main release due to the speedup reasons.

      1. time perl bind-observium-250
        real 0m0.044s
        user 0m0.019s
        sys 0m0.008s

      Attachments

        Activity

          People

            adama Adam Armstrong
            BuildTheRobots Dan F
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: