[Zenoss-dev] Calling manage_addOSProcess via XML-RPC

Chet Luther cluther at zenoss.com
Sun Mar 30 10:02:55 EDT 2008


On Mar 28, 2008, at 7:51 PM, cck197 wrote:
> I'm trying to add OS processes to devices programmatically via XML- 
> RPC:
>
> s = ServerProxy('http://admin:zenoss@localhost:8080/zport/dmd/Devices/Server/Linux/devices/sotong')
>
> s.getId()
> 'sotong'
>
> s.manage_addOSProcess('/Tiger/AllOrd')
> Does anyone know what URI to use to call manage_addOSProcess?

You need to call the addOSProcess method on the operating system  
instead of the device. So you'd append /os to the end of your  
ServerProxy URL and call it like:

s.addOSProcess("/Tiger/AllOrd", True)


More information about the zenoss-dev mailing list