Class ::rrd::Plugin

::rrd::Plugin[i] create ... \
           [ -durations (default " "5 min" "2 days" "30 min" "9 days" "2 hours" "45 days" "1 day" "450 days" ") ] \
           [ -name name ] \
           [ -rrdPath rrdPath ] \
           [ -rrdRoot (default "/var/lib/munin/localdomain/localhost.localdomain") ] \
           [ -type (default "DERIVE") ] \
           [ -vars vars ]

Defined in packages/rrd-tool/tcl/rrd-procs.tcl

Class Relations

  • class: ::nx::Class[i]
  • superclass: ::nx::Object[i]
::nx::Class create ::rrd::Plugin \
     -superclass ::nx::Object

Methods (to be applied on the object)

  • update (scripted, public)

     rrd::Plugin[i] update plugins
    Parameters:
    plugins (required)

    Testcases:
    No testcase defined.
    foreach p $plugins {
      if {[info commands $p] eq ""} {
        ns_log warning "::rrd::Plugin: $p is not a command, ignore update"
        continue
      }
      $p update
    }

Methods (to be applied on instances)

  • baseResolution (scripted, public)

     <instance of rrd::Plugin[i]> baseResolution

    Testcases:
    No testcase defined.
    return ${:baseResolution}
  • datasource (scripted, public)

     <instance of rrd::Plugin[i]> datasource varName
    Parameters:
    varName (required)

    Testcases:
    No testcase defined.
    if {[info commands [self]::$varName] ne ""} {
      return [self]::$varName
    } else {
      error "no data source $varName exists for plugin ${:name}"
    }
  • datasources (scripted, public)

     <instance of rrd::Plugin[i]> datasources

    Testcases:
    No testcase defined.
    return [:info children -type ::rrd::DataSource]
  • updateDataSource (scripted, public)

     <instance of rrd::Plugin[i]> updateDataSource varName value
    Parameters:
    varName (required)
    value (required)

    Testcases:
    No testcase defined.
    [self]::$varName update $value