phpDaemon monitoring with Netdata
phpDaemon is an asynchronous server-side framework for Web and network
applications implemented in PHP using libevent.
This module collects phpdaemon workers statistics via http.
Requirements#
phpdaemonwith enabledhttpserver.- statistics should be reported in
jsonformat.
Charts#
It produces the following charts:
- Workers in
workers - Alive Workers State in
workers - Idle Workers State in
workers - Uptime in
seconds
Configuration#
Edit the go.d/phpdaemon.conf configuration file using edit-config from the
Netdata config directory, which is typically at /etc/netdata.
Here is an example for 2 instances:
For all available options please see module configuration file.
phpdaemon configuration#
Instruction from @METAJIJI
For enable phpd statistics on http, you must enable the http server and write an application.
Application is important, because standalone
application ServerStatus.php
provides statistics in html format and unusable for netdata.
/opt/phpdaemon/conf/phpd.conf
/opt/phpdaemon/conf/AppResolver.php
/opt/phpdaemon/conf/PHPDaemon/Applications/FullStatus.php
/opt/phpdaemon/conf/PHPDaemon/Applications/FullStatusRequest.php
Troubleshooting#
To troubleshoot issues with the phpdaemon collector, run the go.d.plugin with the debug option enabled. The output
should give you clues as to why the collector isn't working.
First, navigate to your plugins directory, usually at /usr/libexec/netdata/plugins.d/. If that's not the case on your
system, open netdata.conf and look for the setting plugins directory. Once you're in the plugin's directory, switch
to the netdata user.
You can now run the go.d.plugin to debug the collector: