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

update project

parent 0da69dc9
No related branches found
No related tags found
No related merge requests found
No preview for this file type
......@@ -69,6 +69,21 @@ def inv_cisco_bug(info, params):
return version, pid
def get_bug_status(bug_status):
_bug_status = {
'F': 'Fixed',
'O': 'Open',
'T': 'Terminated'
}
return _bug_status.get(bug_status, bug_status)
def get_bug_behavior_changed(behavior_changed):
_behavior_changed = {
'Y': 'yes',
'N': 'no',
}
return _behavior_changed.get(behavior_changed, behavior_changed)
set_loglevel()
# disable_bug = False
......@@ -159,6 +174,8 @@ def inv_cisco_bug(info, params):
bug_ids.append(bug.get('bug_id'))
#bug['known_fixed_releases'] = bug['known_fixed_releases'].split(' ')
#bug['known_affected_releases'] = bug['known_affected_releases'].split(' ')
bug['status'] = get_bug_status(bug['status'])
bug['behavior_changed'] = get_bug_behavior_changed(bug['behavior_changed'])
logging.info('remove columns: %s' % optionalcolumns)
if optionalcolumns is not None:
for column in optionalcolumns:
......
......@@ -124,6 +124,9 @@ def create_suggested_record(pidfile, optionalcolumns):
def inv_cisco_suggestion(info, params):
# disabled till display hints will work with tables in tables :-(
# ToDo: recreate rendering of tables in tables
return
set_loglevel()
# list of PIDs to drop
......
#!/usr/bin/python
# encoding: utf-8
# Monitor Cisco API plugins for CheckMK
# Author: thl-cmk[al]outlook[dot]com
#
# License: GNU General Public License v2
#
# Author: thl-cmk[at]outlook[dot]com
# URL : https://thl-cmk.hopto.org
#
# 2020-03-15: changed getopt to argparse
#
# 15.03.2020: changed getopt to argparse
import os
import argparse
......@@ -461,4 +459,5 @@ def main():
sys.stdout.write(output + '\n' + long_output)
sys.exit(status)
main()
\ No newline at end of file
main()
......@@ -28,6 +28,7 @@
'name': 'inv_cisco_support',
'num_files': 24,
'title': u'Inventory for Cisco Bug, EoX, contract status, PSIRT advisories and suggested software',
'version': '20190830.v0.0.11',
'version.min_required': '1.4.0p1',
'version.packaged': '1.4.0p38'}
\ No newline at end of file
'version': '20200810.v0.0.12',
'version.min_required': '1.6.0',
'version.packaged': '1.6.0p12',
'version.usable_until': None}
\ No newline at end of file
This diff is collapsed.
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