Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add LWRP to upload template to server #153

Open
odyssey4me opened this issue Mar 18, 2014 · 1 comment
Open

Add LWRP to upload template to server #153

odyssey4me opened this issue Mar 18, 2014 · 1 comment

Comments

@odyssey4me
Copy link

It would appear the the Template LWRP can only create a template. It doesn't allow the uploading of an xml template file.

Ideally it'd be great if this could be done, with a sample recipe to show how to use it.

@nightw
Copy link
Contributor

nightw commented Jul 10, 2014

I wanted to add this feature to the cookbook, but unfortunately Zabbix API itself does not support adding the XML data directly to a template create or update. See here. According to the documentation of the unreleased 2.4 branch it will not be supported in that version either.

The only solution already available is to parse the XML for yourself and make multiple API calls for inserting the "empty" template first, then all of the items, applications, triggers in that template separately via the item, application, trigger API endpoints respectively. This would be a pretty huge work in this cookbook, so I guess this should be implemented in Zabbix API itself.

@guilhem What do you think of this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants