Zend Server Best Practices > Development > Monitoring Rules > Function Error

Function Error

Description: When a specific function in your code returns FALSE, it generates an event. The “Function Error” Rule contains a list of monitored functions (i.e. functions that when returning FALSE will trigger an event).

Information Collected:

The most important details are:

In most cases, these details alone should be enough to indicate what triggered the event.

Applicable Diagnostic Actions:

Click on a link to see how to perform each action tools are listed in order of relevance to helping solve the event:

Possible Causes and Solutions:

Generally, logic errors trigger Function Error eventsAn event is a collection of runtime-related information collected by the Monitor component. This information is collected when an event is triggered, according to the conditions defined by the Monitoring Rules. such as queries that you expect to return something and they do not and not PHP errors.

If you have a function that you need to return FALSE as an acceptable value, remove the function from the monitored functions list.

Note:

Removing a function from the rule, affects all instances of the function. Before removing the function from the list, make sure the function does not require monitoring wherever it is used.

 

Read Also

  Advanced Diagnostics with Zend Server    
  Monitoring Rules