Monitoring-GLPlugin

 view release on metacpan or  search on metacpan

lib/Monitoring/GLPlugin.pm  view on Meta::CPAN

    $path =~ s/:/_/g;
  }
  return $path;
}

sub schimpf {
  my ($self) = @_;
  printf "statefilesdir %s is not writable.\nYou didn't run this plugin as root, didn't you?\n", $self->statefilesdir();
}

# $self->protect_value('1.1-flat_index', 'cpu_busy', 'percent');
sub protect_value {
  my ($self, $ident, $key, $validfunc) = @_;
  if (ref($validfunc) ne "CODE" && $validfunc eq "percent") {
    $validfunc = sub {
      my $value = shift;
      return 0 if ! defined $value;
      return 0 if $value !~ /^[-+]?([0-9]+(\.[0-9]+)?|\.[0-9]+)$/;
      return ($value < 0 || $value > 100) ? 0 : 1;
    };
  } elsif (ref($validfunc) ne "CODE" && $validfunc eq "positive") {

lib/Monitoring/GLPlugin/SNMP/MibsAndOids/CISCOFIREWALLMIB.pm  view on Meta::CPAN

    '5' => 'clean',
    '6' => 'reject',
    '7' => 'saved',
  },
  HardwareStatus => {
    '1' => 'other',
    '2' => 'up',
    '3' => 'down',
    '4' => 'error',
    '5' => 'overTemp',
    '6' => 'busy',
    '7' => 'noMedia',
    '8' => 'backup',
    '9' => 'active',
    '10' => 'standby',
  },
  Hardware => {
    '1' => 'memory',
    '2' => 'disk',
    '3' => 'power',
    '4' => 'netInterface',

lib/Monitoring/GLPlugin/SNMP/MibsAndOids/ENTITYSTATEMIB.pm  view on Meta::CPAN

  EntityOperState => {
    1 => 'unknown',
    2 => 'disabled',
    3 => 'enabled',
    4 => 'testing',
  },
  EntityUsageState => {
    1 => 'unknown',
    2 => 'idle',
    3 => 'active',
    4 => 'busy',
  },
  EntityAlarmStatus => sub {
    my $val = shift;
    # einstweilen wurscht, muss noch genauer angeschaut werden
    my $dec = unpack("B*", $val);
    return {
    0 => 'unknown',
    1 => 'underRepair',
    2 => 'critical',
    3 => 'major',

lib/Monitoring/GLPlugin/SNMP/MibsAndOids/FCEOSMIB.pm  view on Meta::CPAN

    '14' => 'fru-gsmr',
    '15' => 'fru-gxxr',
    '16' => 'fru-fint1',
  },
  'fcEosFruPosition' => '1.3.6.1.4.1.289.2.1.1.2.2.1.1.2',
  'fcEosFruStatus' => '1.3.6.1.4.1.289.2.1.1.2.2.1.1.3',
  'fcEosFruStatusDefinition' => {
    '0' => 'unknown',
    '1' => 'active',
    '2' => 'backup',
    '3' => 'update-busy',
    '4' => 'failed',
  },
  'fcEosFruPartNumber' => '1.3.6.1.4.1.289.2.1.1.2.2.1.1.4',
  'fcEosFruSerialNumber' => '1.3.6.1.4.1.289.2.1.1.2.2.1.1.5',
  'fcEosFruPowerOnHours' => '1.3.6.1.4.1.289.2.1.1.2.2.1.1.6',
  'fcEosFruTestDate' => '1.3.6.1.4.1.289.2.1.1.2.2.1.1.7',
  'fcEosTATable' => '1.3.6.1.4.1.289.2.1.1.2.6.1',
  'fcEosTAEntry' => '1.3.6.1.4.1.289.2.1.1.2.6.1.1',
  'fcEosTAIndex' => '1.3.6.1.4.1.289.2.1.1.2.6.1.1.1',
  'fcEosTAName' => '1.3.6.1.4.1.289.2.1.1.2.6.1.1.2',

lib/Monitoring/GLPlugin/SNMP/MibsAndOids/FOUNDRYSNAGENTMIB.pm  view on Meta::CPAN

    '1' => 'other',
    '2' => 'active',
    '3' => 'standby',
    '4' => 'crashed',
    '5' => 'comingUp',
  },
  snAgReload => {
    '1' => 'other',
    '2' => 'running',
    '3' => 'reset',
    '4' => 'busy',
  },
  snStackFmpSetProcess => {
    '0' => 'normal',
    '1' => 'pending',
    '2' => 'failure',
  },
  snAgSysLogGblClear => {
    '0' => 'normal',
    '1' => 'clearAll',
    '2' => 'clearDynamic',

lib/Monitoring/GLPlugin/SNMP/MibsAndOids/FOUNDRYSNAGENTMIB.pm  view on Meta::CPAN

    '27' => 'downloadToDramFromNMS',
    '28' => 'operationDoneWithNMS',
    '29' => 'tftpWrongFileType',
    '30' => 'downloadToDramFromServerOverwrite',
  },
  snAgConfigFromNVRAM => {
    '1' => 'normal',
    '2' => 'error',
    '3' => 'config',
    '4' => 'configing',
    '5' => 'busy',
  },
  snAgBootSeqRowStatus => {
    '1' => 'other',
    '2' => 'valid',
    '3' => 'delete',
    '4' => 'create',
  },
  snAgentConfigModuleRowStatus => {
    '1' => 'other',
    '2' => 'valid',

lib/Monitoring/GLPlugin/SNMP/MibsAndOids/FOUNDRYSNAGENTMIB.pm  view on Meta::CPAN

  },
  snAgentEnableMgmtModRedunStateChangeTrap => {
    '0' => 'disabled',
    '1' => 'enabled',
  },
  snAgEraseNVRAM => {
    '1' => 'normal',
    '2' => 'error',
    '3' => 'erase',
    '4' => 'erasing',
    '5' => 'busy',
  },
  snAgSysLogGblPersistenceEnable => {
    '0' => 'disabled',
    '1' => 'enabled',
  },
  snAgSysLogBufferCriticalLevel => {
    '1' => 'other',
    '2' => 'alert',
    '3' => 'critical',
    '4' => 'debugging',

lib/Monitoring/GLPlugin/SNMP/MibsAndOids/FOUNDRYSNAGENTMIB.pm  view on Meta::CPAN

    '5' => 'fromPcmciaCard1',
    '6' => 'fromPcmciaCard2',
    '7' => 'fromTftpServer',
    '8' => 'interactively',
  },
  snAgWriteNVRAM => {
    '1' => 'normal',
    '2' => 'error',
    '3' => 'write',
    '4' => 'writing',
    '5' => 'busy',
  },
  snAgentRedunBkupCopyBootCode => {
    '0' => 'disabled',
    '1' => 'enabled',
  },
  snAgTrpRcvrSecurityModel => {
    '1' => 'v1',
    '2' => 'v2c',
    '3' => 'usm',
  },

lib/Monitoring/GLPlugin/SNMP/MibsAndOids/LEXMARKMPSMIB.pm  view on Meta::CPAN

    '4' => 'coverClosed',
    '5' => 'interlockOpen',
    '6' => 'interlockClosed',
    '7' => 'doorOpen',
    '8' => 'doorClosed',
    '9' => 'calibrating',
    '10' => 'alignmentFailed',
    '11' => 'warrantyOverrideRequired',
    '12' => 'printHeadCarrierPathObstructed',
    '13' => 'heldJobsMayNotBeRestored',
    '14' => 'busy',
    '15' => 'waiting',
    '100' => 'subunitErrorOther',
    '101' => 'subunitLifeAlmostOver',
    '102' => 'subunitLifeOver',
    '103' => 'subunitJammed',
    '104' => 'subunitUnderTemperature',
    '105' => 'subunitOverTemperature',
    '106' => 'subunitInsufficientMemory',
    '107' => 'subunitMemoryFull',
    '108' => 'subunitNVFailure',

lib/Monitoring/GLPlugin/SNMP/MibsAndOids/LEXMARKPVTMIB.pm  view on Meta::CPAN

    '2' => 'dhcp',
    '3' => 'bootp',
    '4' => 'rarp',
  },
  lexhdwrPortTableParm8 => {
    '1' => 'npapInactive',
    '2' => 'npapActive',
  },
  prtgenStatusBusy => {
    '1' => 'notBusy',
    '2' => 'busy',
    '3' => 'unknown',
  },
  lexipxTrapType => {
    '1' => 'multiplexed',
    '2' => 'individual',
  },
  lexdhcpDhcpEnable => {
    '1' => 'disabled',
    '2' => 'enabled',
  },

lib/Monitoring/GLPlugin/SNMP/MibsAndOids/OLDCISCOCPUMIB.pm  view on Meta::CPAN

package Monitoring::GLPlugin::SNMP::MibsAndOids::OLDCISCOCPUMIB;

$Monitoring::GLPlugin::SNMP::MibsAndOids::origin->{'OLD-CISCO-CPU-MIB'} = {
  url => '',
  name => 'OLD-CISCO-CPU-MIB',
};

$Monitoring::GLPlugin::SNMP::MibsAndOids::mibs_and_oids->{'OLD-CISCO-CPU-MIB'} = {
  'busyPer' => '1.3.6.1.4.1.9.2.1.56.0',
  'avgBusy1' => '1.3.6.1.4.1.9.2.1.57.0',
  'avgBusy5' => '1.3.6.1.4.1.9.2.1.58.0',
  'idleCount' => '1.3.6.1.4.1.9.2.1.59.0',
  'idleWired' => '1.3.6.1.4.1.9.2.1.60.0',
};


1;

__END__

lib/Monitoring/GLPlugin/SNMP/MibsAndOids/RITTALCMCIIIMIB.pm  view on Meta::CPAN

    '9' => 'lowWarn',
    '10' => 'setOff',
    '11' => 'setOn',
    '12' => 'open',
    '13' => 'closed',
    '14' => 'locked',
    '15' => 'unlRemote',
    '16' => 'doorOpen',
    '17' => 'service',
    '18' => 'standby',
    '19' => 'busy',
    '20' => 'noAccess',
    '21' => 'lost',
    '22' => 'detected',
    '23' => 'lowVoltage',
    '24' => 'probeopen',
    '25' => 'probeshort',
    '26' => 'calibration',
    '27' => 'inactive',
    '28' => 'active',
    '29' => 'noPower',

lib/Monitoring/GLPlugin/SNMP/MibsAndOids/RITTALCMCIIIMIB.pm  view on Meta::CPAN

    '9' => 'lowWarn',
    '10' => 'setOff',
    '11' => 'setOn',
    '12' => 'open',
    '13' => 'closed',
    '14' => 'locked',
    '15' => 'unlRemote',
    '16' => 'doorOpen',
    '17' => 'service',
    '18' => 'standby',
    '19' => 'busy',
    '20' => 'noAccess',
    '21' => 'lost',
    '22' => 'detected',
    '23' => 'lowbatt',
    '24' => 'probeopen',
    '25' => 'probeshort',
    '26' => 'calibration',
    '27' => 'inactive',
    '28' => 'active',
    '29' => 'noPower',

lib/Monitoring/GLPlugin/SNMP/MibsAndOids/RITTALCMCIIIMIB.pm  view on Meta::CPAN

    '9' => 'lowWarn',
    '10' => 'setOff',
    '11' => 'setOn',
    '12' => 'open',
    '13' => 'closed',
    '14' => 'locked',
    '15' => 'unlRemote',
    '16' => 'doorOpen',
    '17' => 'service',
    '18' => 'standby',
    '19' => 'busy',
    '20' => 'noAccess',
    '21' => 'lost',
    '22' => 'detected',
    '23' => 'lowVoltage',
    '24' => 'probeopen',
    '25' => 'probeshort',
    '26' => 'calibration',
    '27' => 'inactive',
    '28' => 'active',
    '29' => 'noPower',

lib/Monitoring/GLPlugin/SNMP/MibsAndOids/SWMIB.pm  view on Meta::CPAN

    '74' => 'r-peer-port-in-di-zone',
    '75' => 'r-zone-incompat',
    '76' => 'r-sw-config-l-port-not-support',
    '77' => 'r-sw-port-mirror-configured',
    '78' => 'r-nportlogin-inprogress',
    '79' => 'r-nonpiv',
    '80' => 'r-nomapping',
    '81' => 'r-unknowntype',
    '82' => 'r-nportoffline',
    '83' => 'r-flogifailed',
    '84' => 'r-nportbusy',
    '85' => 'r-noflogi',
    '86' => 'r-noflogiresp',
    '87' => 'r-flogidupalpa',
    '88' => 'r-loopcfg',
    '89' => 'r-noenclicense',
    '90' => 'r-nofiportmapping',
    '91' => 'r-brcdfabconn',
    '92' => 'r-port-reset',
    '93' => 'r-floginport',
    '94' => 'r-fdd-strict-conflict',



( run in 0.328 second using v1.01-cache-2.11-cpan-87723dcf8b7 )