Resource Type: nimsoft_dirscan

Defined in:
lib/puppet/type/nimsoft_dirscan.rb
Providers:
nimsoft

Overview

The ‘dirscan` probe can be used to the number of files in a directory or the size of files. The `nimsoft_dirscan` type can be used to configure a profile for the `dirscan` probe.

Example:

nimsoft_dirscan { 'Oracle alertlog size':
  ensure      => present,
  active      => yes,
  description => 'monitors the alertlog of oracle instance PROD',
  directory   => '/u01/app/oracle/diag/rdbms/prod/PROD/trace',
  pattern     => 'alert_PROD.log',
  recurse     => no,
  direxists   => yes,
  size        => '< 50M'
  size_type   => individual
}

Properties

  • active

    Described if the profile is active. Can be either ‘yes` or `no`

    Supported values:
    • yes
    • no
  • description

    A short description about the profile

  • directory
  • direxists

    Should an alarm be triggered if the directory does not exist?. Can be either ‘yes` or `no`

    Supported values:
    • yes
    • no
  • direxists_action

    A command that should be executed if the directory does not exist

  • ensure (defaults to: present)

    The basic property that the resource should be in.

    Supported values:
    • present
    • absent
  • nofiles

    Describes the expected number of files. Can be of the form ‘> 10`, `< 5`, `<= 3`, `>= 3`, or `= 10`

  • nofiles_action

    A command to run when the number of files do not match

  • pattern

    The pattern can be a single filename or a regular expression to match multiple files

  • recurse
    Supported values:
    • yes
    • no
  • size

    The expected size of a file. Can be of the form ‘> 10M`, `< 20K`, `>= 6G`, `3M`

  • size_action

    The command to run when the size does not match

  • size_type

    Specifies if the expected size should be considered for individual files, the smallest file or the largest file

    Supported values:
    • individual
    • smallest
    • largest

Parameters

  • name (namevar)

    name of the profile

  • provider

    The specific backend to use for this ‘nimsoft_dirscan` resource. You will seldom need to specify this — Puppet will usually discover the appropriate provider for your platform.