sabnzbd_exporter
sabnzbd_exporter copied to clipboard
Error and Feature Request
I have the following error, and would like to request support for multiple instances of sabnzbd.
Issue: ERROR Error getting stats: too many values to unpack (expected 3)
Logs:
2022/03/08 14:10:26 INFO Request to http://192.168.50.6:8081/sabnzbd/api?output=json&apikey=APIKEY&mode=server_stats returned in 0.002664804458618164 2022/03/08 14:10:26 INFO Request to http://192.168.50.6:8081/sabnzbd/api?output=json&apikey=APIKEY&mode=queue returned in 0.005021333694458008 2022/03/08 14:10:26 ERROR Error getting stats: too many values to unpack (expected 3)
Hey @ItsRainingHP sorry about the delay.
For your error can you send me/attach the json response of the following url? Also the version of sab you're using?
http://192.168.50.6:8081/sabnzbd/api?output=json&apikey=APIKEY&mode=queue
The only place where a 3 element unpack is expected is in my hacky time parsing here https://github.com/msroest/sabnzbd_exporter/blob/main/sabnzbd_exporter.py#L23. I'd like to see the response from your server as I've never seen this error.
As for you other request that should be trivial to support multiple servers adding a label for each. I'll futz around with it over the next couple nights here should have something working soon.
Reopening for the parsing error
Feature add with #16 in release tag 0.1.55
I am sorry for the delayed response. My PC's motherboard is currently waiting on ASUS RMA. Once I have a computer I will update, test, and post results. It is tough to do server maintenance on a phone.