TECHZEN Zenoss User Community ARCHIVE  

Programmatically change of device state

Subject: Programmatically change of device state
Author: [Not Specified]
Posted: 2016-02-25 16:19

Hello! We wrote a tiny zenpack. First, it receives data from modeler plugin and show device's compnents states on "components" screen. That's ok. One wonderful day some of components has gone down, but we still see these components statuses "Up". Page reload not help us.

We wrote a template for monitoring states, it sends request every 5 minutes. Yes, it can produce events "Component @id has gone down", but it can't help to redraw info without re-modelling. Any ideas..



Subject: Solution is Event transform
Author: [Not Specified]
Posted: 2016-02-28 13:05

Solution is Event transform mechanism with access to objects device and component, and with this construction:

        @transact
def updateDb():
component.operStatus=operStatus
updateDb()



< Previous
Question using VMware ESXi Monitor ZenPack [solved]
  Next
Line limit on imported Windows Event logs
>