• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

watchdog centos 5.5 says httpd is down - its not - BUG

What details do you need?

It's current plesk 10.1.1
OS Centos 5.5 x64

Watchdog is running but it says httpd is down. It eventually gives up monitoring it as it says it stops too frequently.

However in services it says httpd is running, plus all the resource monitoring, as well as it is physically running.

Means watchdog has a bug.
 
The watchdog is expecting to find /var/run/httpd.pid for Apache status. Make sure that it is really defined for Apache in /usr/local/psa/etc/modules/watchdog/monitrc.tpl
 
Hi IgorG,

I edited the template file as I am running a later httpd and the pid is inside /var/run/httpd/http.pid but its the same still says its down.

I actually edited both the files.

# Apache
check process apache
with pidfile "/var/run/httpd/httpd.pid"
start = "<apache_start>"
stop = "<apache_stop>"



locate httpd.pid > /var/run/httpd/httpd.pid

/usr/local/psa/admin/bin/websrvmng --status
is running

I just proved its something still in watchdog not listening to where the pid is. If I symlink /var/run/httpd.pid to the actual pid watchdog says its running. This is no fix as on a reboot the symlink is deleted.

Why is watchdog not obeying the template? I checked in the monitrc file, its looking in /var/run/httpd/httpd.pid as I restarted plesk in attempting to fix this annoyance.

Any idea's?
 
Last edited:
Thanks!

As I am waiting on plesk 10.2 I will swap from Centos to redhat 6 and with it having so many updates over Centos 5.5 I will worry about it then.
 
Hi IgorG,

I found a fix :)

After you modify the template file, you forgot to mention you have to rebuild watchdog with:

/usr/local/psa/admin/bin/modules/watchdog/wd --regen-all

Now its happy with apache running in /var/run/httpd/httpd.pid
 
Back
Top