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 88766e02 authored by thl-cmk's avatar thl-cmk :flag_na:
Browse files

update project

parent d60f9ab2
No related branches found
No related tags found
No related merge requests found
...@@ -17,6 +17,16 @@ ...@@ -17,6 +17,16 @@
# License along with GNU Make; see the file COPYING. If not, write # License along with GNU Make; see the file COPYING. If not, write
# to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, # to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
# Boston, MA 02110-1301 USA. # Boston, MA 02110-1301 USA.
#
# .1.3.6.1.4.1.15497.1.1.1.1.0 = INTEGER: 0
# .1.3.6.1.4.1.15497.1.1.1.7.0 = INTEGER: 1
#
# ASYNCOS-MAIL-MIB::perCentMemoryUtilization.0 = INTEGER: 0
# ASYNCOS-MAIL-MIB::memoryAvailabilityStatus.0 = INTEGER: memoryAvailable(1)
#
# sample info
# [[u'0', u'1']]
#
factory_settings['cisco_asyncos_mem_default_levels'] = { factory_settings['cisco_asyncos_mem_default_levels'] = {
...@@ -30,10 +40,12 @@ def inventory_cisco_asyncos_mem(info): ...@@ -30,10 +40,12 @@ def inventory_cisco_asyncos_mem(info):
def check_cisco_asyncos_mem(_no_item, params, info): def check_cisco_asyncos_mem(_no_item, params, info):
if 'levels' in params: print params
warn, crit = params['levels'] # if 'levels' in params:
else: # warn, crit = params.get('levels',(80.0,90.0))
warn, crit = params # else:
# warn, crit = params
warn, crit = (80.0,90.0)
perc_used, memoryStatus = info[0] perc_used, memoryStatus = info[0]
perc_used = float(perc_used) perc_used = float(perc_used)
...@@ -69,5 +81,5 @@ check_info['cisco_asyncos_mem'] = { ...@@ -69,5 +81,5 @@ check_info['cisco_asyncos_mem'] = {
]), ]),
'snmp_scan_function': scan_cisco_asyncos, 'snmp_scan_function': scan_cisco_asyncos,
'includes': ['cisco_asyncos.include'], 'includes': ['cisco_asyncos.include'],
'default_levels_variable': 'cisco_asyncos_mem_default_levels', 'default_levels_variable': 'cisco_asyncos_mem_default_level',
} }
\ No newline at end of file
...@@ -59,6 +59,7 @@ def check_cisco_asyncos_messageage(_no_item, params, info): ...@@ -59,6 +59,7 @@ def check_cisco_asyncos_messageage(_no_item, params, info):
return 0, infotext, perfdata return 0, infotext, perfdata
check_info['cisco_asyncos_messageage'] = { check_info['cisco_asyncos_messageage'] = {
'inventory_function': inventory_cisco_asyncos_messageage, 'inventory_function': inventory_cisco_asyncos_messageage,
'check_function': check_cisco_asyncos_messageage, 'check_function': check_cisco_asyncos_messageage,
......
...@@ -19,10 +19,8 @@ ...@@ -19,10 +19,8 @@
# Boston, MA 02110-1301 USA. # Boston, MA 02110-1301 USA.
# #
# .1.3.6.1.4.1.15497.1.1.1.6.0 = INTEGER: 1 # .1.3.6.1.4.1.15497.1.1.1.6.0 = INTEGER: 1
# .1.3.6.1.4.1.15497.1.1.1.7.0 = INTEGER: 1
# #
# ASYNCOS-MAIL-MIB::resourceConservationReason.0 = INTEGER: noResourceConservation(1) # ASYNCOS-MAIL-MIB::resourceConservationReason.0 = INTEGER: noResourceConservation(1)
# ASYNCOS-MAIL-MIB::memoryAvailabilityStatus.0 = INTEGER: memoryAvailable(1)
# #
# sample info # sample info
# [[u'1', u'1']] # [[u'1', u'1']]
...@@ -39,7 +37,6 @@ def check_cisco_asyncos_resources(_no_item, _no_params, info): ...@@ -39,7 +37,6 @@ def check_cisco_asyncos_resources(_no_item, _no_params, info):
recsourceStatus = info[0][0] recsourceStatus = info[0][0]
recsourceStatus = int(recsourceStatus) recsourceStatus = int(recsourceStatus)
if recsourceStatus == 1: if recsourceStatus == 1:
yield 0, 'no resource conservation' yield 0, 'no resource conservation'
elif recsourceStatus ==2: elif recsourceStatus ==2:
...@@ -49,6 +46,7 @@ def check_cisco_asyncos_resources(_no_item, _no_params, info): ...@@ -49,6 +46,7 @@ def check_cisco_asyncos_resources(_no_item, _no_params, info):
elif recsourceStatus == 4: elif recsourceStatus == 4:
yield 2, 'Resource conservation: queue Full' yield 2, 'Resource conservation: queue Full'
check_info['cisco_asyncos_resources'] = { check_info['cisco_asyncos_resources'] = {
'inventory_function': inventory_cisco_asyncos_resources, 'inventory_function': inventory_cisco_asyncos_resources,
'check_function': check_cisco_asyncos_resources, 'check_function': check_cisco_asyncos_resources,
......
No preview for this file type
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