Hi everyone,
I need your help regarding the setup of VMWare_auto_linking module.
In fact, when I try to run the script from the command line :
Code:
/opt/shinken/libexec/link_vmware_host_vm.py -x '/opt/shinken/libexec/check_esx3.pl' -V 'xxx.xxx.xxx.xxx' -u 'xxxxxx\shinken' -p 'xxxxxxxx' -r 'lower|nofqdn' -o /tmp/vmware_mapping_file.json
I get the following output :
Code:
Listing host esx03.hmc-pa.adm
Listing host esx07.xxx-xx.xxx
Listing host esx04.xxx-xx.xxx
Listing host esx05.xxx-xx.xxx
Listing host esx06.xxx-xx.xxx
Listing host esx08.xxx-xx.xxx
Created 77 links
Traceback (most recent call last):
File "/opt/shinken/libexec/link_vmware_host_vm.py", line 186, in <module>
main(**opts.__dict__)
File "/opt/shinken/libexec/link_vmware_host_vm.py", line 144, in main
write_output(r, output)
File "/opt/shinken/libexec/link_vmware_host_vm.py", line 122, in write_output
buf = json.dumps(r)
File "/usr/lib/python2.6/json/__init__.py", line 230, in dumps
return _default_encoder.encode(obj)
File "/usr/lib/python2.6/json/encoder.py", line 367, in encode
chunks = list(self.iterencode(o))
File "/usr/lib/python2.6/json/encoder.py", line 306, in _iterencode
for chunk in self._iterencode_list(o, markers):
File "/usr/lib/python2.6/json/encoder.py", line 204, in _iterencode_list
for chunk in self._iterencode(value, markers):
File "/usr/lib/python2.6/json/encoder.py", line 306, in _iterencode
for chunk in self._iterencode_list(o, markers):
File "/usr/lib/python2.6/json/encoder.py", line 204, in _iterencode_list
for chunk in self._iterencode(value, markers):
File "/usr/lib/python2.6/json/encoder.py", line 306, in _iterencode
for chunk in self._iterencode_list(o, markers):
File "/usr/lib/python2.6/json/encoder.py", line 204, in _iterencode_list
for chunk in self._iterencode(value, markers):
File "/usr/lib/python2.6/json/encoder.py", line 294, in _iterencode
yield encoder(o)
UnicodeDecodeError: 'utf8' codec can't decode byte 0xe9 in position 27: invalid continuation byte
I think I understand it's an encoding problem, but I dont know where.
Does someone has already encountered this problem and can help me?
Thank you all in advance.
PS : I work with the version 1.2.4 of shinken on debian 6 x64.
PPS : Sorry for my very bad english, i'm french