-
Notifications
You must be signed in to change notification settings - Fork 105
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
problem creating host interface using create_host_interface #128
Comments
What python version is this? What version of Zabbix? What kind of host is this? A regular host? Does it have any other SNMP interfaces already? |
PS. You probably don't want to post your auth key by the way |
And what Zabbix-cli version or commit is this? |
Looks like they've change the API between 4.0 and 5.0. We've only tested zabbix-cli with 4.0. https://www.zabbix.com/documentation/4.0/manual/api/reference/hostinterface/object#host_interface The |
aah, OK. thanks for letting me know. Would there be a fix in the future? |
Yes, supporting the new LTS is something we'll need to do. I don't think this is much work, but we're a bit low on resources right now. I can't guarantee anything :/ |
@techie879 This is only a small hotfix, but could you try with this? https://github.com/unioslo/zabbix-cli/commits/fix-128 This simple commit might resolve your issue, but I'm not sure 7ad6c2c Sadly they haven't updated their appliance-container that I use for testing. They don't have a proper 5.0 LTS image yet. https://hub.docker.com/r/zabbix/zabbix-appliance |
I cloned the master, checked out the tag , installed again. It does not
look like it did anything. Still get the same error(unless I am doing this
wrong). See below.
here is the config file:
create_host_interface "hpc3-14-03" "0" "SNMP" "161" "10.240.62.16"
"hpc3-14-03-ipmi" "0"
in my config file(above), I was not sure about what the help menu meant by:
[interface DNS]
--------------
DNS if interface connection is 0: (hostname by default)
So, I added the DNS name for the iLO. Not sure if I did it correctly.
here is the log file :
2020-07-04 17:49:16,966 [zabbix_cli.cli][None][62211][ERROR]: Problems
creating host interface on hpc3-14-03- (u"Error -32602: Invalid params.:
Incorrect arguments passed to function. while sending {u'params':
{'hostid': '10336', 'ip': '', 'useip': 0, 'details': [], 'dns':
'hpc3-14-03-ipmi', 'main': 0, 'type': 2, 'port': '161'}, u'jsonrpc':
u'2.0', u'method': u'hostinterface.create', u'auth': u'xyxyxyxyxyxyxyxyx',
u'id': 9}", -32602)
thanks
…On Fri, Jul 3, 2020 at 9:42 AM Paal Braathen ***@***.***> wrote:
@techie879 <https://github.com/techie879> This is only a small hotfix,
but could you try with this?
https://github.com/unioslo/zabbix-cli/commits/fix-128
This simple commit might resolve your issue, but I'm not sure 7ad6c2c
<7ad6c2c>
Sadly they haven't updated their appliance-container that I use for
testing. They don't have a proper 5.0 LTS image yet.
https://hub.docker.com/r/zabbix/zabbix-appliance
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#128 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AFYYS4665K6SUHYMCE7LATTRZYDBFANCNFSM4ONRWRMA>
.
--
Regards,
*Imam Toufique*
*213-700-5485*
|
They've apparently made some major changes to SNMP https://www.zabbix.com/documentation/current/manual/api/changes_4.4_-_5.0 Also: Their documentation contains errors: https://www.zabbix.com/documentation/5.0/manual/api/reference/hostinterface/object
This is a valid request:
There's no simple quickfix for this. The command will probably need to take more parameters as input :/ |
If anyone has faced the same, as a dirty fix you can use the below: in "./zabbix_cli/cli.py"
|
Hi,
I am having trouble creating SNMP host interface using the following, and could use some hints from you.
some quick background info -- SNMP interface IP is different then the host IP in my case.
My txt file is:
create_host_interface hpc3-14-03 1 "" "" 10.240.62.16 "" 0
here is the error i get:
020-07-01 08:57:26,101 [zabbix_cli.cli][None][263865][ERROR]: Problems creating host interface on hpc3-14-03- (u"Error -32602: Invalid params.: Incorrect arguments passed to function. while sending {u'params': {'hostid': '10336', 'ip': '10.240.62.16', 'useip': 1, 'dns': '', 'main': 0, 'type': 2, 'port': '161'}, u'jsonrpc': u'2.0', u'method': u'hostinterface.create', u'auth': u'xxx', u'id': 8}", -32602)
[root@hpc3-xcat-1 ~]# cat create_interface.txt
I am not sure which incorrect argument is passed here.
thanks
The text was updated successfully, but these errors were encountered: