Showing results for 
Show  only  | Search instead for 
Did you mean: 

This product reached the end of support date on March 31, 2021.

How to set PHP custom sensors?



Now I am monitoring a PHP application at a customer, This is the first time I configure a PHP app, and I want to add a function as a custom sensor. This is not a object oriented application, how can I set this. Attachments are some screenshots while I was setting this.

PS: In sensor placement configuration UI, I saw that PHP are support hot sensor placement, but when add a custom sensor and then click hot sensor placement, they all skipped, why is this?

Thanks & Regards.





the PHP custom sensor is "automatically hot placed". That means, the configuration is sent to the agent after saving. You don't need to click "hot sensor placement". (Clicking hot sensor placement for a java sensor reloads the VM, that's not required in PHP). That means, your changes are active once you click save.


Hi Harald,

Thanks for your help, do you know how to set this custom sensor? I did this like the screenshot attached, but take no effect.

The purpose of the path field is not to define the file that's executing the function, but the file where the function is defined! As microtime is a PHP internal function, you should select type "internal".