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

update project

parent 0eaaed3c
No related branches found
No related tags found
No related merge requests found
# Contributing
If you have any issues or ideas for improvement you can send me an email to _thl-cmk[at]outlook[dot]com_.
For some fixes/improvements I migth need a _snmpwalk_ fom the device in question.
This must contain
- .1.3.6.1.2.1.1.1 sysDescr
- .1.3.6.1.2.1.1.2 sysObjectID
and all the SNMP OIDs used in the plugin.
If you run the _snmpwalk_ command, please uses these options _**-ObentU**_ in addition to your snmp options like community, version etc.
For example:
```
snmpwalk -v2c -c public -ObentU 10.10.10.10 .1.3.6.1.2.1.1.1 > hostname.snmpwalk
snmpwalk -v2c -c public -ObentU 10.10.10.10 .1.3.6.1.2.1.1.2 >> hostname.snmpwalk
snmpwalk -v2c -c public -ObentU 10.10.10.10 .1.3.6.1.2.1.31.1.1.1.1 >> hostname.snmpwalk
snmpwalk -v2c -c public -ObentU 10.10.10.10 .1.3.6.1.4.1.9.9.23.1.2.1.1 >> hostname.snmpwalk
```
......@@ -10,7 +10,11 @@ Adds the CDP information from networkd evices to the inventory
* you can remove not needed columns from the inventory
* you can remove the domain name from the neighbour device name
* you can replace interface names with short names
---
#### Want to contribute?
Nice ;-) Have a look at the [contribution guidelines](CONTRIBUTING.md "Contributing")
---
Sample output
......
......@@ -20,6 +20,10 @@
# 2021-06-14: fixed cdp capabilities (OIDBytes/binascii) thanks to andreas[dot]doehler[at]gmail[dot]com
# 2021-07-10: made use short interface names configurable via wato
# fixed cdcapabilities for "b''" on Cisco WLC
# 2021-07-19: fix for default parameters
#
#
#
#
# sample info
# [
......@@ -206,10 +210,10 @@ def parse_inv_cdp_cache(string_table: List[StringByteTable]):
def inventory_cdp_cache(params, section) -> InventoryResult:
removecolumns = params['removecolumns']
remove_domain = params['remove_domain']
domain_name = params['domain_name']
use_short_if_name = params['use_short_if_name']
removecolumns = params.get('removecolumns', [])
remove_domain = params.get('remove_domain', False)
domain_name = params.get('domain_name', '')
use_short_if_name = params.get('use_short_if_name', False)
path = ['networking', 'cdp_cache']
......@@ -278,10 +282,6 @@ register.inventory_plugin(
name='inv_cdp_cache',
inventory_function=inventory_cdp_cache,
inventory_default_parameters={
'removecolumns': [],
'remove_domain': False,
'domain_name': '',
'use_short_if_name': False,
},
inventory_ruleset_name='inv_cdp_cache',
)
No preview for this file type
......@@ -14,7 +14,7 @@
'name': 'inv_cdp_cache',
'num_files': 3,
'title': 'Inventory for Cisco CDP Cache',
'version': '20210710.v0.4b',
'version': '20210719.v0.4c',
'version.min_required': '2.0.0',
'version.packaged': '2021.04.10',
'version.packaged': '2021.07.14',
'version.usable_until': None}
\ No newline at end of file
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