Collection of CheckMK checks (see https://checkmk.com/). All checks and plugins are provided as is. Absolutely no warranty. Send any comments to thl-cmk[at]outlook[dot]com

Skip to content
Snippets Groups Projects
Commit 063ccf8b authored by thl-cmk's avatar thl-cmk :flag_na:
Browse files

update project

parent efc9c312
No related branches found
No related tags found
No related merge requests found
No preview for this file type
...@@ -188,11 +188,6 @@ def check_checkpoint_raid(item, params, parse): ...@@ -188,11 +188,6 @@ def check_checkpoint_raid(item, params, parse):
4: 'READY', 4: 'READY',
} }
raiddiskid = {
0: 'Upper',
1: 'Lower',
}
def getflags(flags, flags_description): def getflags(flags, flags_description):
description = '' description = ''
flags = int(flags) flags = int(flags)
...@@ -253,7 +248,7 @@ def check_checkpoint_raid(item, params, parse): ...@@ -253,7 +248,7 @@ def check_checkpoint_raid(item, params, parse):
# yield 0, 'Disk ID %d state %s' % (diskid, raiddiskstate.get(disk.get('diskstate'))) # yield 0, 'Disk ID %d state %s' % (diskid, raiddiskstate.get(disk.get('diskstate')))
disks_online += 1 disks_online += 1
longoutput += '\n%s disk (id %d): ' % (raiddiskid.get(diskid), diskid) longoutput += '\nDisk id %d ' % diskid
longoutput += 'State: %s, ' % raiddiskstate.get(disk.get('diskstate')) longoutput += 'State: %s, ' % raiddiskstate.get(disk.get('diskstate'))
longoutput += 'Sync: %d%s, ' % (syncstate, '%') longoutput += 'Sync: %d%s, ' % (syncstate, '%')
longoutput += 'Size: %d GB, ' % disk.get('disksize') longoutput += 'Size: %d GB, ' % disk.get('disksize')
...@@ -286,28 +281,30 @@ check_info['checkpoint_raid'] = { ...@@ -286,28 +281,30 @@ check_info['checkpoint_raid'] = {
'snmp_scan_function': lambda oid: (oid('.1.3.6.1.2.1.1.2.0').startswith('.1.3.6.1.4.1.2620.1.6.123.1') or 'snmp_scan_function': lambda oid: (oid('.1.3.6.1.2.1.1.2.0').startswith('.1.3.6.1.4.1.2620.1.6.123.1') or
oid('.1.3.6.1.2.1.1.2.0').startswith('.1.3.6.1.4.1.8072.3.2.10')) and oid('.1.3.6.1.2.1.1.2.0').startswith('.1.3.6.1.4.1.8072.3.2.10')) and
oid('.1.3.6.1.4.1.2620.1.6.1.0', '').lower().startswith('svn foundation'), oid('.1.3.6.1.4.1.2620.1.6.1.0', '').lower().startswith('svn foundation'),
'snmp_info': [('.1.3.6.1.4.1.2620.1.6.7.7.1.1', [ # CHECKPOINT-MIB::raidVolumeEntry 'snmp_info': [('.1.3.6.1.4.1.2620.1.6.7.7.1.1', # CHECKPOINT-MIB::raidVolumeEntry
'1', # raidVolumeIndex [
'2', # raidVolumeID '1', # raidVolumeIndex
'3', # raidVolumeType '2', # raidVolumeID
'4', # numOfDisksOnRaid '3', # raidVolumeType
'5', # raidVolumeMaxLBA '4', # numOfDisksOnRaid
'6', # raidVolumeState '5', # raidVolumeMaxLBA
'7', # raidVolumeFlags '6', # raidVolumeState
'8', # raidVolumeSize '7', # raidVolumeFlags
]), '8', # raidVolumeSize
('.1.3.6.1.4.1.2620.1.6.7.7.2.1', [ # CHECKPOINT-MIB::raidDiskEntry ]),
'1', # raidDiskIndex ('.1.3.6.1.4.1.2620.1.6.7.7.2.1', # CHECKPOINT-MIB::raidDiskEntry
'2', # raidDiskVolumeID [
'3', # raidDiskID '1', # raidDiskIndex
'4', # raidDiskNumber '2', # raidDiskVolumeID
'5', # raidDiskVendor '3', # raidDiskID
'6', # raidDiskProductID '4', # raidDiskNumber
'7', # raidDiskRevision '5', # raidDiskVendor
'8', # raidDiskMaxLBA '6', # raidDiskProductID
'9', # raidDiskState '7', # raidDiskRevision
'10', # raidDiskFlags '8', # raidDiskMaxLBA
'11', # raidDiskSyncState '9', # raidDiskState
'12', # raidDiskSize '10', # raidDiskFlags
])], '11', # raidDiskSyncState
'12', # raidDiskSize
])],
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment