I uset hdp 2.4 and ambari 2.2.1.1
I had custom an ambari alert and test on my test servers.
But when I copy it on mysql product environment, one server seems every thing is ok,and the other is show me :
'NoneType' object has no attribute 'modules'
So, I try to the monitor script writen in pytthon.
When I run python monitor.py, it shows ok,but on the ambari-agent,it still wrong.
So is there a way to test the script and debug the monitor script??