PDA

View Full Version : server-status plugin problem


BeoNET
09-25-2009, 02:38 PM
Hi,

I'm trying to install apache server-status plugin from Control panel and when installation is complete on screen apears "Account disabled by server administrator" and when i click again to plugins the serverstatus plugin seems to be installed. On navigation panel on left there is Apache status button and when i click on it the popup window apears with error message "Internal error malformed result". I configure mod_status in httpd.conf like this:

<Location /server-status>
SetHandler server-status
Order deny,allow
Deny from all
Allow from some.ip.address.!!
</Location>

where is the problem??

Thanks!!

slava
09-25-2009, 07:41 PM
Try to comment lines

Order deny,allow
Deny from all
Allow from some.ip.address.!!

And check again. Server status must be accessable from server localhost as http://localhost/server-status. It can be checked, for example, via wget -O - http://localhost/server-status command.

If this will work, you are need add to Allow from directive your server IP address.

BeoNET
09-26-2009, 12:52 AM
Thanks, this was helpful. Now i can see the serverstatus when i type direct link in my browser and wget command works, but still have the same problem in Control Panel - "Internal error malformed result" error apears when i go to Apache status in navigation.

slava
09-26-2009, 08:01 AM
Please add LogLevel 9 in the first line /usr/local/ispmgr/etc/ispmgr.conf and restart panel (killall ispmgr command in the ssh)

And after then check what you see in the /usr/local/ispmgr/etc/var/ispmgr.log when you click link in Control Panel ?

BeoNET
09-26-2009, 04:20 PM
Here is the error log /usr/local/ispmgr/etc/ispmgr.log

Sep 26 15:12:05 INFO Request [195.252.1x.2x][root] 'func=apachestatus'
Sep 26 15:12:05 ../../src/main.cpp:425 DEBUG Begin simple action
Sep 26 15:12:05 ../../src/action.cpp:240 DEBUG Execute addon '/usr/local/ispmgr/addon/apachestatus'
Sep 26 15:12:05 ../../src/action.cpp:301 DEBUG return code 9 recived result ''
Sep 26 15:12:05 ERROR Exception 1: malformed result

BeoNET
09-27-2009, 11:40 AM
Maybe this will help?

This is the log in /usr/local/ispmgr/etc/ispmgr.log after i try to install apachestatus plugin

Sep 27 10:28:43 INFO Request [195.252.1x.2x][root] 'func=plugins.enable&elid=apachestatus'
Sep 27 10:28:43 EXTINFO Execute (rm -rf /tmp/isp_plugin/) return=0 exited
Sep 27 10:28:44 EXTINFO Execute (/usr/bin/wget -q --no-check-certificate -O /usr/local/ispmgr/var/ispmgr_plugins.xml http://download.ispsystem.com/plugins/ispmgr_plugins.xml) return=0 exited
Sep 27 10:28:44 ../../src/plugins.cpp:40 TRACE Plugin info wwwdomaintofilemgr 1.0 loaded, author: John Lepikhin / ISPsystem, john@ispsystem.com
Sep 27 10:28:44 ../../src/plugins.cpp:40 TRACE Plugin info wwwdomainmasscreate 1.0 loaded, author: John Lepikhin / ISPsystem, john@ispsystem.com
Sep 27 10:28:44 ../../src/plugins.cpp:40 TRACE Plugin info masspasschange 1.0 loaded, author: John Lepikhin / ISPsystem, john@ispsystem.com
Sep 27 10:28:44 ../../src/plugins.cpp:40 TRACE Plugin info apachestatus 1.0 loaded, author: John Lepikhin / ISPsystem, john@ispsystem.com
Sep 27 10:28:44 ../../src/plugins.cpp:40 TRACE Plugin info mysqldumpupload 1.0 loaded, author: John Lepikhin / ISPsystem, john@ispsystem.com
Sep 27 10:28:44 EXTINFO Execute (/usr/bin/wget -q --no-check-certificate -O - http://download.ispsystem.com/plugins/plugins/apachestatus.tar.gz| tar -z -x -f - -C /tmp/isp_plugin/) return=0 exited
Sep 27 10:28:44 EXTINFO Execute (cd /tmp/isp_plugin/ && find . -type f|cut -c 3- > /usr/local/ispmgr/var/.plugin_listings/apachestatus.lst) return=0 exited
Sep 27 10:28:44 EXTINFO Execute (cp -R /tmp/isp_plugin/* /usr/local/ispmgr/) return=0 exited
Sep 27 10:28:44 EXTINFO Execute (rm -rf /tmp/isp_plugin/) return=0 exited
Sep 27 10:28:44 EXTINFO Execute (rm -rf var/.xmlcache/) return=0 exited
Sep 27 10:28:44 WARNING accept error

GakcaT
09-28-2009, 02:23 AM
The problem is in the plugin script. We'll check it.

john
09-28-2009, 05:22 AM
Run /usr/local/ispmgr/addon/apachestatus from command line. What output do you get? Most common issue is XML::LibXML Perl extension is not installed. What OS and distribution is installed on your server?

BeoNET
09-28-2009, 09:57 AM
Here is the ouput of /usr/local/ispmgr/addon/apachestatus

Can't locate HTML/TreeBuilder.pm in @INC (@INC contains: /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi /usr/lib64/perl5/site_perl/5.8.7/x86_64-linux-thread-multi /usr/lib64/perl5/site_perl/5.8.6/x86_64-linux-thread-multi /usr/lib64/perl5/site_perl/5.8.5/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi /usr/lib64/perl5/vendor_perl/5.8.7/x86_64-linux-thread-multi /usr/lib64/perl5/vendor_perl/5.8.6/x86_64-linux-thread-multi /usr/lib64/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl/5.8.7 /usr/lib/perl5/vendor_perl/5.8.6 /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/5.8.8 . /usr/local/ispmgr/lib/perl) at /usr/local/ispmgr/addon/apachestatus line 5.
BEGIN failed--compilation aborted at /usr/local/ispmgr/addon/apachestatus line 5.

OS is CentOS 5.3 64bit

Most common issue is XML::LibXML Perl extension is not installed.

I dont have installed XML::LibXML Perl extension

slava
09-28-2009, 10:01 AM
OS is CentOS 5.3 64bit
I dont have installed XML::LibXML Perl extension

Try to install by
yum install perl-XML-LibXML command

BeoNET
09-28-2009, 12:52 PM
Try to install by
yum install perl-XML-LibXML command

Same error with perl-XML-LibXML installed. My version is perl-XML-LibXML-1.58-5

john
09-29-2009, 05:39 AM
Please, post output of command: /usr/local/ispmgr/addon/serverstatus

BeoNET
09-29-2009, 10:35 AM
/usr/local/ispmgr/addon/apachestatus

Can't locate HTML/TreeBuilder.pm in @INC (@INC contains: /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi /usr/lib64/perl5/site_perl/5.8.7/x86_64-linux-thread-multi /usr/lib64/perl5/site_perl/5.8.6/x86_64-linux-thread-multi /usr/lib64/perl5/site_perl/5.8.5/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi /usr/lib64/perl5/vendor_perl/5.8.7/x86_64-linux-thread-multi /usr/lib64/perl5/vendor_perl/5.8.6/x86_64-linux-thread-multi /usr/lib64/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl/5.8.7 /usr/lib/perl5/vendor_perl/5.8.6 /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/5.8.8 . /usr/local/ispmgr/lib/perl) at ./apachestatus line 5.
BEGIN failed--compilation aborted at ./apachestatus line 5.

john
09-29-2009, 11:41 AM
HTML::Tree perl module is required. There is no such package in CentOS. You may install it manually ( http://search.cpan.org/CPAN/authors/id/P/PE/PETEK/HTML-Tree-3.23.tar.gz ). May be this dependency will be removed in future.

BeoNET
09-29-2009, 04:29 PM
I installed HTML::Tree perl module and his dependences, and now when i start ./apachestatus script got this:


Can't locate LWP/Simple.pm in @INC (@INC contains: /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi /usr/lib64/perl5/site_perl/5.8.7/x86_64-linux-thread-multi /usr/lib64/perl5/site_perl/5.8.6/x86_64-linux-thread-multi /usr/lib64/perl5/site_perl/5.8.5/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi /usr/lib64/perl5/vendor_perl/5.8.7/x86_64-linux-thread-multi /usr/lib64/perl5/vendor_perl/5.8.6/x86_64-linux-thread-multi /usr/lib64/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl/5.8.7 /usr/lib/perl5/vendor_perl/5.8.6 /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/5.8.8 . /usr/local/ispmgr/lib/perl) at ./apachestatus line 6.
BEGIN failed--compilation aborted at ./apachestatus line 6.

slava
09-29-2009, 07:25 PM
Can't locate LWP/Simple.pm

Perl module LWP::Simple.pm does not exist in the CentOS repos. Plugin does not test into CentOS Linux, it's problem, we will work and I am testing now.

You need to install LWP::Simple.pm such as perl -MCPAN -e 'install LWP::Simple'

or wait new version of plugin.

slava
09-29-2009, 09:02 PM
I have made tests on CentOS 5.3 (clean operating system + ISPmanager). I have managed to get to work all the plugins by installing the necessary modules

yum install perl-XML-LibXML
yum install perl-HTML-Parser
yum install perl-Compress-Zlib
perl -MCPAN -e 'install HTML::Tree'
perl -MCPAN -e 'install LWP::Simple'

And restart ispmanager by killall ispmgr command
Now all extensions are working.

We apologize for the inconvenience, on CentOS system plugins are not tested (read my previous post), in the next releases all modules will be installed automatically.

P.S. For more verbose info in the server-status also you need uncoment ExtendedStatus On in the httpd.conf

BeoNET
10-04-2009, 01:17 PM
Having problem with LWP::Simple installation, but dont care! I will wait a new version of plugin... :)

Thanks to all for help, a lot!!! :)

azalea85
10-16-2009, 12:46 PM
Try to comment lines

Order deny,allow
Deny from all
Allow from some.ip.address.!!

And check again. Server status must be accessable from server localhost as http://localhost/server-status. It can be checked, for example, via wget -O - http://localhost/server-status command.

If this will work, you are need add to Allow from directive your server IP address.

hi thanks for that very informative post... im currently using the plug ins now. thanks