Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Sometimes there is a need to create calculated data using data gathered from several sources and calculated into a single table.  Situations such as this might call for use of a plugin (NMIS 9 Collect and Update Plugins).  The problem comes in when the model tries to interpret the sections in the model when there is lack of data to do so.  This causes errors in the model.  To solve this, there is a keyword. 'placeholder' which can be used in the 'sys' section of the model definition to tell the model that the 'headers', labels, and 'titles' only exist to create the necessary infrastructure for the data, and the some other method will be used to create the values. There really isn't much to this, just the keyword 'placeholder', and the value will be printed in the log to say that the <value> will be used to fill in the data as shown in the example below.

Code Block
      'ciscoNormalizedCPUMem' => {
        'headers' => 'TotalCPUs,MemoryUsedMax,MemoryUsed,MemoryFreeMax,MemoryFree',
        'placeholder' => 'plugin',
        'graphtype' => 'health',
        'indexed' => 'true',
        'snmp' => {
          'TotalCPUs' => {
            'hrNumUsers'title' => 'Number of CPUs'
          },
          'MemoryUsedMax' => {
            'title' => 'Maximum Memory Used'
          },
          'MemoryUsed' => {
	 'placeholder            'title' => 'plugin'Current Memory Used'
          },
     'oid     'MemoryFreeMax' => {
            'title' => 'hrSystemNumUsers',
Maximum Memory Free'
          },
          'MemoryFree' => {
            'optiontitle' => 'nosave',
Current Memory Free'
          },
        },
      },