Skip to content

users: UnicodeDecodeError: 'utf-8' codec can't decode byte 0x81 in position 25: invalid start byte #681

@markuslf

Description

@markuslf

This issue respects the following points:

Which variant of the Monitoring Plugins do you use?

  • .rpm/.deb package from repo.linuxfabrik.ch
  • Compiled for Linux (.tar/.zip from download.linuxfabrik.ch)
  • Compiled for Windows (from download.linuxfabrik.ch)
  • Source Code from GitHub

Bug description

Sometimes, users throws a traceback if nobody is logged in.

Traceback (most recent call last):
File "C:\PROGRA~3\icinga2\usr\lib64
agios\plugins\users\users.py", line 172, in 'module'

  File "C:\PROGRA~3\icinga2\usr\lib64
agios\plugins\users\users.py", line 129, in main

  File "C:\PROGRA~3\icinga2\usr\lib64
agios\plugins\users\lib\base3.py", line 954, in shell_exec

UnicodeDecodeError: 'utf-8' codec can't decode byte 0x81 in position 25: invalid start byte

Steps to reproduce - Plugin call

'C:\ProgramData\icinga2\usr\lib64\nagios\plugins\users\users.exe' '--critical' 'None, None, None' '--warning' '1, 20, 1'

Steps to reproduce - Data

No response

Environment

092 win11

Plugin Version

users: v2022021603 by Linuxfabrik GmbH, Zurich/Switzerland

Python version

No response

List of Python modules

No response

Additional Information

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions