![]() |
![]() |
Subject: | add device without modeling? |
Author: | [Not Specified] |
Posted: | 2015-01-05 05:58 |
zendisc run --now -d a.b.c.d --deviceclass /Server --prod_state 1000 --duallog
The above seems to add device, but I do not see any option to disable modeling.
Is there any other method, through which I can add a device to zenoss through a script without modeling.
And obviously that works both in zenoss 4 and 5
Thanks for your help.
Subject: | The addDevice API call has a |
Author: | [Not Specified] |
Posted: | 2015-01-05 11:32 |
The addDevice API call has a "model" true/false option, you could use an API call instead of the zendisc CLI.
If you have the zenoss_api script:
zenoss_api device_router DeviceRouter addDevice "{\"deviceName\":\"testhost\",\"deviceClass\":\"/Ping\",\"model\":\"False\",\"manageIp\":\"1.2.3.4\"}"
See here for the zenoss_api script: http://wiki.zenoss.org/Working_with_the_JSON_API
Subject: | Excellent thanks! |
Author: | [Not Specified] |
Posted: | 2015-01-05 22:12 |
Many thanks to you.
I hope this script works with zenoss 5, if run from within zenmodeler container. If not please correct me here.
I looked in at the script you had provided and it had send events and add device included.
Where can I find more information on this JSON API formats for all other supported functions
Subject: | JSON API doc |
Author: | [Not Specified] |
Posted: | 2015-01-06 06:40 |
http://community.zenoss.org/community/documentation/official_documentati...
Subject: | You can also take a look at |
Author: | Jay Stanley |
Posted: | 2015-01-06 11:37 |
You can also take a look at zenbatchload. Load a file up and then you can run against that file with the option --nomodel
< |
Previous Creating seperate disk usage thresholds for individual server |
Next Cannot export all events in Event Archive page in Event Console |
> |