Monitoring php-fpm processes with plugin?

leonep

Well-Known Member
Nov 18, 2014
121
3
18
Pescara
cPanel Access Level
Root Administrator
Hi,
My idea is to monitor php-fpm processes with a little plugin.
basically i can get php status using php-fpm status page :


Code:
pool:                 xxxxxxxxxxx_com
process manager:      ondemand
start time:           14/Feb/2019:08:59:13 +0100
start since:          37874
accepted conn:        218
listen queue:         0
max listen queue:     0
listen queue len:     0
idle processes:       0
active processes:     1
total processes:      1
max active processes: 1
max children reached: 0
slow requests:        0

************************
pid:                  16319
state:                Running
start time:           14/Feb/2019:19:30:27 +0100
start since:          0
requests:             1
request duration:     3582
request method:       GET
request URI:          /status.phtml?full
content length:       0
user:                 -
script:               /home/XXXXXXXXXXX/public_html/status.phtml
last request cpu:     0.00
last request memory:  0
With simple php scraper i get variables and store for statistic and analisis....
This ,with interface in whm, can be nice..
There is already something like this? it can be useful also for others?