Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Developers' Forum

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 24th June 2013, 22:19
mrtnzlml mrtnzlml is offline
Junior Member
 
Join Date: Feb 2013
Location: Czech Republic
Posts: 12
Thanks: 1
Thanked 3 Times in 3 Posts
Default Problem with monitorSystemUpdate in another languages

Hi, we have problem with encoding of function shell_exec called in /usr/local/ispconfig/server/bil/classes/monitor_tools.inc.php on line 900. This function updating database with result of shell_exec('apt-get -s -q dist-upgrade'). But in (for example) czech, this function returns result with bad encoding and monitor of updates doesn't work. It returns something like 'a:1:{s:6:"output";s:3604:"Ä'. It's uncomplete and unable to unserialize. There are few possible ways how to fix that, but I think, that the best is call with this function shell_exec('apt-get -s -qq dist-upgrade'). In this result is enough informations. What do you mean?

Example of new output:
Code:
Inst libpython2.7 [2.7.3-0ubuntu3.1] (2.7.3-0ubuntu3.2 Ubuntu:12.04/precise-updates [amd64]) []
Inst python2.7 [2.7.3-0ubuntu3.1] (2.7.3-0ubuntu3.2 Ubuntu:12.04/precise-updates [amd64]) []
Inst python2.7-minimal [2.7.3-0ubuntu3.1] (2.7.3-0ubuntu3.2 Ubuntu:12.04/precise-updates [amd64])
Conf python2.7-minimal (2.7.3-0ubuntu3.2 Ubuntu:12.04/precise-updates [amd64])
Inst python-minimal [2.7.3-0ubuntu2] (2.7.3-0ubuntu2.2 Ubuntu:12.04/precise-updates [amd64]) [python:amd64 ]
Conf python-minimal (2.7.3-0ubuntu2.2 Ubuntu:12.04/precise-updates [amd64]) [python:amd64 ]
Inst python [2.7.3-0ubuntu2] (2.7.3-0ubuntu2.2 Ubuntu:12.04/precise-updates [amd64])
Inst linux-image-3.2.0-48-generic (3.2.0-48.74 Ubuntu:12.04/precise-updates [amd64])
Inst libterm-readkey-perl (2.30-4build3 Ubuntu:12.04/precise [amd64])
Inst mysql-client-5.5 [5.5.29-0ubuntu0.12.04.1] (5.5.31-0ubuntu0.12.04.2 Ubuntu:12.04/precise-updates [amd64])
Inst mysql-server-5.5 [5.5.29-0ubuntu0.12.04.1] (5.5.31-0ubuntu0.12.04.2 Ubuntu:12.04/precise-updates [amd64]) []
Inst mysql-server-core-5.5 [5.5.29-0ubuntu0.12.04.1] (5.5.31-0ubuntu0.12.04.2 Ubuntu:12.04/precise-updates [amd64])
Inst fail2ban [0.8.6-3] (0.8.6-3wheezy2build0.12.04.1 Ubuntu:12.04/precise-updates [all])
Inst linux-headers-3.2.0-48 (3.2.0-48.74 Ubuntu:12.04/precise-updates [all])
Inst linux-headers-3.2.0-48-generic (3.2.0-48.74 Ubuntu:12.04/precise-updates [amd64])
Inst linux-server [3.2.0.40.48] (3.2.0.48.58 Ubuntu:12.04/precise-updates [amd64]) []
Inst linux-image-server [3.2.0.40.48] (3.2.0.48.58 Ubuntu:12.04/precise-updates [amd64]) []
Inst linux-headers-server [3.2.0.40.48] (3.2.0.48.58 Ubuntu:12.04/precise-updates [amd64])
Conf python2.7 (2.7.3-0ubuntu3.2 Ubuntu:12.04/precise-updates [amd64])
Conf libpython2.7 (2.7.3-0ubuntu3.2 Ubuntu:12.04/precise-updates [amd64])
Conf python (2.7.3-0ubuntu2.2 Ubuntu:12.04/precise-updates [amd64])
Conf linux-image-3.2.0-48-generic (3.2.0-48.74 Ubuntu:12.04/precise-updates [amd64])
Conf libterm-readkey-perl (2.30-4build3 Ubuntu:12.04/precise [amd64])
Conf mysql-client-5.5 (5.5.31-0ubuntu0.12.04.2 Ubuntu:12.04/precise-updates [amd64])
Conf mysql-server-core-5.5 (5.5.31-0ubuntu0.12.04.2 Ubuntu:12.04/precise-updates [amd64])
Conf mysql-server-5.5 (5.5.31-0ubuntu0.12.04.2 Ubuntu:12.04/precise-updates [amd64])
Conf fail2ban (0.8.6-3wheezy2build0.12.04.1 Ubuntu:12.04/precise-updates [all])
Conf linux-headers-3.2.0-48 (3.2.0-48.74 Ubuntu:12.04/precise-updates [all])
Conf linux-headers-3.2.0-48-generic (3.2.0-48.74 Ubuntu:12.04/precise-updates [amd64])
Conf linux-image-server (3.2.0.48.58 Ubuntu:12.04/precise-updates [amd64])
Conf linux-headers-server (3.2.0.48.58 Ubuntu:12.04/precise-updates [amd64])
Conf linux-server (3.2.0.48.58 Ubuntu:12.04/precise-updates [amd64])
Reply With Quote
Sponsored Links
  #2  
Old 25th June 2013, 11:18
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 34,647
Thanks: 794
Thanked 5,003 Times in 3,912 Posts
 
Default

The proposed solution is fine for me.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Courier Imap is not working HellMind General 5 12th April 2012 01:04
MyDNS notify problem sgabor Installation/Configuration 4 21st December 2011 18:01
Strange email problem for one of my domains... any help appreciated paulrobert_a Installation/Configuration 5 9th August 2010 14:15
ISPConfig3 Mail Warn Errors reason8 General 3 25th November 2009 13:58
BIG Problem Postfix issue admins Installation/Configuration 11 13th November 2009 10:05


All times are GMT +2. The time now is 06:00.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.