sabnzbd_exporter icon indicating copy to clipboard operation
sabnzbd_exporter copied to clipboard

Error and Feature Request

Open ItsRainingHP opened this issue 2 years ago • 4 comments

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)

ItsRainingHP avatar Mar 08 '22 22:03 ItsRainingHP

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.

msroest avatar Apr 17 '22 01:04 msroest

Reopening for the parsing error

msroest avatar Apr 17 '22 04:04 msroest

Feature add with #16 in release tag 0.1.55

msroest avatar Apr 17 '22 04:04 msroest

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.

ItsRainingHP avatar Apr 20 '22 12:04 ItsRainingHP