Skip to content

Commit

Permalink
Merge pull request #4581 from zenoss/bugfix/ZEN-34584.7x
Browse files Browse the repository at this point in the history
ZEN-34584 refactored zensyslog off the collection framework
  • Loading branch information
jpeacock-zenoss authored Oct 18, 2024
2 parents 3a2c613 + b1a4d5d commit 672074a
Show file tree
Hide file tree
Showing 29 changed files with 1,827 additions and 2,436 deletions.
15 changes: 15 additions & 0 deletions Products/ZenCollector/configcache/tasks/deviceconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,21 @@ def buildDeviceConfig(
)

service = svcconfigclass(dmd, monitorname)
method = getattr(service, "remote_getDeviceConfigs", None)
if method is None:
log.warn(
"config service does not have required API "
"device=%s collector=%s service=%s submitted=%f",
key.device,
key.monitor,
key.service,
submitted,
)
# Services without a remote_getDeviceConfigs method can't create
# device configs, so delete the config that may exist.
_delete_config(key, store, log)
return

result = service.remote_getDeviceConfigs((deviceid,))
config = result[0] if result else None

Expand Down
2 changes: 1 addition & 1 deletion Products/ZenEvents/EventManagerBase.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ class EventManagerBase(ZenModelRM):
"expr": "^(?P<deviceModel>[^\[]+)\[(?P<deviceManufacturer>ADTRAN)\]:(?P<component>[^\|]+\|\d+\|\d+)\|(?P<summary>.*)",
"keep": True
},{
"description": "",
"description": "fortigate devices",
"expr": "^date=.+ (?P<summary>devname=.+ log_id=(?P<eventClassKey>\d+) type=(?P<component>\S+).+)",
"keep": True
},{
Expand Down
132 changes: 0 additions & 132 deletions Products/ZenEvents/SyslogMsgFilter.py

This file was deleted.

Loading

0 comments on commit 672074a

Please sign in to comment.