Linuxfabrik / monitoring-plugins

220+ check plugins for Icinga and other Nagios-compatible monitoring applications. Each plugin is a standalone command line tool (written in Python) that provides a specific type of check.
https://linuxfabrik.ch
The Unlicense
220 stars 51 forks source link

mod_qos3: TypeError: a bytes-like object is required, not 'str' #205

Closed NavidSassan closed 2 years ago

NavidSassan commented 3 years ago

In GitLab by @markuslf on May 5, 2021, 20:58

Traceback (most recent call last):
  File "/home/markus.frei/git/linuxfabrik/monitoring-plugins/check-plugins/mod-qos-stats/./mod-qos-stats3", line 187, in <module>
    main()
  File "/home/markus.frei/git/linuxfabrik/monitoring-plugins/check-plugins/mod-qos-stats/./mod-qos-stats3", line 121, in main
    result = result.strip().split('\n')
TypeError: a bytes-like object is required, not 'str'
NavidSassan commented 2 years ago

In GitLab by @markuslf on Feb 17, 2022, 18:54

Fixed with the new txt3 library, which is used by the url3 library to fetch the information from the mod_qos status page.