Monitoring-GLPlugin

 view release on metacpan or  search on metacpan

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

1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
    $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

136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
  '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

41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
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

47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
  '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

716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
  '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

806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
  '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

1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
},
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

1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
  '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

219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
'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

484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
  '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

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
 
$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

503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
'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

535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
'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

730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
'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

511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
'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.350 second using v1.01-cache-2.11-cpan-d6f9594c0a5 )