ISPConfig 3 Monitoring Problems Hello ispConfig Team, there is an error with my ispconfig 3 Installation! Monitoring was working from the beginning till today! Ive nothing changed on the Serverconfiguration. Nothing installed and nothing else is done! No Errors! But Monitoring isnt working! Serverload says 0h and 0minutes. CPU Stats arent available. HD Stats arent displayable cause it tells me there is no support also for update status. ispconfig says no supported Distribution but it was working before! I am using Debian 5.0.3 It was working before. Every one Singleoption was working fine and now nothing of them works! I guess something with permissions could be the problem but i dont know where to take a look! Can you tell me some soulition to do a workaround? It weres great to become ispconfig 3 as a working panel back and thanks for supporting! regards
Do you run multiserver setup or is it single server? Do you have any errors in ispconfig.log file? Maybe you could enable debug mode so you can more easily track down the actual error.
Thanks for your reply. It is an single Server setup! I'll take a look into the .log files ! The ispconfig.log file has no entrys! How to start ispconfig in debug mode? There is no way to start icpconfig in debug mode or?
edit Code: /usr/local/ispconfig/server/lib/config.inc.php and change line Code: $conf["log_priority"] = 2; // 0 = Debug, 1 = Warning, 2 = Error and wait for one minute while cron execute script
Hello, thanks for your reply. I did that but still no entrys in my ispconfig.log file! I changed the file 10 minutes ago! Unfortunately there are no entrys! Only my ispconfig_install.log file has some entrys but ispconfig.log not! What to do now?
Yes, i changed to debugging mode! Thats the actual setting: Code: //** Logging $conf["log_file"] = '/var/log/ispconfig/ispconfig.log'; $conf["log_priority"] = 0; // 0 = Debug, 1 = Warning, 2 = Error Still no entry in the .log
IMO i already have an cron daemon running! Thats my crontab Code: PATH="/sbin:/usr/sbin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/X11R6/bin:/bin" MAILTO="root@localhost" #m h dom mon dow user command 11 */6 * * * ntpdate -b -s name.server.tld * * * * * /usr/local/ispconfig/server/server.sh > /dev/null 2>> /var/log/ispconfig/cron.log 30 00 * * * /usr/local/ispconfig/server/cron_daily.sh > /dev/null 2>> /var/log/ispconfig/cron.log And there are the entrys from ISPConfig! And my ispconfig.log is still empty! What ive missed? Or do i have missunderstood you? edit: well, the entrys all point to cron.log file! Maybe i missed something different! But all what ive done was enough for the first days! Ive followed the guide here on howtoforge.com! I have had no problems during the install!
Run this command on the shell as root user: /usr/local/ispconfig/server/server.sh do you get a entry in the ispconfig.log or the ispconfig monitor now? If yes, then you dont have cron installed. That there is a crontab does not nescessarily mean that you have cron installed.
Thats the output: Code: # /usr/local/ispconfig/server/server.sh sh: /ps: No such file or directory Unable to open logfile. And yes, sure, you are right but cronjobs are working and running! mysqldump is working day per day and also some other scripts doing his job via cron! ispconfig.log file has permission 644! And this file has -rwxr-x--- 1 ispconfig ispconfig 165 2009-09-30 19:55 /usr/local/ispconfig/server/server.sh
Please make sure that you run this as root, not with any other user or sudo. The error means that your server does not has the "ps" command which is very unlikely as this is part of every linux install. thats OK as this job runs as root user.
Hmmö. I run this as root! as Superuser! I changed to root with # su - Ive googled around and found some informations: The verbose output is: Code: sh --verbose /usr/local/ispconfig/server/server.sh #!/bin/bash PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin . /etc/profile # /etc/profile: system-wide .profile file for the Bourne shell (sh(1)) # and Bourne compatible shells (bash(1), ksh(1), ash(1), ...). if [ "`id -u`" -eq 0 ]; then PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" else PATH="/usr/local/bin:/usr/bin:/bin:/usr/games" fi id -u if [ "$PS1" ]; then if [ "$BASH" ]; then PS1='\n \[\033[0;37m\]__________________________________________________\n \033[0;36m\][\t, \d]\[\033[0;31m\][\j]\ [\033[0;37m\][HOSTNAME][# bashed] \n \[\033[0;37m\][\u @\[\033[0;31m\] ID]\[\033[0;37m\] \$ [\w]\n [bash] # ' else if [ "`id -u`" -eq 0 ]; then PS1='# ' else PS1='$ ' fi fi fi export PATH alias ..='cd ../' alias ...='cd ../../' alias get-app='apt-get install' alias search-app='aptitude search' alias rem-app='apt-get remove' alias update='apt-get update' alias upgrade='apt-get upgrade' alias distupgrade='apt-get dist-upgrade' alias ll='ls -l' alias la='ls -a' alias las='ls -las' alias l='last' alias lb='lastb' alias lg='lastlog' umask 022 /usr/bin/php -q /usr/local/ispconfig/server/server.php sh: /ps: No such file or directory Unable to open logfile. Something is wrong. Need to google around!
Hm, i dont know if selinux is disbabled or not! Ive temprarly disabled selinux: # echo 0 >/selinux/enforce and tried to run the command: /usr/local/ispconfig/server/server.sh sh: /ps: No such file or directory Unable to open logfile. Same output! And yes, i am to 100% root user !
You have to reboot the server after you disabled selinux. Please take a look at the perfect server tutorial, it contains a chapter on how to disable selinux.