Mouhammed Soueidane
2012-12-13 13:02:39 UTC
Mouhammed Soueidane [http://community.zenoss.org/people/raziology] created the discussion
"Manually change Zenoss Device Status"
To view the discussion, visit: http://community.zenoss.org/message/70531#70531
--------------------------------------------------------------
Hi everyone,
Is there a way in which I can manually set the "status" field of a device on Zenoss (From down to up or from up to down)?
I'm hoping to create a transform for one of my events that has an event class "/Status/Ping", in which if it were to be critical, I would bring down the device.
Using Zendmd, I was able to get the status of the device using the following:
*device.Devices.findDevice("My_DEVICE")*
*device.getStatus()*
But I there is no "setStatus()" method that I can use. I'm using Zenoss 4.2.0.
Any suggestions?
--------------------------------------------------------------
Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/70531#70531]
Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
"Manually change Zenoss Device Status"
To view the discussion, visit: http://community.zenoss.org/message/70531#70531
--------------------------------------------------------------
Hi everyone,
Is there a way in which I can manually set the "status" field of a device on Zenoss (From down to up or from up to down)?
I'm hoping to create a transform for one of my events that has an event class "/Status/Ping", in which if it were to be critical, I would bring down the device.
Using Zendmd, I was able to get the status of the device using the following:
*device.Devices.findDevice("My_DEVICE")*
*device.getStatus()*
But I there is no "setStatus()" method that I can use. I'm using Zenoss 4.2.0.
Any suggestions?
--------------------------------------------------------------
Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/70531#70531]
Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]