diff --git a/checks/cisco_asyncos_mem b/checks/cisco_asyncos_mem index 187bbe7515a459b6614552acc486450cf72f761e..aac245575d395f69a74dd125d59b3e83bc1dd916 100644 --- a/checks/cisco_asyncos_mem +++ b/checks/cisco_asyncos_mem @@ -17,6 +17,16 @@ # License along with GNU Make; see the file COPYING. If not, write # to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, # 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'] = { @@ -30,10 +40,12 @@ def inventory_cisco_asyncos_mem(info): def check_cisco_asyncos_mem(_no_item, params, info): - if 'levels' in params: - warn, crit = params['levels'] - else: - warn, crit = params + print params +# if 'levels' in params: +# warn, crit = params.get('levels',(80.0,90.0)) +# else: +# warn, crit = params + warn, crit = (80.0,90.0) perc_used, memoryStatus = info[0] perc_used = float(perc_used) @@ -69,5 +81,5 @@ check_info['cisco_asyncos_mem'] = { ]), 'snmp_scan_function': scan_cisco_asyncos, '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 diff --git a/checks/cisco_asyncos_messageage b/checks/cisco_asyncos_messageage index 62892cdf0a31b10bf9d827b072b1e8c03bfd0774..c2b3fc5a9580a6b66fd08fb590cda38bc7e412e3 100644 --- a/checks/cisco_asyncos_messageage +++ b/checks/cisco_asyncos_messageage @@ -59,6 +59,7 @@ def check_cisco_asyncos_messageage(_no_item, params, info): return 0, infotext, perfdata + check_info['cisco_asyncos_messageage'] = { 'inventory_function': inventory_cisco_asyncos_messageage, 'check_function': check_cisco_asyncos_messageage, diff --git a/checks/cisco_asyncos_resources b/checks/cisco_asyncos_resources index 703aa566184fdd14a8f0cb9eeae8778b8ea08bd3..2915a744ec48b33bdedacf3f429b54fb7cd9a35f 100644 --- a/checks/cisco_asyncos_resources +++ b/checks/cisco_asyncos_resources @@ -19,10 +19,8 @@ # 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.7.0 = INTEGER: 1 # # ASYNCOS-MAIL-MIB::resourceConservationReason.0 = INTEGER: noResourceConservation(1) -# ASYNCOS-MAIL-MIB::memoryAvailabilityStatus.0 = INTEGER: memoryAvailable(1) # # sample info # [[u'1', u'1']] @@ -39,7 +37,6 @@ def check_cisco_asyncos_resources(_no_item, _no_params, info): recsourceStatus = info[0][0] recsourceStatus = int(recsourceStatus) - if recsourceStatus == 1: yield 0, 'no resource conservation' elif recsourceStatus ==2: @@ -49,6 +46,7 @@ def check_cisco_asyncos_resources(_no_item, _no_params, info): elif recsourceStatus == 4: yield 2, 'Resource conservation: queue Full' + check_info['cisco_asyncos_resources'] = { 'inventory_function': inventory_cisco_asyncos_resources, 'check_function': check_cisco_asyncos_resources, diff --git a/cisco_asyncos.mkp b/cisco_asyncos.mkp index c90400dcdd012075267f1b43fa979c387ddaa9fa..d5336e6f11c3ed9823ea31f3ae409d08f97a2315 100644 Binary files a/cisco_asyncos.mkp and b/cisco_asyncos.mkp differ