I am looking for a opensource plugin or code where i can able to create defect in ALM when the script fails from Ready API.
You can find all available plugins on this page:
Which exact ALM do you use?
yeah - Im leaning towards @nmrao's opinion here too - sounds cool, but i dont think Id want something to automatically raise tickets - an api that allowed you to raise them maybe (like the JIRA plugin) but i always want to tailor the content whenever raising tickets anyway.
just my opinion!