How do I add PHP-fpm to System and Service Status Monitor?
Simply monitoring Apache isn’t enough. I have had PHP-fpm go down, apache keep running and I’m none the wiser until a Wordpress website goes offline because PHP-fpm stops working (which is highly embarrassing sometimes).
Webmin>Others>System and Server Status Monitor doesn’t have a PHP-fpm option
qlpqlp
September 30, 2019, 10:06pm
2
Hello,
Again FPM down and no monitoring option
This is a must have.
Regards
qlpqlp
October 1, 2019, 11:54am
4
Hello @jfro
How this commit add the notification? I have merged the commit and I dont see the monitoring option
Jfro
October 1, 2019, 12:38pm
5
Don’t know only trying to point to some more info about maybe that topic.
Webmin has a generic “check Process” in the status monitoring module. Can monitor any process you want.
Jfro
October 1, 2019, 2:07pm
7
He means here you can
WEBMIN:
Others > System and Server Status > Add monitor of type: Check Process
Then in “Command to check”
qlpqlp
October 1, 2019, 2:24pm
8
Thanks @jfro and @scotwnw
I added in the field “Command to Check” the process “php-fpm” and now its working
This is good. I have also set mine to run the following command if php-fpm monitor detects its not active…
/etc/init.d/php-fpm start
However, how can we change the descriptor in the Server Status monitor to something more appropriate/meaningful?
Currently, it shows as “Check Process”. I would much prefer “php-fpm”
EDIT…
Belay the “Descriptor” question…who would have thought it was so simple, I was too stupid to see how to change that!
The problem now is, the status monitor is not displaying its current status???
Jfro
October 4, 2019, 7:35am
10
adamjedgar.
even with this change/update?
https://github.com/virtualmin/virtualmin-gpl/commit/e3b42f45709e94c364085c5ebbff4d24475c83a9
don’t think that is it but to be sure.
all caches cleared ofcourse?
I run Virtualmin Pro not GPL.
Will that update work with Pro?
Also, does this display in the Server status monitor alongside Apache, Bind, MySQL etc?
Jfro
October 4, 2019, 9:42am
12