Discussion:
Does anyone have a script for Linux / Windows that sets prod state remotely
jmp242
2013-07-16 12:37:17 UTC
Permalink
jmp242 [http://community.zenoss.org/people/jmp242] created the discussion

"Does anyone have a script for Linux / Windows that sets prod state remotely"

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

--------------------------------------------------------------
I'm thinking about how we sysadmins where I work almost never remember to go into Zenoss to change a device to Maintenance when we're working on it, leading to spurious alerts. I think it might work better if I had a script we could just run as part of maintenance on monitored servers that set the production state to maintenance or back to production depending on an argument or as a toggle...

Has anyone written anything like this for Windows and / or Linux?

--
James Pulver
ZCA Member
CLASSE Computer Group
Cornell University
--------------------------------------------------------------

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

Start a new discussion in zenoss-users at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
joanypony
2013-07-23 15:02:38 UTC
Permalink
joanypony [http://community.zenoss.org/people/joanypony] created the discussion

"Re: Does anyone have a script for Linux / Windows that sets prod state remotely"

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

--------------------------------------------------------------
Hi James,

Something like this?

curl -u james:supersecretpw " http://zenoss001mwh.io.askjeeves.info:8080/zport/dmd/Devices/Ask/AskFlanker/Production%20Hosts/devices/$1/manage_editDevice?productionState=305 http://zenosshost.com:8080/zport/dmd/Devices/Production%20Hosts/devices/$1/manage_editDevice?productionState=305"

Regards,
Joan
--------------------------------------------------------------

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

Start a new discussion in zenoss-users at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
Loading...