Discussion:
Manually change Zenoss Device Status
Mouhammed Soueidane
2012-12-13 13:02:39 UTC
Permalink
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]
Robert Booth
2012-12-17 22:19:37 UTC
Permalink
Robert Booth [http://community.zenoss.org/people/rbooth] created the discussion

"Re: Manually change Zenoss Device Status"

To view the discussion, visit: http://community.zenoss.org/message/70603#70603

--------------------------------------------------------------
Just to clarify.

When a critical event is passed to /Status/Ping you're not getting the status changed from Up to Down?
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/70603#70603]

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]
Mouhammed Soueidane
2012-12-19 12:37:27 UTC
Permalink
Mouhammed Soueidane [http://community.zenoss.org/people/raziology] created the discussion

"Re: Manually change Zenoss Device Status"

To view the discussion, visit: http://community.zenoss.org/message/70628#70628

--------------------------------------------------------------
Robert:

Please refer to this discussion of mine in which I'm addressing the problem you've asked me about:
http://community.zenoss.org/message/70546#70546 http://community.zenoss.org/message/70546#70546
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/70628#70628]

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]
Loading...