view release on metacpan or search on metacpan
lib/Monitoring/GLPlugin.pm view on Meta::CPAN
141914201421142214231424142514261427142814291430143114321433143414351436143714381439
$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
136137138139140141142143144145146147148149150151152153154155156
'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
414243444546474849505152535455565758596061EntityOperState
=> {
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
474849505152535455565758596061626364656667
'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
716717718719720721722723724725726727728729730731732733734735736
'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
806807808809810811812813814815816817818819820821822823824825826
'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
136913701371137213731374137513761377137813791380138113821383138413851386138713881389},
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
155215531554155515561557155815591560156115621563156415651566156715681569157015711572
'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
219220221222223224225226227228229230231232233234235236237238239'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
484485486487488489490491492493494495496497498499500501502503504
'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
12345678910111213141516171819$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
503504505506507508509510511512513514515516517518519520521522523'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
535536537538539540541542543544545546547548549550551552553554555'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
730731732733734735736737738739740741742743744745746747748749750'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
511512513514515516517518519520521522523524525526527528529530531'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'
,