Page 1 of 2

how to check activity of the sabnzbd app?

Posted: Wed Aug 24, 2011 10:41 am
by kikkegek
hi guys,

I am talking to the Amahi Energy Saving guys on facebook. I have asked them if it is possible to monitor the sabnzbd app to keep the server awake untill the queue is finished.

how would Amahy Energy Saver be able to monitor the Sabnzbd service?

Re: how to check activity of the sabnzbd app?

Posted: Wed Aug 24, 2011 11:54 am
by jayrock
Maybe we can use the "Brief queue status report" described here: http://wiki.sabnzbd.org/automation-support

What would be the port number?

/jayrock

Re: how to check activity of the sabnzbd app?

Posted: Wed Aug 24, 2011 12:01 pm
by kikkegek
Maybe we can use the "Brief queue status report" described here: http://wiki.sabnzbd.org/automation-support

What would be the port number?

/jayrock
thanks man. I pointed the guys from AES to this topic. Hope they pitch in!

Re: how to check activity of the sabnzbd app?

Posted: Tue Aug 30, 2011 7:17 am
by kikkegek
any news?

Re: how to check activity of the sabnzbd app?

Posted: Tue Aug 30, 2011 9:46 am
by jayrock
Like mentioned, we need to find out what port number is used. Then we just need to query

Code: Select all

http://locahost:port/sabnzbd/api?mode=qstatus&output=xml
and see if the number of jobs is > 0.

Can you check with the person who package this app?


This *may* also reveal the port number:

Code: Select all

netstat -a | grep 'sabnzbd'
Once we have this sorted it will be very simple have Amahi Energy Saver monitoring this service.

/jayrock

Re: how to check activity of the sabnzbd app?

Posted: Tue Aug 30, 2011 10:30 am
by kikkegek
hi Jayrock,

I have absolutely no clue who is the person that packs Sabnzbd...I'm just a simple user, that i why posted in this topic/part of the forum...

Re: how to check activity of the sabnzbd app?

Posted: Tue Aug 30, 2011 1:36 pm
by bigfoot65
The port number is 25914.

Re: how to check activity of the sabnzbd app?

Posted: Tue Aug 30, 2011 2:17 pm
by kikkegek
The port number is 25914.
cool, thanks!

Re: how to check activity of the sabnzbd app?

Posted: Tue Aug 30, 2011 2:30 pm
by jayrock
Thnx bigfoot65!

kikkegek, can you log onto you HDA, open a browser and go to

Code: Select all

http://locahost:25914/sabnzbd/api?mode=qstatus&output=xml
Pls post the contents of the page in the following two situation:
(i) there are some downloads going on, and
(ii) there's no download.

That information should help to determine whether we can use the SABnzbd API to proceed. If it works as I understand it from the SABnzbd wiki we only need a simple script that reads the xml respone and returns errorlevel 1 if there are any qstatus/jobs/job elements.

Cheers

jayrock

Re: how to check activity of the sabnzbd app?

Posted: Tue Aug 30, 2011 10:30 pm
by kikkegek
both questions return the same, see picture:

I use a different port. 23456
sabnzbd_1.JPG
sabnzbd_1.JPG (115.2 KiB) Viewed 4145 times