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

template import example some issues #96

Closed
colttt opened this issue Jan 19, 2018 · 3 comments
Closed

template import example some issues #96

colttt opened this issue Jan 19, 2018 · 3 comments

Comments

@colttt
Copy link
Contributor

colttt commented Jan 19, 2018

Hello,

I know thats just an example but it would be nice if you add 'valueMaps' to the rules array. I also get the error "('Error -32602: Invalid params., Invalid parameter "/rules/applications/createMissing": a boolean is expected.', -32602)" so you must use True instead of true. at the end my rules looks like (python 3.5.3) :

rules = {
    'applications': {
        'createMissing': True,
    },
    'discoveryRules': {
        'createMissing': True,
        'updateExisting': True
    },
    'graphs': {
        'createMissing': True,
        'updateExisting': True
    },
    'groups': {
        'createMissing': True
    },
    'hosts': {
        'createMissing': True,
        'updateExisting': True
    },
    'images': {
        'createMissing': True,
        'updateExisting': True
    },
    'items': {
        'createMissing': True,
        'updateExisting': True
    },
    'maps': {
        'createMissing': True,
        'updateExisting': True
    },
    'screens': {
        'createMissing': True,
        'updateExisting': True
    },
    'templateLinkage': {
        'createMissing': True,
    },
    'templates': {
        'createMissing': True,
        'updateExisting': True
    },
    'templateScreens': {
        'createMissing': True,
        'updateExisting': True
    },
    'triggers': {
        'createMissing': True,
        'updateExisting': True
    },
    'valueMaps': {
        'createMissing': True,
        'updateExisting': True
    },
}
@neothematrix
Copy link
Collaborator

hello @colttt
indeed the examples included in this project are not up-to-date with the recent new zabbix features, would you mind submitting a Pull Request with a working example?

thanks!

@colttt
Copy link
Contributor Author

colttt commented Feb 9, 2018

done in #99

@neothematrix
Copy link
Collaborator

thanks!

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