how to check activity of the sabnzbd app?

kikkegek
Posts: 341
Joined: Sun Jul 31, 2011 9:28 am

how to check activity of the sabnzbd app?

Postby kikkegek » Wed Aug 24, 2011 10:41 am

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?

User avatar
jayrock
Posts: 223
Joined: Thu Dec 02, 2010 12:55 am

Re: how to check activity of the sabnzbd app?

Postby jayrock » Wed Aug 24, 2011 11:54 am

Maybe we can use the "Brief queue status report" described here: http://wiki.sabnzbd.org/automation-support

What would be the port number?

/jayrock

kikkegek
Posts: 341
Joined: Sun Jul 31, 2011 9:28 am

Re: how to check activity of the sabnzbd app?

Postby kikkegek » Wed Aug 24, 2011 12:01 pm

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!

kikkegek
Posts: 341
Joined: Sun Jul 31, 2011 9:28 am

Re: how to check activity of the sabnzbd app?

Postby kikkegek » Tue Aug 30, 2011 7:17 am

any news?

User avatar
jayrock
Posts: 223
Joined: Thu Dec 02, 2010 12:55 am

Re: how to check activity of the sabnzbd app?

Postby jayrock » Tue Aug 30, 2011 9:46 am

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

kikkegek
Posts: 341
Joined: Sun Jul 31, 2011 9:28 am

Re: how to check activity of the sabnzbd app?

Postby kikkegek » Tue Aug 30, 2011 10:30 am

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...

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: how to check activity of the sabnzbd app?

Postby bigfoot65 » Tue Aug 30, 2011 1:36 pm

The port number is 25914.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

kikkegek
Posts: 341
Joined: Sun Jul 31, 2011 9:28 am

Re: how to check activity of the sabnzbd app?

Postby kikkegek » Tue Aug 30, 2011 2:17 pm

The port number is 25914.
cool, thanks!

User avatar
jayrock
Posts: 223
Joined: Thu Dec 02, 2010 12:55 am

Re: how to check activity of the sabnzbd app?

Postby jayrock » Tue Aug 30, 2011 2:30 pm

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

kikkegek
Posts: 341
Joined: Sun Jul 31, 2011 9:28 am

Re: how to check activity of the sabnzbd app?

Postby kikkegek » Tue Aug 30, 2011 10:30 pm

both questions return the same, see picture:

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

Who is online

Users browsing this forum: No registered users and 11 guests