You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When i run this script by hand i getting error. How can i fix it?
root@elastic1 ~ # sudo -u zabbix /etc/zabbix/scripts/elasticsearch.py status
Traceback (most recent call last):
File "/etc/zabbix/scripts/elasticsearch.py", line 116, in
main()
File "/etc/zabbix/scripts/elasticsearch.py", line 93, in main
out += getKeys(node,traps2) #getting stats values
UnboundLocalError: local variable 'node' referenced before assignment
The text was updated successfully, but these errors were encountered:
Why you doesn't use a url 'localhost:9200/_cat/nodes?v' for getting node list?
'_nodes/_local/stats?all=true' get unparseble long output about cluster and doesn't have a list of nodes.
When i run this script by hand i getting error. How can i fix it?
root@elastic1 ~ # sudo -u zabbix /etc/zabbix/scripts/elasticsearch.py status
Traceback (most recent call last):
File "/etc/zabbix/scripts/elasticsearch.py", line 116, in
main()
File "/etc/zabbix/scripts/elasticsearch.py", line 93, in main
out += getKeys(node,traps2) #getting stats values
UnboundLocalError: local variable 'node' referenced before assignment
The text was updated successfully, but these errors were encountered: