Page 1 of 1

Zabbix interfering with sabnzbd web UI

Posted: April 25th, 2011, 8:31 am
by spanky85
Hi, I've noticed something quite strange. I'm running Ubuntu 10.10, with sabnzbd 0.6.0RC2. I also have installed Zabbix 1.8.2. If I go to the web interface of sabnzbd (plush theme) whilst I have Zabbix open in another tab, looking at any of the pages in Zabbix's 'configuration', I get this error from sabnzbd:

Code: Select all

500 Internal Server Error

The server encountered an unexpected condition which prevented it from fulfilling the request.

Traceback (most recent call last):
  File "/usr/share/sabnzbdplus/cherrypy/_cprequest.py", line 593, in respond
    self.process_headers()
  File "/usr/share/sabnzbdplus/cherrypy/_cprequest.py", line 661, in process_headers
    self.cookie.load(value)
  File "/usr/lib/python2.6/Cookie.py", line 627, in load
    self.__ParseString(rawdata)
  File "/usr/lib/python2.6/Cookie.py", line 660, in __ParseString
    self.__set(K, rval, cval)
  File "/usr/lib/python2.6/Cookie.py", line 580, in __set
    M.set(key, real_value, coded_value)
  File "/usr/lib/python2.6/Cookie.py", line 455, in set
    raise CookieError("Illegal key value: %s" % key)
CookieError: Illegal key value: cb_/zabbix/hostgroups.php_parts
I have reported the problem on the Zabbix forums (here: http://www.zabbix.com/forum/showthread.php?p=83622) since I assumed it was Zabbix setting cookies incorrectly, but the response there has been that it's more likely to be sabnzbd's fault. Any ideas as to what's going on?

It's 100% reproducible, but not a super-high priority since the workaround is simple; view a different page in Zabbix :)

Re: Zabbix interfering with sabnzbd web UI

Posted: April 25th, 2011, 9:38 am
by shypike
Looks like a cookie naming clash.
You may be able to work around it by using "localhost" for one program and "127.0.0.1" for the other.

BTW: both programs are probably incorrect.
Both are assuming that they are the only service running on "localhost".

Re: Zabbix interfering with sabnzbd web UI

Posted: April 25th, 2011, 9:51 am
by spanky85
Ah, that makes sense! And it's correct! Typing in the IP of the server for one program and the host name for the other works. Thanks!

Re: Zabbix interfering with sabnzbd web UI

Posted: April 25th, 2011, 10:04 am
by shypike
We should do a clean up of the cookie handling, it's a bit messy right now.
But not any more for the pending 0.6.0 release.
Thanks for the reminder.

Re: Zabbix interfering with sabnzbd web UI

Posted: April 25th, 2011, 1:16 pm
by sander
@spanky85 & offtopic:

How do I proceed installing and configuring Zabbix after "sudo apt-get install zabbix-server-mysql"?

Thanks

Re: Zabbix interfering with sabnzbd web UI

Posted: May 7th, 2011, 9:50 am
by spanky85
I can't remember exactly what I did, but it was along the lines of:

Install Zabbix, the agent (to collect stats) and the frontend (to view them):

Code: Select all

sudo apt-get install zabbix-server-mysql zabbix-agent zabbix-frontend-php
Fire up localhost/zabbix, log in as admin (password is zabbix), then follow this guide roughly to get it set up:
http://www.zabbix.com/documentation/1.8 ... quickstart

There's a bit more work to do for configuring email alerts, I needed to fiddle some php settings (the web interface warns you which ones), and I had to disable some of the default checks, but it seems to monitor a sensible set of stuff by default which is nice. Setting up log monitoring requires a little more work too. Oh, and I think I had to replace 'localhost' with '127.0.0.1' in the server config file, and replace 'localhost' with 'Zabbix Server' in the agent config file, if I remember rightly.

Re: Zabbix interfering with sabnzbd web UI

Posted: October 6th, 2012, 11:29 am
by stalks
The actual cookie name giving the error is "cb_/zabbix/media_types.php_parts"

I find it hard to believe that sabnzbd has a conflicting cookie with that name, but rather it doesn't like part of the name, ie. forward slashes