TECHZEN Zenoss User Community ARCHIVE  

Zenoss 5 and setting device titles

Subject: Zenoss 5 and setting device titles
Author: [Not Specified]
Posted: 2015-06-09 16:55

Hello,

I'm testing Zenoss 5 and I imported over 400 hosts to my test environment using commands like this in a bash script:
curl -k -u api:pw 'https://zenoss5/zport/dmd/DeviceLoaderdeviceName=172.17.15.184&devicePath=/Ping&discoverProto=none&loadDevice:method=1'

The problem with this method is that the "deviceName" has to be either an IP or DNS. My devices have IPs but their "titles" were custom, not DNS names... Now I have 400 devices on Zenoss that are only described by their IPs, so it's pretty much useless since that's not enough information...

Normally I'd create another script and run it through zendmd to set the device.title of every device but I can't get to zendmd on Zenoss 5 and, from what I looked up, it's not even supported anymore...

So, my question is: Is there a way to import theses hosts by IP but ALSO adding a custom device title (the API doesn't say anything about that field) Or is there a "hidden" way to get into zendmd and perform this task



Subject: For future reference. I
Author: [Not Specified]
Posted: 2015-06-10 09:27

For future reference. I managed to attack to Zendmd with the following command:

serviced service shell -i Zope su -s /bin/bash zenoss -c "ZENHOME=/opt/zenoss /opt/zenoss/bin/zendmd"



< Previous
Unable to start REDIS (collectorredis) service since 5.03 update
  Next
Modeler Plugins
>