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
Running the script from Nagios throw an exception:
Traceback (most recent call last): File "/usr/local/bin/telegram_nagios.py", line 74, in <module> main() File "/usr/local/bin/telegram_nagios.py", line 70, in main message = service_notification(args) File "/usr/local/bin/telegram_nagios.py", line 60, in service_notification args.output, UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 0: ordinal not in range(128)
In my case it is fixed using the decode function, line 60, although no sure if this break other people environments/deployments. args.output.decode('utf-8'),
The text was updated successfully, but these errors were encountered:
Running the script from Nagios throw an exception:
Traceback (most recent call last): File "/usr/local/bin/telegram_nagios.py", line 74, in <module> main() File "/usr/local/bin/telegram_nagios.py", line 70, in main message = service_notification(args) File "/usr/local/bin/telegram_nagios.py", line 60, in service_notification args.output, UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 0: ordinal not in range(128)
In my case it is fixed using the decode function, line 60, although no sure if this break other people environments/deployments.
args.output.decode('utf-8'),
The text was updated successfully, but these errors were encountered: