Need help on Python Code errors

Hi Team ,

i am having One abc.conf file there i am having One handler below that handler we have another handler like [handlers]

daemon logging handler(s)

keys = rotated_file

Defaults options for all Handlers

[[default]]

[[NetuitiveHandler]]

When i added another handler [[NetuitiveHandlerApp]] the content in this handler is not picking content getting below errors . Please help me on this

[2021-03-01 14:57:44,284] [MainThread:MainProcess:ERROR] traceback: Traceback (most recent call last):
File “/opt/netuitive-agent/bin/netuitive-agent”, line 310, in main
server.run()
File “/opt/netuitive-agent/embedded/lib/python2.7/site-packages/diamond/server.py”, line 130, in run
self.handlers = load_handlers(self.config, handlers)
File “/opt/netuitive-agent/embedded/lib/python2.7/site-packages/diamond/utils/classes.py”, line 67, in load_handlers
cls = load_dynamic_class(handler, Handler)
File “/opt/netuitive-agent/embedded/lib/python2.7/site-packages/diamond/utils/classes.py”, line 45, in load_dynamic_class
cls = load_class_from_name(fqn)
File “/opt/netuitive-agent/embedded/lib/python2.7/site-packages/diamond/util.py”, line 47, in load_class_from_name
cls = getattr(sys.modules[modulename], classname)
AttributeError: ‘module’ object has no attribute ‘NetuitiveHandlerApp’

[2021-03-01 14:57:45,530] [MainThread:MainProcess:INFO] Changed UID: 0 () GID: 0 ().
[2021-03-01 14:57:46,481] [MainThread:MainProcess:WARNING] write_metric_fqns missing from the config
[2021-03-01 14:57:46,483] [MainThread:MainProcess:ERROR] Unhandled exception: ‘module’ object has no attribute ‘NetuitiveHandlerApp’
[2021-03-01 14:57:46,483] [MainThread:MainProcess:ERROR] traceback: Traceback (most recent call last):
File “/opt/netuitive-agent/bin/netuitive-agent”, line 310, in main
server.run()
File “/opt/netuitive-agent/embedded/lib/python2.7/site-packages/diamond/server.py”, line 130, in run
self.handlers = load_handlers(self.config, handlers)
File “/opt/netuitive-agent/embedded/lib/python2.7/site-packages/diamond/utils/classes.py”, line 67, in load_handlers
cls = load_dynamic_class(handler, Handler)
File “/opt/netuitive-agent/embedded/lib/python2.7/site-packages/diamond/utils/classes.py”, line 45, in load_dynamic_class
cls = load_class_from_name(fqn)
File “/opt/netuitive-agent/embedded/lib/python2.7/site-packages/diamond/util.py”, line 47, in load_class_from_name
cls = getattr(sys.modules[modulename], classname)
AttributeError: ‘module’ object has no attribute ‘NetuitiveHandlerApp’

Hi @rajeshbellary,

I’m sorry, but we can’t provide support for programming questions.

As your question seems to be about netuitive/Metricly/Cloud Wisdom, perhaps you’d want to try their support channels?

Cheers!
–zak